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

  Write a program that convert fahrenheit to degrees celsius

Write a program that will convert Degrees Fahrenheit to Degrees Celsius.

  Prepare a program to print the permutation

write a program to print the permutation that lexicographically precedes the given input permutation. If the given permutation is the lexicographically least permutation, then print the input permutation itself.

  Can the method change the name of its argument

Can a method with an argument of a class type change the values of the instance variables in the object named by the argument?

  Implement the bounded stack with a concrete class

Using Eclipse, implement the bounded stack with a concrete class names

  Write code that declares an int array named month

Write code that declares an int array named month with 5 rows and 7 coloumns and initializes every element to -1.

  Compute the area of a right angled triangle

BMS 201 - Design this program using an algorithm of your choice, draw the flow chart and convert the flowchart into a c++ program

  Compute the volume of write-back traffic in bytes

Compute the volume of write-back traffic in bytes. Provide a plot of the miss rate vs. the line size for line sizes of 32 bytes to 2 Kbytes. Note that line sizes are a power of 2.

  Calculate the gross pay of a set of employees

Write a C program that will calculate the gross pay of a set of employees - Calculate and print the total sum of Wage, Hours, Overtime, and Gross values

  Program that utilizes a good design proces

Analyze, design, and document a simple program that utilizes a good design process and incorporates sequential, selection and repetitive programming statements as well as at least one function call and the use of at least one array one-dimensional..

  Write accessor funtions for height, width, and depth.

Write accessor funtions for height, width, and depth.Also, what exactly is an accessor function?

  Create an rmi service for addition and factorial

Create an RMI service for "addition" and "factorial". The service will define two remote functions - add() and factorial(). The add() function will take two integers as parameters and return the addition of these numbers.

  Sum of all odd numbers between a and b

The sum of all odd numbers between a and b (inclusive). Where a and b are read in by the user - Can you find the error in this code.

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