Question
Could someone please turn this into an array by store the customers numbers into the array? user defined function as well if possible This is
Could someone please turn this into an array by store the customers numbers into the array? user defined function as well if possible This is the code that needs to be implented with arrays/user defined function https://pastebin.com/52KiTUSn and this is the input when ran writes the output Rewrite the Programming Example page 236 in chapter 4 ( Cable Company Billing ). Expected Program and Design: 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
Note: Use all chapter concepts and make your final as a true representation of what we have learned this semester. 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 ) Extra credit Implement your program using arrays, covered in chapter 8, and user defined simple data types to hold customer data.
input.tit- Notepad File Edit Format View Help R11100 5 B21000 16 8 R11101 15 R11102 8 R11103 10 R11104 5 B21004 16 8 B21005 16 8 B21006 16 8 R11105 6 R11106 6 R11107 6 Output.tt-Notepad File Edit Format View Help This program computes a cable bill. Account number: 111 Amount due: $62.5e Account number: 21 Amount due: $.520 . O Account number: 11101 Amount due : 137 . 5e Account number: 11102 Amount due: $85.00 Account number: 11103 Amount due: 1. Account number: 11104 Amount due: $62.5e Account number: 210e4 Amount due: $.520 . O Account number: 21005 Amount due: $.520 . O Account number: 210e6 Amount due: $.520 . O Account number: 11105 Amount due: $70.ee Account number: 11106 Amount due: $70.ee Account number: 11107 Amount due: $70.ee Average Due for residential Customer 82.19 4:58 PM Type here to search 7/7/2017 1Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started