Question: The program should do the following. It should accept a series of names and addresses from the console. The user's input should be written to
The program should do the following.
It should accept a series of names and addresses from the console.
The user's input should be written to a text file in the CSV format described in the lesson, but do not include the field names in the first row of the file. Use a delimiter to separate the records.
Read the records from the text file, and display them in a user-friendly format.
Provide a menu to allow the user to append records to the file, display the records, or exit the application.
Build upon the code below to complete the assignment
| Create a C++ console application that will store and retrieve names and addresses in a text file. The program should do the following. It should accept a series of names and addresses from the console. The user's input should be written to a text file in the CSV format described in the lesson, but do not include the field names in the first row of the file. Use a delimiter to separate the records. Read the records from the text file, and display them in a user-friendly format. Provide a menu to allow the user to append records to the file, display the records, or exit the application. Build upon the code below to complete the assignment.
Using the pseudocode below, write the code that will meet the requirements. The pseudocode for the writeData function is shown below. Start open the text file to append start do while loop Allow user to enter name store name (using getline method) Allow user to enter city store city (using getline method) . . write name, city, etc. to the file end loop close the file End
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
