[Solved] C Please Would Appreciate Thank Imagine Fictitious Internet Provider Keeps Following Anon Q37190903
In c++ please. would appreciate it. Thank you!
Imagine a fictitious Internet provider that keeps the following”anonymized” data about each of their customers and the servicesthey purchase. The data is anonymous, as many modern data sets are,to allow the data to be processed with fewer privacy concerns.
FieldData TypeCustomer IDstringStreamingMoviesintStreamingTVintMultipleLinesintMonthlyChargesdouble
The fields are formatted as follows:
Customer ID takes the formatone letter A-Z followed by 3 numbers 0-9. For example, A123, B777,C817 are all valid Customer IDs. Be sure to validate thisin the input.
StreamingMovies, StreamingTVand MultipleLines are boolean values representedby 0 (false) or 1 (true). For example, if the customer record has’1′ for a StreamingMovies value, it means the customer subscribesto the StreamingMovies service.
MonthlyCharges is a floating point value,representing the customer’s monthly bill.
Write a C++ console program that prompts a user to enterattributes for three customers, and outputs the collected data in aformatted table.
Since the code block to prompt the user for attributes and storetheir values is to be used three times instead of just one, write ageneric value-returning function to dothese operations and return a ‘Customer’ data structure (struct).Call it three times from main — once foreach customer.
You may write a void function to output the result for aCustomer struct, passed as a parameter to the function. Or do so ina code block in main — your choice.
Here are the other requirements:
- Define a ‘struct Customer’ data type with the fields and typesfrom the above table.
- In the output, include table column headings,correctly-spaced.
- The total of all column widths and the spaces separating themshould not exceed 80 spaces.
- You can use either cin >> for the attributes orgetline().
- Serialize down to customers.txt asthe last thing that your program does. If you do this right, thefile should have 15 lines — 5 for each of the 3 objects.
In this assignment your program will only be writing to a file– not reading the data later. We’re doing this to practice”serializing” the data down to a file so we can read it again infuture programs.
Expert Answer
Answer to In c++ please. would appreciate it. Thank you! Imagine a fictitious Internet provider that keeps the following “anonymiz… . . .
OR

