CIS115 Lab 2 New – Even or Odd and grade checker in python – python code, word document containing code and screenshots – Perfect Solution – Instant Delivery
EVEN OR ODD AND GRADE CHECKER IN PYTHON
SUMMARY – PART 1
Create a program that checks whether a number is even or odd.
SUMMARY – PART 2
Create a program that checks one’s letter grade.
DELIVERABLES
• 2 source code Python files.
• A Word document containing both Part’s source code and the screen print of the program outputs.
LAB STEPS
PART 1 – EVEN OR ODD TESTER PROGRAM
This program will allow the user to enter any whole number (integer) and the program will report whether this is an even or odd number. So this involves a simple selection statement. To determine if a number is even or odd, you can use the modulus operator (%) which gives you the remainder of dividing two numbers. If you divide a number by 2, the remainder will be zero for even numbers and 1 for odd numbers.
Sample Output:
Even or Odd Checker Program
Enter an integer: 20
This is an even number.
Goodbye!
Specifications:
• Use the selection structure.
• Assume that the user will enter a valid integer
• Include a Documentation Header with the Program’s name, Programmer name, Date and Purpose
• Include opening and closing messages (see example)
• Hint: use the modulus operator (%)
• Test your program with even and odd numbers to make sure both work as expected
PART 2 – GRADE CHECKER PROGRAM
This program allows the user to enter a number of points between 0 and 100. We will not do any error checking on the input. Use selection to report the corresponding letter grade based on the information below:
• 100 – 90: A
• 89 – 80: B
• 79 – 70: C
• 69 – 60: D
• 59 and below: F
Sample Output:
Welcome to the Grade Checker Program
Enter your numerical grade: 88
You earned a B
Thanks for using the Grade Checker Program
• Assume the user will enter valid data.
• Selection structure needs to be used.
• Include a Documentation Header with the Program’s name, Programmer name, Date and Purpose
• Include opening and closing messages (see example)
• Test your program using the boundary numbers: 100, 90, 89, 80, 79, 70, 69, 60, 50 and 40. Did you get the expected results?