Now You Code 3: Final Grade in IST256

Part 1

Our Course Syllabus has a grading scale here:

http://ist256.syr.edu/syllabus/#grading-scale

Write a Python program to input a number of points earned out of 600 and then outputs the registrar letter grade.

For example:

IST256 Grade Calculator
Enter total points out of 600:  550
Grade: A- 

Step 1: Problem Analysis

Inputs:

Outputs:

Algorithm (Steps in Program):


In [1]:
#Step 2: write code here

Part 2

Now that you have it working, re-write your code to handle bad input. Specifically:

  • non integer values
  • integer values outside the 0 to 600 range.

Note: Exception handling is not part of our algorithm. It's a programming concern, not a problem-solving concern!


In [1]:
## Step 2 (again): write code again but handle errors with try...except

Step 3: Questions

  1. What specific Python Error are we handling (please provide the name of it)?

Answer:

  1. How many times must you execute this program and check the output before you canbe reasonably assured your code is correct? Explain.

Answer:

  1. When testing this program do you think its more important to test numbers in the middle of the grade range or exactly on the boundary between one grade range and the next. Justify your response.

Answer:

Step 4: Reflection

Reflect upon your experience completing this assignment. This should be a personal narrative, in your own voice, and cite specifics relevant to the activity as to help the grader understand how you arrived at the code you submitted. Things to consider touching upon: Elaborate on the process itself. Did your original problem analysis work as designed? How many iterations did you go through before you arrived at the solution? Where did you struggle along the way and how did you overcome it? What did you learn from completing the assignment? What do you need to work on to get better? What was most valuable and least valuable about this exercise? Do you have any suggestions for improvements?

To make a good reflection, you should journal your thoughts, questions and comments while you complete the exercise.

Keep your response to between 100 and 250 words.

--== Write Your Reflection Below Here ==--


In [ ]:
# RUN THIS CODE CELL TO TURN IN YOUR WORK!
from ist256.submission import Submission
Submission().submit()