Answered step by step
Verified Expert Solution
Link Copied!

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 lab3_XX.py 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 (test1, test2, lab_average, ...) 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 60 or above and a less happy message if the grade is less than 60. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

for ( i =0; i = will be executed?

Answered: 1 week ago

Question

c. What groups were least represented? Why do you think this is so?

Answered: 1 week ago