Create a cpp application that will store and retrieve names

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

Lab: Sequential Files

Lab Overview - Scenario/Summary

You will code, build, and execute a program that requires sequential 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

Lab Steps

Preparation:

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

Locate the Visual Studio 2010 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.

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.

Build upon the code below to complete the assignment.

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

Compile your program. Eliminate all the syntax errors.

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

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

Reference no: EM131274278

Questions Cloud

Anti-insect ultrasound device : Suppose you are taking an anti-insect ultrasound device powered by the battery type from Problem 3 on a 48-hour trip into the wilderness.
Examine when a shipper should use fob origination pricing : Examine when a shipper should use FOB origination pricing and when they should use FOB destination pricing.
Create a database driven application for a business : Create a database driven application for a business. Identify a potential problem that this business might have. (ie, needs an automated inventory system, needs a payroll calculation system, needs a time management system.
Consultant hired by ge top management : Imagine that you are a consultant hired by GE's top management to help them in their future strategic planning. You have been asked to develop a report for GE's Board of Directors.
Create a cpp application that will store and retrieve names : 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.
Service characteristic of intangibility : Does the service characteristic of intangibility, inseperability, heterogeneity, and/or perishability change once a service is placed on the web?
Research the culture of the chosen city : Choose a city in one of the following countries: Taiwan, Spain, Uruguay, Australia, or Turkey. Research the culture of the chosen city and write a one- to two-page essay to describe what you need to know about three cultural differences that would..
Design an abstract class named bankaccount : Design an abstract class named BankAccount (java file called BankAccount.java) with the (exact) following fields and methods (these names and caps exactly).
Continuous improvement models : In approx. 150 words for each point below, explain how each of the following can be incorporated into business systems:

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Function odd_fill() that fills all integers between two poin

write a function odd_fill() that fills all integers between two pointers, first and last, with a sequence of odd integers: 1,3,5,7

  What is encapsulation

What is encapsulation

  Find the moment of inertia

Display a brief description of the program and ask the user to specify the type of loading (end load, intermediate load, uniform load)

  Er diagram to the corresponding tables

Chen, the Customer Analyst of Shopping Spree, has to make the ER diagram to represent the preceding situation, and then to map the ER diagram to the corresponding tables. Help Chen to do the same.

  This function should accept a two-dimensional

getLowestInRow. This function should accept a two-dimensional array as its argument and an integer as its second argument. The second argument should be the subscript of a row in the array. The function should return the lowest value in the specif..

  Create a friend class

Create a Friend class that contains a first name, last name, a birthday, and a telephone number. Create a Contacts class that contains an array of Friend as well as the owner's name and cell phone Number.

  Part 1write a cc program to read a data file and extract

part 1write a cc program to read a data file and extract parameters. the program must obtain the filename via a

  Explain the inheritance concept in java programming.

Explain why the inheritance concept is useful for a programmer.

  Program that opens a file representing an encoded maze

Write a C++ program that opens a file representing an encoded maze and reads it in properly so it can be analyzed.

  Function that shifts the stored value of five character

Write a function that shifts the stored value of five character variables in a circular fashion. Your function should work in the following way. Suspose that C1, C2, C3, C4, C5 are variables of type char, and suspose that the values of these varia..

  Using a for loop, print the contents of the array.

Write the code to update every other element within the array with a lowercase x.

  Analyze the time complexity and space complexity

Develop a simple prototype version of algorithm in C++. Specifically, you will build an in-place, order reversal algorithm - analyze the time complexity and space complexity of your algorithm

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