subject

Use the function written in the last lesson to calculate a student’s 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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:00
Designing a mobile web page is a little different from designing a regular web page. name at least three features that should be considered when designing a website that is mobile phone-friendly, and briefly explain why they are important.
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
question
Computers and Technology, 24.06.2019 14:30
Ahousehold consists of a married couple and their twin five-year old daughters. the couples children had no income and lived with their parents all of last year. how many exemptions can the couple claim on last years tax return or they file with the “ married filing jointly “ status? a. 4 b. 5 c. 3 d. 2
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
Dereck works for long hours on his computer.  he frequently experiences physical strain by the end of the day because he does not follow an important rule of ergonomics with respect to the use of keyboards.  which of the following actions of dereck could lead to physical strain? a.  placing the keyboard exactly in front of him while typingb.  keeping hands and wrists straight while typingc.  using wrist pads throughout the dayd.  pounding at the keys on the keyboard while typinge.  resting his hands on the keyboard when he is not typing
Answers: 1
You know the right answer?
Use the function written in the last lesson to calculate a student’s GPA. Ask them how many classes...
Questions
question
Biology, 29.09.2019 20:30
question
Mathematics, 29.09.2019 20:30
question
Mathematics, 29.09.2019 20:30
Questions on the website: 13722360