Rewrite the programming example in chapter 4. (Cable company BILLING.)
1. Write a pseudo code before starting your program (you may not use SWITCH, replace it with IF structures)1.1 Draw a flow chart for your program based on your pseudo code 2. Identify your constants3. Your input will come from the text file of a least 15 customers3.1 Input file format – customerType accountNumber premiumChannels (I.e residential example: R12345 5, business example B12345 16 8) residential customers RaccountNumber numOfPremChannels Business customersBaccountNumber numOfBasicServConn numOfpremChannels4. Precision should be two decimal places5. 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