diff options
| author | mokha <mokha@cisco.com> | 2019-05-18 13:38:38 -0600 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2019-05-18 13:38:38 -0600 |
| commit | fedaffb18b96f5d492ca8e9f31216ca0ceb9d093 (patch) | |
| tree | 2d30998a6ecf4ef6742350a6060c52b61cce82a4 | |
add assignment description
| -rw-r--r-- | README.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..db19ca4 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +For Assignment 1, you are going to complete the following learning activities taken from your textbook. +Use the script command to save the terminal session wherever necessary. Saving the terminal starts with the script filename command and ends with exit. + +Combine all required problems in this set in one file, name it 1COMP325_1_YYMM` +(replacing ‘YYMM’ with the current year and month, e.g., 1309), +and upload it here to submit it to your tutor for marking and feedback. + +Be sure to complete the final step—click on the Send for Marking button to notify your tutor. +Solve problems 7–11 and 15–17 at the end of Chapter 7. +Solve problems 7–17 at the end of Chapter 8. +Do problem 9 (What do the following commands do?) in Chapter 9. +Enter a C program that reads a temperature in Celsius entered from a keyboard and displays the corresponding temperature in Fahrenheit and complete the steps below. (Hint: Look for such a program in the textbook or online.) +Compile this program using the cc compiler, or any other compiler. Fix any errors, and recompile. +Your program must have declaration statements, such as float c, f; . Delete the semicolon from the end of the statement. Recompile and report the kind of error. The C compiler often provides cryptic error messages. Interpret this message. +Change the float c, f; statement to (float c; char f;). Do you get any errors during compilation? What are they and why? Do you see any difference between running this program and the earlier version? Why? +If your program uses a cout statement, then replace it with a printf statement that does the same thing and vice versa. If you have used neither cout nor printf in the first version, then replace what you have with printf. +Explain how you can schedule the executable program to run at 1:00 a.m. and to take the input from a file, rather than the keyboard, without any changes to the source program. +Explain how you can find the time it took the computer to execute your program. +Explain how the output of your program can be automatically emailed to your friend upon completion. |
