Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION #1 QUESTION #2 QUESTION #3 Use the function written in the last lesson to calculate a students GPA. Ask them how many classes they

QUESTION #1

image text in transcribed

QUESTION #2

image text in transcribed

QUESTION #3

Use the function written in the last lesson to calculate a students GPA. Ask them how many classes they are taking, then ask them to enter the grades for each class and if it is weighted.

Your program should then output the averaged GPA including the decimal place.

Your main program must call the function.

Sample Run

How many Classes are you taking? 7 Enter your Letter Grade: C Is it weighted? (1 = yes) 1 Your GPA score is: 3 Enter your Letter Grade: D Is it weighted? (1 = yes) 0 Your GPA score is: 1 Enter your Letter Grade: A Is it weighted? (1 = yes) 1 Your GPA score is: 5 Enter your Letter Grade: B Is it weighted? (1 = yes) 1 Your GPA score is: 4 Enter your Letter Grade: C Is it weighted? (1 = yes) 0 Your GPA score is: 2 Enter your Letter Grade: A Is it weighted? (1 = yes) 0 Your GPA score is: 4 Enter your Letter Grade: C Is it weighted? (1 = yes) 0 Your GPA score is: 2 Your weighted GPA is a 3.0. 

QUESTION #4

Name everything that is currently using the Main Memory of your computer right now. Remember, your phone or tablet is also a computer that has Main and Secondary Memory, so if you're using that, you can still answer this question (and it will be even more interesting).

For example.

Right now, I have Chrome open. I'm typing this into a Google Doc (it's likely that even though that doc is stored in the cloud, it's at least partially loaded into Main Memory in case I drop wifi my current work isn't lost). I also have Excel open (even though I'm not using it currently, it's still taking up space in Main Memory). Excel has 3 files loaded as well. Finally, I can't forget the Operating System - Windows 10.something.

THIS IS A SIMPLE, HIGH SCHOOL COMPUTER SCIENCE COURSE IN PYTHON. PLEASE DON'T MAKE TOO COMPLICATED, THANK YOU!

Write a program that prompts the user to input a letter grade in either capital or lowercase. Your program should then output the correct number of the GPA. See the table below for possible inputs and expected outputs. Your program should define at least one function named GPAcalc' that is called from your main program. Note: If the input is anything other than "A" "B" "C", "D" or F", your program should output the string "Invalid". Input: Letter Grade Expected output: GPA value 4 2 0 Anything else Invalid Sample Runs Run 1 Enter your Letter Grade: a Your GPA score is: 4 Run 2 Enter your Letter Grade: A Your GPA score is: 4 Run 3 Enter your Letter Grade: C Your GPA SCOre is: 2 Run 4 Enter your Letter Grade: G Your GPA score is: Invalid Adjust the code you wrote for the last problem to allow for weighted classes. Add a parameter weighted (1 = yes, 0-no) and then return the correct number for the GPA. Weighted classes get one extra point on the GPA value Input: Letter Grade Expected output: Expected output: Non-weighted GPA value Weighted GPA value 4 4 2 2 0 Anything else Invalid Invalid Sample Run Run 1 Enter your Letter Grade: Is it weighted? (1yes, Your GPA score is: 4 no) 1 Run 2 Enter your Letter Grade: B Is it weighted? (1-yes, = no) Your GPA score is: 3 Run 3 Enter your Letter Grade: a Is it weighted?(1 yes, no) Your GPA score is:4

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

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

3rd Edition

0760049041, 978-0760049044

More Books

Students also viewed these Databases questions