Difference between revisions of "CSC111 Homework 2 2018"
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[User:Thiebaut|D. Thiebaut]] ([[User talk:Thiebaut|talk]]) 18:12, 4 February 2018 (EST) | [[User:Thiebaut|D. Thiebaut]] ([[User talk:Thiebaut|talk]]) 18:12, 4 February 2018 (EST) | ||
---- | ---- | ||
+ | <onlydft> | ||
<bluebox> | <bluebox> | ||
− | The due date for this homework is Tuesday 2/15 at 11:55 p.m. | + | The due date for this homework is Tuesday 2/15 at 11:55 p.m. For all problems, |
</bluebox> | </bluebox> | ||
<br /> | <br /> | ||
− | <showafterdate after="20180207 | + | <showafterdate after="20180207 11:00" before="20180601 00:00"> |
+ | <br /> | ||
+ | =Grading= | ||
+ | <br /> | ||
+ | Moodle uses numbers to grade programs. These numbers are translated into letters using the following scale: | ||
+ | |||
+ | * 100.00 - 93.00: A | ||
+ | * 92.99 - 90.00: A- | ||
+ | * 89.99 - 87.00: B+ | ||
+ | * 86.99 - 83.00: B | ||
+ | * 82.99 - 80.00: B- | ||
+ | * 79.99 - 77.00: C+ | ||
+ | * 76.99 - 73.00: C | ||
+ | * 72.99 - 70.00: C- | ||
+ | * 69.99 - 67.00: D+ | ||
+ | * 66.99 - 60.00: D | ||
+ | * 59.99 - 0.00: F | ||
<br /> | <br /> | ||
=Problem 1= | =Problem 1= | ||
Line 41: | Line 58: | ||
* Make sure to label the columns with " Fahrenheit" and "Celsius" please! | * Make sure to label the columns with " Fahrenheit" and "Celsius" please! | ||
* Submit your program on Moodle, in the HW2 PB1 section. | * Submit your program on Moodle, in the HW2 PB1 section. | ||
+ | <br /> | ||
+ | Possible grades: A, A- or B. Programs that crash before outputting any information get a C. | ||
<br /> | <br /> | ||
=Problem 2= | =Problem 2= | ||
<br /> | <br /> | ||
− | Write a program called '''hw2_2.py''' that displays a table of temperatures, the | + | Write a program called '''hw2_2.py''' that displays a table of temperatures, the right column in Celsius, and the left column in Fahrenheit. The program asks the user for '''three''' numbers: |
* a temperature '''T''', | * a temperature '''T''', | ||
* a number of temperatures '''n''', | * a number of temperatures '''n''', | ||
Line 78: | Line 97: | ||
<br /> | <br /> | ||
− | + | '''Possible grades:''' A, A- or B. Programs that crash before outputting any information get a C. | |
+ | <br /> | ||
=Problem 3= | =Problem 3= | ||
<br /> | <br /> | ||
Line 104: | Line 124: | ||
Submit your program to the HW2 PB3 section on Moodle. | Submit your program to the HW2 PB3 section on Moodle. | ||
<br /> | <br /> | ||
+ | '''Possible grades:''' A, A- or B. Programs that crash before outputting any information get a C. | ||
+ | |||
<br /> | <br /> | ||
<!-- =============================================================== --> | <!-- =============================================================== --> | ||
Line 126: | Line 148: | ||
Submit your program to the HW2 PB4 section on Moodle. | Submit your program to the HW2 PB4 section on Moodle. | ||
<br /> | <br /> | ||
+ | '''Possible grades:''' A, A- or B. Programs that crash before outputting any information get a C. | ||
+ | |||
<br /> | <br /> | ||
Line 191: | Line 215: | ||
==Your Assignment== | ==Your Assignment== | ||
<br /> | <br /> | ||
− | Write a new program that will prompt the user for a number and use this number to print two triangles made of stars on the | + | Write a new program that will prompt the user for a number and use this number to print two triangles made of stars, one on top of the other. The number entered by the user will define the number of lines used to display each triangle. |
Here is an example of how the program will work when the user enters 5: | Here is an example of how the program will work when the user enters 5: | ||
− | |||
How many lines? <u>5</u> | How many lines? <u>5</u> | ||
− | |||
− | |||
* | * | ||
Line 204: | Line 225: | ||
*** | *** | ||
**** | **** | ||
− | ***** | + | ***** |
− | |||
− | |||
− | |||
***** | ***** | ||
**** | **** | ||
Line 214: | Line 232: | ||
* | * | ||
+ | Here is an example where the user enters the number 2: | ||
+ | |||
+ | How many lines? <u>2</u> | ||
+ | |||
+ | * | ||
+ | ** | ||
+ | ** | ||
+ | * | ||
+ | |||
<br /> | <br /> | ||
− | |||
Submit your program to the HW2 PB5 section on Moodle. | Submit your program to the HW2 PB5 section on Moodle. | ||
<br /> | <br /> | ||
+ | '''Possible grades:''' A, A- or B. Programs that crash before outputting any information get a C. | ||
+ | |||
+ | <!-- =================================================================== --> | ||
+ | <!-- =================================================================== --> | ||
+ | <!-- =================================================================== --> | ||
+ | <!-- =================================================================== --> | ||
+ | |||
</showafterdate> | </showafterdate> | ||
<br /> | <br /> | ||
− | <showafterdate after=" | + | <showafterdate after="20180216 00:00" before="20180601 00:00"> |
=Solution Program= | =Solution Program= | ||
<br /> | <br /> | ||
Line 347: | Line 380: | ||
<br /> | <br /> | ||
+ | </onlydft> | ||
<onlydft> | <onlydft> | ||
=Moodle VPL Module= | =Moodle VPL Module= |