Write program to read phone call records from a file

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

LAB - Phone Calls Processing

Goal: Your assignment is to write a C++ program to read in a list of phone call records from a file, and output them in a more user-friendly format to the standard output (cout). In so doing, you will practice using the ifstream class, I/O manipulators, and the string class.

Submitting your code - Your solution should be contained within a single C++ file, and it must be named "PhoneCalls.cpp". Do not use precompiled headers.

Before submitting,

1) Create a new directory

2) Copy "PhoneCalls.cpp" to this new directory

3) Bring up a Developer Command Prompt for VS 2017 window.

4) Use "cd" to position yourself into this directory

5) Run the command "CL /EHsc PhoneCalls.cpp"

6) Make sure your file compiles with no warnings and errors, and links. A "PhoneCalls.exe" should be created.

7) Download the three test files "phoneLog1.txt", "phoneLog2.txt" and "phoneLog3.txt" into this directory

8) Download the three output files "output1.txt", "output2.txt" and "output3.txt" into this directory

9) Check the output your get is correct for the first test file:

a. Run your "exe" using the command "PhoneCalls.exe > myoutput1.txt". b. You won't see any output, but you will need to type in phoneLog1.txt followed by ENTER

c. Run the command "fc output1.txt myoutput1.txt". You should see a message indicating that the two files are identical.

10) Check the output your get is correct for the second test file:

a. Run your "exe" using the command "PhoneCalls.exe > myoutput2.txt".

b. You won't see any output, but you will need to type in phoneLog2.txt followed by ENTER

c. Run the command "fc output2.txt myoutput2.txt". You should see a message indicating that the two files are identical.

11) If you do the EXTRA CREDIT assignment follow the previous steps with phoneLog3.txt

When you are able to pass these tests, you are ready to submit "PhoneCalls.cpp". This is the ONLY file you should submit.

Attachment:- Assignment Files.rar

Reference no: EM131930886

Questions Cloud

What was the result of your political ideology quiz : What was the result of your political ideology quiz? Do the results of the quiz give an accurate or adequate representation of your political position?
Identify when you would use if-else statement in programming : Provide the definition of an If-Else statement. Identify when you would you use an If-Else statement in programming.
Supply chain ethics when they purchase apparel : Do you believe that consumers consider a brand's supply chain ethics when they purchase apparel?
Marketers to implement with regards to seo : That is, if you were a SEO consultant for a small business owner, what three tips would you insist that the entrepreneur immediately change on his website?
Write program to read phone call records from a file : CSC 2430 LAB 1 - Phone Calls Processing - Your assignment is to write a C++ program to read in a list of phone call records from a file
Compile an annotated bibliography : HRMT20024 T1 2018 - Assessment 2 Annotated Bibliography Guidelines - identify which sector you will study for Assessments 2
Generate potential interviewing possibilities : How beneficial can professional sites such as LinkedIn or other social media sites prove when preparing for your career? Please explain.
What is meant by activity costing : 1. What is meant by activity costing? Please explain. 2. What is meant by direct labor variances? Please explain.
What do you need to know to be able to evaluate the issue : Do the public articles give you enough information to evaluate the issue? What information isn't there? What do you need to know to be able to evaluate issue?

Reviews

len1930886

4/6/2018 3:28:36 AM

Grading - Correctness is essential. Make sure your solution builds as described above and correctly handles both “phoneLog1.txt” and “phoneLog2.txt”. We will test on other input file(s) as well. Even if your solution operates correctly, points will be taken off for: Not following the design described above, Not adhering to style guidelines described above, Using techniques not presented in class, Programming error not caught by other testing and Not following good programming practices.

len1930886

4/6/2018 3:28:30 AM

Grading Rubric Summary - The following aspects are going to be consider during grading. Make sure you comply with all of them. The program compiles (there will be no partial credit for programs that do not compile). Provides the correct output for Test 1, Test 2 and Test 3 (The first two were given to you, the third was not), Catches errors gracefully, the program does not crash on incorrect input, The program outputs the information in the specified format, The program calculates time difference correctly, The program validates dates and phone numbers, The program follows the good programming practices discussed in class, The assignment follows all the instructions and In general the program does not crash.

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