Question: QUESTION #1 QUESTION #2 Use the function written in the last lesson to calculate a students GPA. Ask them how many classes they are taking,
QUESTION #1

QUESTION #2
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 #3
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!
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
Get step-by-step solutions from verified subject matter experts
