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, 22.06.2019 13:30
Asoftware company hired ray, a college graduate to work in their development team. ray is assigned to work in the coding phase of a project. what happens during the coding phase of a software development project? a. the customer receives a working model of the software. b. developers convert the program design into code. c. developers gather requirements directly from the stakeholders. d. testing teams check the product for quality.
Answers: 1
question
Computers and Technology, 22.06.2019 14:30
If the polar bear were taken out of the food chain what would happen to the seal population the seal population would diminish the seal population would grow dramatically the seal population would stay the same the seal population would decrease slightly
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
question
Computers and Technology, 23.06.2019 09:10
(328 inc. 448 ind. 480 in25. john has a collection of toy cars. he has 2 red cars, 4 blue cars, 4 black cars, and 6 yellowcars. what is the ratio of red cars to yellow cars? a. 1: 2b. 1: 3c. 1: 626. the net of a right triangular prism is shown below.
Answers: 2
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, 26.11.2020 06:10
question
Arts, 26.11.2020 06:10
question
Mathematics, 26.11.2020 06:10
question
Mathematics, 26.11.2020 06:10
question
Social Studies, 26.11.2020 06:10
Questions on the website: 13722360