Programming/Homework 1

These are all one file programs. Make sure to name the file the program assignment name with a .cpp extension. For example, the third program would be called diet.cpp Each program should be created in its own directory with the same name as the program but capitalize the first letter of the directory name, e.g., Diet.

Make sure to work on each program in its own directory.

You are required to turn in design documentation in addition to submitting your program files. Programming requires you to solve the problem/task before you start to type in your code. Remember to carefully write these programs step by step. If you just login and 'have at it' you may not be able to complete your assignments on time.

If you have any questions, especially about what the program is supposed to do contact me.

Errors

This is a combination of problems 5 and 6 on page 33. Complete problem 5 as described in the book first. For problem 6 you will use the program you wrote for problem 5 but be sure to append an underscore and the letter (a-f) to the end of a separate program file as you work through each of the the 6 parts (a-f). For example, part a/ would be named errors_a.cpp. You must also submit your catalog of errors. Your catalog should be organized into "introduced error-compiler message" pairs.

Basic

This problem will give you experience with how i/o is accomplished and with the concept of an expression. Complete the comments in the following files.

Diet

This program is problem 2 on page 94

Stereo

This program is problem 9 on page 95.

Sums

This program is problem 10 on page 96.

Do not use any sort of loop statement.