Question: Make a code using C++ from the following pages (everything is explained) The input file is called proj1data.txt Must include internal documentation and follow the
The input file is called proj1data.txt
Must include internal documentation and follow the coding standards for C++ (the pages are attached)
Directions for Project1 General Description: for this project, you will read data from a file, process it according to the specifications below, and store your results in another file c. The next character tells you the justification of part of your output d. The string at the end will be printed using the field width, justification, and fill character from above. Details: 6. Your output will look like the following (using the example 1. The input file is called projidata.txt, and is in the folder data from above), for each line of input: S:mackay CS121 2. Your output file will be called Last First-proj lresults.tr With a fill character of where Last and First are YOUR last name and first name 3. There are only 3 lines of data in the input file 4. Each line of input contains the following information, sepa- a field width of: 12, a justification of: right, and the string: C++ is furn rated by spaces: the output is: C++is fun a. a positive integer, possibly with some extra characters. b. another positive integer, possibly with some extra char- acters. 7. You must have internal documentation: c, a single character, eitherl','L','R' or See the handout on Documentation Standards d. a character string. For Example 8. You will e-mail me your code and your output file. 42.2 12k r C++ is fun 5. a. The integer part of the first piece of data is the ASCII value of the fill character you will use in your output b. The integer part of the 2nd piece of data is the field width you will use in part of your output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
