Due: April 30, 2024
Points: 100
All programs are to be submitted through Gradescope. Gradescope will compile and execute your program, sometimes with varying inputs or invocations. You can see your score once executions are done. You can submit your program multiple times, up to the deadline — at that point, the score you have will usually be the grade for that problem. I say “usually” because we reserve the right to look at your submission and deduct points if you do not use proper programming style.
You have to name your program as given in the problem. Otherwise you will get an odd error message indicating there is a problem with Gradescope.
Also, your output must match Gradescope’s exactly, including blanks and tabs — so pay attention to the example output!
Take the change.c that you created to answer homework 1, problem 2, and change the output to reflect the following:
Here are some examples of inputs and outputs. Input is shown in red, and “↵” represents a newline. Note that there is a prompt for the input!
Amount? 16↵ 16 cents is 1 dime, 1 nickel, and 1 penny
Amount? 15↵ 15 cents is 1 dime and 1 nickel
Amount? 1↵ 1 cent is 1 penny
Call your program “change2.c”.
|
ECS 36A, Programming & Problem Solving Version of April 22, 2024 at 11:29PM
|
You can also obtain a PDF version of this. |