Assignment 0: Hello, world
Objectives
- to use the Zoo for writing, compiling, running, and submitting C programs
Assignment
Write a program in a single file called
hello.c
that prints
Hello, world!
as the first
line of output. Note that that first line contains a single space to
delimit the words and a newline character at the end. It is also
case-sensitive. You may output anything or nothing after the first line.
Example
[jrg94@giraffe Hello]$ ./Hello
Hello, world!
Garlic mustard is invasive in North America but can be made
into a fine sauce that is delicious on roasted potatoes.
Wavyleaf basketgrass is also invasive but even the deer won't
eat it. It should be killed on sight and some people spend
many days over the summer doing just that.
Submissions
Submit just your
hello.c
file and your log. Your log need not
contain a statement of major difficulties for this assignment.
[jrg94@scorpion Hello]$ /c/cs223/bin/submit 0 hello.c log
Copying hello.c
Copying log
[jrg94@scorpion Hello]$ /c/cs223/bin/testit 0 Hello
/home/classes/cs223/Hwk0/test.Hello
Executing /home/classes/cs223/Hwk0/test.Hello
Public test script for Hello (8/28/19)
gcc -o Hello -Wall -pedantic -std=c99 -g3 hello.c
Each test is either passed or failed; there is no partial credit.
To execute the test labelled IJ, type one of the following commands:
depending on whether the file /c/cs223/hw0/Tests/tIJ is executable or not.
/c/cs223/hw0/Tests/tIJ
./Hello < /c/cs223/hw0/Tests/tIJ
The answer expected is in /c/cs223/hw0/Tests/tIJ.out.
Basic Execution (2 points)
1 point 001. Check First Line
1 point 002. Do not Crash
Basic Execution (2 points): 2 points
End of Public Script
2 points Total for Hello
Possible Deductions (assessed later as appropriate)
-2 Does not make
-1 Log file incorrectly named
-1 Log file lacks estimated time
-1 Log file lacks total time
***** Checking log file *****
Estimate: ESTIMATE: 1/2 hour
Total: TOTAL 2 hours