subject

7.5 Code Practice Instructions:
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: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 13:00
Donnie does not have powerpoint. which method would be best for elana to save and share her presentation as is? a pdf a doc an rtf a ppt
Answers: 3
question
Computers and Technology, 25.06.2019 00:30
You are to write a series of steps that anyone could follow to solve the following three problems: 1. even odd a. assume that someone tells you a number (an integer number) b. you hear the number and respond with the word even or odd 2. average a. assume that someone tells you between 3 and 5 numeric values. b. you hear the numbers and respond with the average is some number 3. dog or cat a. explain to a child the differences between a dog and a cat. b. your explanation could be used by a child or anyone to distinguish the difference between a dog and a cat
Answers: 1
question
Computers and Technology, 25.06.2019 02:30
Technology has changed communications by replacing or supplementing traditional modes of communication that were primarily
Answers: 2
question
Computers and Technology, 25.06.2019 04:30
What should be used when performing vehicle maneuvers?
Answers: 1
You know the right answer?
7.5 Code Practice Instructions:
Use the function written in the last lesson to calculate a s...
Questions
question
Chemistry, 01.12.2021 05:00
question
Computers and Technology, 01.12.2021 05:00
question
Physics, 01.12.2021 05:00
question
Chemistry, 01.12.2021 05:00
question
Physics, 01.12.2021 05:00
Questions on the website: 13722360