Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python 0 10/2018 11/2018 1 2018 12/12/2018 : 09:58 20 / 1 : 1 . 75061 : 74964 74238 0 0 726 0 0 726

python
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
0 10/2018 11/2018 1 2018 12/12/2018 : 09:58 20 / 1 : 1 . 75061 : 74964 74238 0 0 726 0 0 726 63 0 868 200 726 0 0 1 2 0 68 13 862 SO 862 80 and the following image: - 1 | - - 6 - - V6 Vo0 - 1 108 10) You need to do the following: You need to do the following: Yo need to read a file that contains an information for a number of customers, the file format as the following: The first line is the customer name. o The second line is the customer number :) :The third line contains three number . ) The information repeated for all customers in the same format o note: the attached file is an example of the file with two customers Electrecity.txt) You need to compute the bill details as appear in the image bill Print the information for each customer formatted for all customer Create a file for each customer with the customer number as the file name with dat extension Store the information for the customer in a file with the computed data as The following file (2001454104.dat) is an example how the result should be for each customer, it is the output for first customer (Ali Ibraheem). Your output files should follow the same format for all customers 2001454104.dat Electrecity.txt Ali Ibraheem 2001454104 75061 74238 74964 Omer Khalid 2102520112 5420 4321 5420 Ali Ibraheem 2001454104 Total amount: 726 Amount price: 63.868 counter fees: 0.200 Reef Penny: 0.726 TV fees: 1.0 Trash fees: 2.0 Fuel price difference: 13.68 Bill Total: 80.862 0 10/2018 11/2018 1 2018 12/12/2018 : 09:58 20 / 1 : 1 . 75061 : 74964 74238 0 0 726 0 0 726 63 0 868 200 726 0 0 1 2 0 68 13 862 SO 862 80 and the following image: - 1 | - - 6 - - V6 Vo0 - 1 108 10) You need to do the following: You need to do the following: Yo need to read a file that contains an information for a number of customers, the file format as the following: The first line is the customer name. o The second line is the customer number :) :The third line contains three number . ) The information repeated for all customers in the same format o note: the attached file is an example of the file with two customers Electrecity.txt) You need to compute the bill details as appear in the image bill Print the information for each customer formatted for all customer Create a file for each customer with the customer number as the file name with dat extension Store the information for the customer in a file with the computed data as The following file (2001454104.dat) is an example how the result should be for each customer, it is the output for first customer (Ali Ibraheem). Your output files should follow the same format for all customers 2001454104.dat Electrecity.txt Ali Ibraheem 2001454104 75061 74238 74964 Omer Khalid 2102520112 5420 4321 5420 Ali Ibraheem 2001454104 Total amount: 726 Amount price: 63.868 counter fees: 0.200 Reef Penny: 0.726 TV fees: 1.0 Trash fees: 2.0 Fuel price difference: 13.68 Bill Total: 80.862

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Audit Accountability And Government

Authors: Fidelma White, Kathryn Hollingsworth

1st Edition

0198262329, 978-0198262329

More Books

Students also viewed these Accounting questions