Create a new project write your code using the processing


Overview - Scenario/Summary

You will code, build, and execute a program that requiressequential files to create an address database.

Learning Outcomes

Continue using a menu system with console applications

Be able to write a console application

Demonstrate entering, appending, storing, and retrieving records

Be able to write lines of output to a text file in order to create a report

Step 1: Requirements: An Address Database

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 lecture, but do not include the field names in the first row of the file.

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.

Step 2: Processing Logic

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 3: Create a New Project

Create a new project. Write your code using the processing logic in Step 2. Make sure you save your program.

Step 4: Compile and Execute

a) Compile your program. Eliminate all the syntax errors.

b) Build your program and verify the results of the program. Make corrections to the program logic, if necessary, until the results of the program execution are what you expect.

Step 5: Print Screenshots and Program

1. Capture a screen print of your output. (Do a print screen and paste into an MS Word document.)

2. Copy your code and paste it into the same MS Word document that contains the screen print of your output.

3. Save the Word document

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create a new project write your code using the processing
Reference No:- TGS01037932

Expected delivery within 24 Hours