Calculate the running average for residential and business


1. Write a pseudo code before starting your program ( do 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 )

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.

Solution Preview :

Prepared by a verified Expert
Programming Languages: Calculate the running average for residential and business
Reference No:- TGS01726994

Now Priced at $40 (50% Discount)

Recommended (92%)

Rated (4.4/5)