A company needs to keep record of the customers and their credit balances. Write a program...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A company needs to keep record of the customers and their credit balances. Write a program to obtain an account number, the customer's name and the customer's balance (the amount the customer still owes the company for goods received). Save the record in a file named "customer.txt". Enter the account number, customer's name and balance. Enter EOF to end input. ? 10 Jack 110 ? 11 Michael 250 ? 12 Lee 300 ? 13 Ken 0 ? 14 Jane 10 ? ^Z Write a program to read data from the file "customer.txt" you have written in question above and display the data on screen. A company needs to keep record of the customers and their credit balances. Write a program to obtain an account number, the customer's name and the customer's balance (the amount the customer still owes the company for goods received). Save the record in a file named "customer.txt". Enter the account number, customer's name and balance. Enter EOF to end input. ? 10 Jack 110 ? 11 Michael 250 ? 12 Lee 300 ? 13 Ken 0 ? 14 Jane 10 ? ^Z Write a program to read data from the file "customer.txt" you have written in question above and display the data on screen.
Expert Answer:
Answer rating: 100% (QA)
Below is a simple Python program that accomplishes the tasks described The first part of the program ... View the full answer
Related Book For
Operations Management A Supply Chain Process Approach
ISBN: 978-1483383064
1st edition
Authors: Joel D. Wisner
Posted Date:
Students also viewed these databases questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
The information provided in this test allows you to set up all ledgers for an Ontario company named DERMAL DECOR. Dermal Decor specializes in high quality aesthetic body art with sterile equipment....
-
Calculate the following ratios from the data given below: 1. Debt ratio 2. Debt service coverage multiples 3. Interest coverage Balance Sheet 12/31/2014 Assets Cash..$575,000 Short-term...
-
Using the DJIA data in Problem 5-41 and exponential smoothing with trend adjustment, forecast the opening DJIA value for 2014. Use a = 0.8 and b = 0.2. Compare the MSE for this technique with the MSE...
-
A mercury atom emits light at many wavelengths, two of which are at 435.8 and 546.1 nm. Both of these transitions are to the same final state. (a) What is the energy difference between the two states...
-
Use the expression on page 367, involving deviations from the mean, to calculate \(r\) for the following data: x Y 3 8 6 367 -205
-
As a result of improvements in product engineering, United Automation is able to sell one of its two milling machines. Both machines perform the same function but differ in age. The newer machine...
-
A shipping company owns two types of trucks, type A and type B. Each type A truck has 20m3 of refrigerated space and 30m3 of unrefrigerated space, while each type B truck has 20m3 of cooled space and...
-
LEGO is one of the worlds most recognizable toys. The small, colorful building blocks have spawned countless sets, figurines, video games, and even movies and theme parks. LEGO is built on a very...
-
71. What is false for the given pic 0 -4ED a. Vertical axis is flatter b. Patient has simple myopic astigmatism c. The corneal curvature of horizontal axis would be more d. -4DC at 180 degree will be...
-
The following are functions. Find the range of each. (Tip: Represent their inputs and outputs as a table) 1. g: {0, 1, 2, 3, 4, 5} {0, 1, 2, 3, 4, 5} with g(x) = (2x + 1) % 6 2. f {0, 1,2,3,4,5,6}...
-
At a given point in an airflow, the static temperature is T = 225 K, the static pressure is p = 0.78 atm, and flow velocity is V = 842 m/s. Calculate the total pressure (p0) in N/m2
-
How has the pandemic highlighted the issues raised by the "digital divide"? also search for an article on the web to answer the question
-
Business Value Statement Based on your team review of the client stakeholder environment develop a set of business value propositions. This proposition must indicate what the client offers of value...
-
Thayer Corporation is a mayor defense contractor, producing artillery shells for the Marine Corps landing craft. A recent study of production over past year shows the following relationship between...
-
The Gourmand Cooking School runs short cooking courses at its small campus. Management has identified two cost drivers it uses in its budgeting and performance reports-the number of courses and the...
-
For the following exercises, find the area of the triangle. Round to the nearest hundredth. 22 50 36
-
What is a tariff? How might tariffs be used to support protectionist policies?
-
Describe some of the automation you saw in the Honda auto plant video.
-
For the following project, construct a Gantt chart. Based on your Gantt chart, what are the days to completion?
-
If a random variable has the standard normal distribution, find the probability that it will take on a value (a) between 0 and 2.3 ; (b) between 1.22 and 2.43 ; (c) between -1.45 and -0.45 ; (d)...
-
If a random variable has the standard normal distribution, find the probability that it will take on a value (a) less than 1.75 ; (b) less than -1.25 ; (c) greater than 2.06 ; (d) greater than -1.82 .
-
The nozzle of a mixing vibrator is tested for its number of vibrations. The vibration frequency, for each nozzle sample, can be modeled by a normal distribution with mean 128 and standard deviation...
Study smarter with the SolutionInn App