August 29, 2019
In Visual Studio, create a project named “Project01”. Write your name and the date in a delimited comment at the very beginning of your code.
In the main method,
An execution could give something like:
caubert would like to know your height in centimeters. Please enter it:
1͟7͟0͟.͟5͟ ⮠͟
caubert computed that your height is 5 feet and 7 inches.
Note that “170.5” was entered by the user, not by the programmer: your program should work with any height! Another example could be:
caubert would like to know your height. Please enter it, followed by enter:
8͟0͟.͟8͟⮠͟
caubert computed that your height is 2 feet and 7 inches.
Once your project is done, zip the folder into a file “lname_fname.zip”, where “lname” (resp. “fname”) is your last name (resp. first name). Upload this zip on D2L before Friday, September 13, 11:30 PM, in the “Project01” assignment submission folders.
I will use the following guideline to grade your work over 20:
| Points | |
|---|---|
| You submitted something | + 20 |
It is not the right file (e.g., only the sln, or not a zip archive) |
− 19 or − 5 if the source code is present |
| The archive does not have the right name (i.e., “lname_fname.zip”) | − 2 |
| The project does not have the right name (i.e., “Project01”) | − 2 |
| There are no delimited comments at the beginning with your name and the date | − 2 |
| Your program does not compile | − 15 |
| The variable for your username has the wrong type or value. | − 3 |
| The first message is not properly displayed. | − 3 |
| You are not correctly reading the height of the user. | − 3 |
| Your conversion from centimeters to feet and inches is off. | − 4 |
| The second message is not properly displayed. | − 3 |
| You added meaningful comments to your code. | + 1 |
Of course, I will use this table only as a guideline, and use my judgment to grade your work, but I believe it is useful for you to see where my expectations will be.