You must time the test yourself and ensure you comply with the conditions below.
smiley.c
which prints an smiley exactly as below.
Your program should behave as follows:
dcc -o smiley smiley.c ./smiley :-)
When you think your program is working you can autotest
to run some simple automated tests:
1511 autotest smileyWhen you are finished working on this exercise you must submit your work by running give:
give cs1511 test03_smiley smiley.c
difference.c
that reads 2 integers and prints their difference.
If they are equal it should print "equal".
Your program should behave exactly like this example:
dcc -o difference difference.c ./difference 7 15 8 ./difference 105 67 38 ./difference 42 42 equalNote your program does not print a message asking the user for input.
Your program should write exactly one line of output.
This line of output should contain only either a single positive integer or the word equal.
You can assume the user supplies 2 integers. You do not have to check the return value from scanf.
When you think your program is working you can autotest
to run some simple automated tests:
1511 autotest differenceWhen you are finished working on this exercise you must submit your work by running give:
give cs1511 test03_difference difference.c
is_triangle.c
to read 3 numbers
and indicate whether they can be the sides of a triangle.
Reminder: 3 numbers can be the sides of a triangle if the sum of any two of the numbers is larger than the third.
Your program should behave exactly like this example:
dcc -o is_triangle is_triangle.c ./is_triangle Please enter three numbers: 5.6 6.5 11.9 triangle ./is_triangle Please enter three numbers: 12.5 5.6 6.5 not a triangle ./is_triangle Please enter three numbers: 1.5 1.5 1.5 triangle ./is_triangle Please enter three numbers: 1.5 42.0 1.5 not a triangleYou can assume the user supplies 3 positive numbers. You do not have to check the return value from scanf.
When you think your program is working you can autotest
to run some simple automated tests:
1511 autotest is_triangleWhen you are finished working on this exercise you must submit your work by running give:
give cs1511 test03_is_triangle is_triangle.c
You can run give multiple times. Only your last submission will be marked.
Don't submit any exercises you haven't attempted.
If you are working at home, you may find it more convenient to upload your work via give's web interface.
Remember you have until Wednesday 21 March 23:59:59 to complete this test.
Automarking will be run several days after the submission deadline for the test. When complete you can view automarking here and you can view the the resulting mark via give's web interface