Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I) Suppose you are given a contract to develop a system that generates bills for a cellular phone company. Company has two types of

image text in transcribed

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.

Step by Step Solution

3.44 Rating (160 Votes )

There are 3 Steps involved in it

Step: 1

Heres a C program that implements the billing system for both regular and ... 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

Microeconomics

Authors: Robert Pindyck, Daniel Rubinfeld

8th edition

978-0132870436, 132870436, 013285712X, 978-0133371178, 133371174, 978-0132857123

More Books

Students also viewed these Programming questions

Question

financial managers must be cognizant of market efficient becasue

Answered: 1 week ago