Starting from:
$35

$29

Assignment #6 Solution

Objectives: This assignment gives you some experience with designing and writing C++ programs with input/output operators and files.

All work should be pre-graded in the labs and turned in to eCampus by the deadline. For programs, you need to turn in only the source code (not object code or executable code). Your code will be tested using a g++ compiler. Therefore, you are welcome to develop your program in Visual Studio or Xcode, but make sure your code also compiles using g++ and runs on a Linux machine.

    1. (10 points) Create a text file, called README, in which you provide:

        ◦ Your First Name, Last Name, UIN, Section Number, User Name, E-mail address

        ◦ State the Aggie Honor statement:

I certify that I have listed all the sources that I used to develop the solutions and code to the submitted work.

On my honor as an Aggie, I have neither given nor received any unauthorized help on this academic work.

Your Name    Date

        ◦ List any resources used such as webpages (provide URL). Do not mention the textbook and discussions with the Instructor, TA, or Peer Teachers.

        ◦ List any known problems with the assignment you are turning in. For example, if you know your code does not run correctly, state that. This should be a short explanation.

        ◦ Provide list of problems.

        ◦ Provide a short description or pseudocode.

        ◦ Write how you tested your program(s) for correctness and how you used exceptions for the error handling.

        ◦ Submit to eCampus an electronic version of the file README along with your C++ code for the problems listed below and a hard copy to your TA.

    2. (30 points) Complete the exercises 1 through 4 p. 377 and demo them in the labs. The solution code for this problems should be in the files named:

LastName_UIN_Exercise1_p377.cpp LastName_UIN_Exercise2_p377.cpp LastName_UIN_Exercise3_p377.cpp LastName_UIN_Exercise4_p377.cpp

The solutions to the exercises listed above should be completed during the lab time, and presented to your TA or PTs before its submission to eCampus.

Important: The file names should correspond to the exercise.

1
    3. Complete the exercise from the textbook p. 408 and 409

        (a) (15 points) Exercise 1 p. 408

        (b) (15 points) Exercise 4 p. 408

        (c) (15 points) Exercise 5 p. 408

        (d) (15 points) Exercise 8 p. 409

Important: The files should be named: LastName_UIN_Exercise1_408.cpp, Last-Name_UIN_Exercise4_408.cpp, LastName_UIN_Exercise5_408.cpp, and Last-Name_UIN_Exercise8_409.cpp

where LastName is your last name and UIN is your UIN number.

Submit all the files together as a zip/tar file to eCampus for grading.

















































2

More products