Rewrite the Programming Example in chapter 4 ( Cable Company Billing ).
Expected Program and Design:
1. Write a pseudo code before starting your program ( you may not use SWITCH, replace it with IF structures )
1.1 Draw a flowchart for your program based on your pseudo code
2. Identify your constants
3. Your input will come from a text file of at least 15 customers
3.1 Input file format – customerType accountNumber premiumChannels
( i.e residential example: R12345 5 , business example B12345 16 8 )
residential customers
RaccountNumber numOfPremChannels
business customers
BaccountNumber numOfBasicServConn numOfPremChannels
4. Precision should be two decimal places
5. Calculate the running average for residential and business customer spending
6. Print all customer’s bill to a single file and the end of the file you should have the average summary for each customer type.
6.1 Pay attention to details when you formatting your output
Note: Use all chapter concepts and make your final as a true representation of what we have learned this semester.
7. Implement your program using arrays, covered in chapter 8, and user defined simple data types to hold customer data.
Turn in
program design ( pseudo code and/or flow chart )
input file
output file
.cpp file of your program ( make sure you include your header and comment your code )
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more