Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this section of the lab, you will be creating a program that will calculate your final number and letter grade for this course. You
In this section of the lab, you will be creating a program that will calculate your final number and letter grade for this course. You will need to use the percentages from the syllabus.
You will be using the Python IDLE a text editor and programming environment that comes with python Name your file labXXpy where you replace the XX with your initials.
Your program must include:
A comment on the top line of your program containing your name.
A comment on the second line containing your section number.
A comment on the third line containing the date.
A comment on the fourth line containing your email address.
A comment with the lab number and purpose of this lab.
Declare a variable for each grade test test labaverage, and read in a value from the user for each of these. Convert these to integers if necessary.
Declare a variable to store the final number grade and perform this calculation based on the percentages on the syllabus.
Output the number grade to the user giving them a happy, positive message if the number grade is a or above and a less happy message if the grade is less than For example:
Congratulations, your grade is a XX or Sorry, your grade is a XX
where XX is the final number grade. HINT: you will do this using an if statement
Output a message giving the user their final letter grade. You will also implement this using a series of if elif, else statements.
Output a message to the user thanking them from using your program that includes your first and last name.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started