Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I didn't understand what the project is about. I knew some of the codes. However, I didn't get it. I tried , and everything that

image text in transcribed

I didn't understand what the project is about. I knew some of the codes. However, I didn't get it. I tried , and everything that I learned. I ran the program and it doesn't turn out what I wanted.

Here's all the data from the input file:

63-27.8 18spaces L Is this correct 46??? 28-09ng5 R I don't know 33fill 21b5 l My Project works

I want to output file like what it said on the project.

What can I understand from this project? What are the things I should do to make the output file exactly?

CS121 - Computer Science I Spring 2019 Mr. MacKay Project 1 - due Friday, March 22nd, at the beginning of class 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 Details 1. The input file is called projldata.txt, and is in the folder Simackay CS121 2. Your output file will be called "Last First_projlresults.txt", where Last and First are 3. 4. YOUR last name and first name There are only 3 lines of data in the input file Each line of input contains the following information, separated by spaces a. a positive integer, possibly with some extra characters. b. another positive integer, possibly with some extra characters. c. a single character, either 'l', 'L', 'R' or 'r d. a character string. For Example 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 setfill(static_cast char (intVar)) b. The integer part of the 2nd piece of data is the field width you will use in part of your output setw(abs(intVar) c. The ncxt charactcr tells you the justification of part of your output- if...else if or switch or both d. The string at the end will be printed using the field width, justification, and fill character from above 6. Your output will look like the following (using the example data from above), for each line of input: With a fill character of:* a field width of: 12, a justification of: right, and the string: C++ is furn the output is: **C++ is fun 7. You must have internal documentation: See the handout on Documentation Standards 8. You will e-mail me your code and your output file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

IBM Db2 11 1 Certification Guide Explore Techniques To Master Database Programming And Administration Tasks In IBM Db2

Authors: Mohankumar Saraswatipura ,Robert Collins

1st Edition

1788626915, 978-1788626910

More Books

Students also viewed these Databases questions

Question

Apply your own composing style to personalize your messages.

Answered: 1 week ago

Question

Format memos and e-mail properly.

Answered: 1 week ago