![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 18.12.2020 02:20 paatnguyyen
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](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 11:00, paigesyring
How does a policy manual an organization? a. it boost productivity. b. it create awareness in employees about the organization’s values. c. it employees achieve targets. d. it safeguards the organization from liabilities.
Answers: 1
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 18:30, lailahussain99
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 19:30, tfaulk2884
Singing in the rain: this first part of the film shows the early history of motion picture. how accurate do you think the portrayal of the early motion picture industry is? why? is historical accuracy important in films and theater productions? explain.
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 in other subjects:
![Konu](/tpl/images/cats/en.png)
English, 28.11.2019 04:31
![Konu](/tpl/images/cats/himiya.png)
Chemistry, 28.11.2019 04:31
![Konu](/tpl/images/cats/en.png)
English, 28.11.2019 04:31
![Konu](/tpl/images/cats/mat.png)
Mathematics, 28.11.2019 04:31
![Konu](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 28.11.2019 04:31
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/informatica.png)
Computers and Technology, 28.11.2019 04:31
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/himiya.png)
Chemistry, 28.11.2019 04:31