Demonstrate entering appending storing and retrieving record

Assignment Help C/C++ Programming
Reference no: EM131539799

Lab Assignment: Sequential Files

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

Learning Outcomes

1. Continue using a menu system with console applications.
2. Be able to write a console application.
3. Demonstrate entering, appending, storing, and retrieving records.
4. Be able to write lines of output to a text file in order to create a report.

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: 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.

1. It should accept a series of names and addresses from the console.

2. 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.

3. Read the records from the text file, and display them in a user-friendly format.

4. 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.

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.

The program input should appear similar to this.

Append Records

Name..........John Smith
Street.........902 Union Ave
City............Any Town
State...........TX
Zip Code......78552

"Enter another Record? (Y/N) "
The file structure should look like this.
John Smith, 902 Union Ave, Any Town, TX, 79552
Eric Jones, 345 State Way, Fresno, CA, 93432
...

The file output should appear similar to the following.

Show Records

Record #1
Name...........John Smith
Street..........902 Union Ave
City.............Any Town
State...........TX
Zip Code......78552

Record #2
Name...........Eric Jones
Street..........345 State Way
City.............Fresno
State...........CA
Zip Code.......93432

(A)ppend Records, (S)how Records, (E)xit

Step 3: Create a New Project

Create a new project and name it LAB7. 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 as Lab07_LastName_FirstInitial.

Attachment:- Lab-Instructions.rar

Reference no: EM131539799

Questions Cloud

Referring to the corporate life cycle chart : Referring to The Corporate Life Cycle chart, where would you place General Mil in the cycle?
Write about an organization within these movements : Instead, write about an organization within these movements, that has specific aims. What changes would you recommend they make
How did the new american nation deal with slavery : How did the new American nation deal with Slaves and Slavery?
Identify the social norms structures and changes : Use your sociological imagination to identify the social norms, structures, and changes involved in shaping the situation
Demonstrate entering appending storing and retrieving record : Demonstrate entering, appending, storing, and retrieving records. Be able to write lines of output to a text file in order to create a report.
Discuss the changes in tru activities in japan : The analysis includes a brief summary of major events contributing to a slow start when Toys R Us (TRU) launched its effort to expand in Japan.
Strategic alternatives and recommended strategy : You also will submit an executive summary, discussing in detail, your strategic alternatives and recommended strategy."
Prepare a flexible budget performance report of variances : Business Solutions' second quarter 2012 fixed budget performance report for its computer furniture operations follows. The $156,000 budgeted expenses include.
Explain durkheim''s concept of anomie : After explaining these types of social solidarity in different societies, please explain Durkheim's concept of "anomie."

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd