UMBC CMSC104 |
Project 3 is worth 100 points and due at midnight, Wednesday, 14 April.
Create a file named proj3.c, using the editor of your choice. This program will ask the user for a number between 5 and 15. Then print out the values, the value squared, and the value cubed for the values from 1 to the number entered by the user.
Compile the program with the following command:
If you got an error and you probably did, simply go back into the editor and fix it. Then recompile, continuing until you get no warnings or errors.
Enter a number between 5 and 15: 5
Value |
Square |
Cube |
1 |
1 |
1 |
2 |
4 |
8 |
3 |
9 |
27 |
4 |
16 |
64 |
5 |
25 |
125 |
Execute the program with one of the two commands:
If everything worked correctly, you should get the messages giving the total surface area and the volume.
Notice that the UNIX prompt must be on the next line!
Once you have everything absolutely correct, you must use the following set of commands to create the file that you will send to the TA for grading.
Notice that the first character in the TA's address is "ell", the last one is the number "one".
This project will be grade using the following scale:
Documentation |
25 points |
Correct Results |
25 points |
Correct Sytle |
25 points |
Other |
25 points |
UMBC CMSC104 |