I) Suppose you are given a contract to develop a system that generates bills for a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
I) Suppose you are given a contract to develop a system that generates bills for a cellular phone company. Company has two types of customers: Regular (R), Business (B). For business customers: Monthly base payment is $99.99 and the first 600 minutes are free. For next 100 minutes (stage 1) company charges $0.45 per minute. Other remaining minutes (stage2) cost $0.99 per minute. For regular customers: Monthly base payment is $ 29.99 and the first 200 minutes are free. Next 250 units (stage 1) cost $0.55 per minute. Other remaining units (stage 2) cost $ 0.88 per unit. Develop a system that reads customer information including the phone usage (in minutes) from the keyboard and produces the phone bill according to the criteria given above. Please see the sample system input/output given below for a Regular Customer. Similar output will be produced for Business Customers. Also, your program so that it is capable of producing as many bills as needed. This can be done by asking the user if he/she has more bills to produce. If yes, return to the bill generation, else exit from the program. Please see the sample output give below. Input Validation: a) If user enters any category other than R, r and B, b then the program should display an error message saying "invalid customer type. Please enter R, r for regular and B, b for business customers" and ask the user to re-run the program correctly. b) Minutes used should be greater than or equal to zero. I) Suppose you are given a contract to develop a system that generates bills for a cellular phone company. Company has two types of customers: Regular (R), Business (B). For business customers: Monthly base payment is $99.99 and the first 600 minutes are free. For next 100 minutes (stage 1) company charges $0.45 per minute. Other remaining minutes (stage2) cost $0.99 per minute. For regular customers: Monthly base payment is $ 29.99 and the first 200 minutes are free. Next 250 units (stage 1) cost $0.55 per minute. Other remaining units (stage 2) cost $ 0.88 per unit. Develop a system that reads customer information including the phone usage (in minutes) from the keyboard and produces the phone bill according to the criteria given above. Please see the sample system input/output given below for a Regular Customer. Similar output will be produced for Business Customers. Also, your program so that it is capable of producing as many bills as needed. This can be done by asking the user if he/she has more bills to produce. If yes, return to the bill generation, else exit from the program. Please see the sample output give below. Input Validation: a) If user enters any category other than R, r and B, b then the program should display an error message saying "invalid customer type. Please enter R, r for regular and B, b for business customers" and ask the user to re-run the program correctly. b) Minutes used should be greater than or equal to zero.
Expert Answer:
Answer rating: 100% (QA)
Heres a C program that implements the billing system for both regular and ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
Prepare a set of profile leveling notes for the data listed and show the page check. All data is given in feet. The elevation of BM A is 1364.58, and the elevation of BM B is 1349.26. Rod readings...
-
Refer to Global Chopsticks in E7-21A. Wong did franchise her restaurant concept. Because of Global Chopsticks' success, Noodles-n-More has come on the scene as a competitor. To maintain its market...
-
Light reflected from a glass (n g = 1.65) plate immersed in ethyl alcohol (n e = 1.36) is found to be completely linearly polarized. At what angle will the partially polarized beam be transmitted...
-
On March 13, 2009, Juan Mendez Sr. was admitted to a nursing facility. On that day, a doctor employed by the facility determined the father lacked the capacity to give informed consent or make...
-
Stewart Corporation is a major automobile manufacturer. It purchases steering wheels from Coase Corporation. Annual demand is 10,400 steering wheels per year or 200 steering wheels per week. The...
-
x-5 and justify your answer. Respond in the space 3x-1 f(x)= Determine the range of provided below.
-
Hutz Inc. purchased goods costing $2,200. The purchase was made on account with terms of 5/10, n/45. The original purchase was recorded with a DEBIT to Inventory and a CREDIT to Accounts Payable for...
-
Calculate the amount of bills receivable during the year. Opening balance of bills receivable Bill dishonoured Bills collected (honoured) Bills receivable endorsed to creditors Closing balance of...
-
Discuss the steps you would take to transform an ER Model into various relations of Relational Data Model. Give suitable examples.
-
Distinguish between statement of affairs and balance sheet.
-
List the various advantages of computerised accounting systems.
-
Describe the various types of accounting software along with their advantages and limitations.
-
Three algorithms A, B, and C, are under consideration for the Insert operation of a particular data set. Through an analysis of these algorithms, their speed functions have been determined to be:...
-
Select a mass spectrometric technique with the highest mass resolution for identifying an unknown compound being eluted from a liquid chromatography column
-
What is a production function? How does a long-run production function differ from a short-run production function?
-
Many industries are often plagued by overcapacity: Firms simultaneously invest in capacity expansion, so that total capacity far exceeds demand. This happens not only in industries in which demand is...
-
The price of DVDs (D) is $20 and the price of CDs (C) is $10. Philip has a budget of $100 to spend on the two goods. Suppose that he has already bought one DVD and one CD. In addition there are 3...
-
In 1984, the number of German marks required to buy one U.S. dollar was 1.80. In 1987, the U.S. dollar was worth 2.00 marks. In 1992, the dollar was worth 1.50 marks. In 1997, the dollar was again...
-
Todays spot rate is S 0 $ = $0.009057355. The 90-day forward rate is F 1 $ = $0.008772945. a. Calculate the forward premium on Japanese yen in basis points and as a percentage premium or discount...
-
Describe locational, triangular, and covered interest arbitrage.
Chasing Failure How Falling Short Sets You Up For Success 1st Edition - ISBN: 0785261613 - Free Book
Study smarter with the SolutionInn App