Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 398 Weeks Ago, 1 Day Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 14 Sep 2017 My Price 10.00

return keystroke

I need to write program in c++ language. this a program using a WHILE loop which reads a data file that you create using the information given below.

There will three variations of the file as follows. There should be ten value entries (refer to the verification file below).

1. File 1; Place a return keystroke immediately after the number final value with no space. Also, do not insert periods or commas in the file.

2. File 2; place a space after the final value and then a return.

3. File 3; end the file with neither a space nor a return. The cursor should remain immediately after the final value.

Create the data files using the filenames pa6input1.dat, pa6input2.dat, and pa6input3.dat respectively.

This assignment will have two parts.

Part 1:

For the first part, do not use a pre-read prior to entering the loop. A pre-read Is a read command given prior to entering the loop where the remainder of the reads take place.

Sum all data items in the file and print the total to the screen.

Process all three files in this manner.

 

Part 2:

For the second part, do a pre-read prior to entering the loop.

Again, sum all data items in the file and print the total to the screen.

Process all three files in this manner.

The same three files will be used for both parts of the program. After each file is read, the output should be checked for proper results. Note: proper sum = 55 for the verification file. The data file content should be output to the screen during the loop for each part.

Both parts will be located sequentially in main().

Verification data for the three files will be as follows:

1 2 3 4 5 6 7 8 9 10

This is numeric data and should not be read as a character string. Place a space between each number preceding the final number.

Describe your results in a comment block at the end of the program and state your conclusions about the file reading methods.

All input data files and the .cpp file must be submitted with the assignment

Answers

(5)
Status NEW Posted 14 Sep 2017 09:09 PM My Price 10.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll

Not Rated(0)