Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

CIS170 Week 7 Lab: Sequential Files

CIS170 Week 7 Lab: Sequential Files

CIS170 Week 7 Lab Instructions

Lab 7 of 7: Sequential Files

Lab Overview—Scenario/Summary

You will code, build, and execute a program that creates an address database using a sequential text file in Comma Separated Value (CSV) format.

Learning Outcomes

1. Continue using a menu system with a console application.

2. Read and write a sequential text file.

3. Generate output records in CSV format.

4. Parse CSV formatted input records and display the results.

Deliverables

Section

Deliverable

Points

Lab

Program Listing and Output

· Accepts names and addresses from console

· Writes addresses to text file

· Reads and displays addresses from file

· Provides menu options for entry, display, and exit

· Code is provided in lab report

· Screen shots of working program provided in lab report

· Code is appropriately commented, formatted, and readable

5

5

5

5

5

5

10

All Steps

Total

40

Lab Steps

Preparation:

If you are using the Citrix remote lab, follow the login instructions located in the lab area in Course Home.

Locate the Visual Studio icon and launch the application.

Lab:

Step 1: Revjew the Requirements for an Address Record Application

Review and analyze the following requirements for a C++ console application that will store and retrieve names and addresses in a text file.

The program should do the following.

1. Display a main menu providing the user with options to 1) Enter new address records; 2) Display address records; 3) Exit the program.

2. If the user selects 1) Enter new address records:

a. Create a new text file named Address.csv

b. Prompt the user to enter a name, street, city, state, and zip code.

c. Write the entered data to the text file in Comma Separated Value (CSV) format.

d. Ask if the user wants to enter another record. If so, repeat; if not, close the file and return to the main menu.

3. If the user selects 2) Display address records:

a. Open the text file named Address.csv

b. Read and display the name, street, city, state, and zip code from each record in the file in a readable format.

c. Close the file and return to the main menu.

4. If the user selects 3) Exit: Exit the program.

Step 2: Create project and enter skeleton code

a. In Visual Studio, create a new C++ console application project named Lab7 using the “empty project” option.

b. Create a new C++ source file in the project named Lab7.cpp.

c. Enter or copy/paste in the following skeleton code, which you will build upon to complete the rest of the assignment:

Order Solution Now