![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 13.02.2022 14:00 Mikey3414
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)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 18:00
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 13:50
What does code do? a creates a text box that says "solid black" b creates a black border of any width c creates a black border 1 pixel wide
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 17:40
Create a file called favorite_foods, and list your favorite foods, entering five or six or more. press enter after each favorite food so it appears on its own line (make certain you also press enter after the final food item). after the file is created, add two more foods you like that are not on the list (press enter after the final food item). view the list of foods to make certain the two items you added appear at the end of the list
Answers: 2
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](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 18.03.2021 03:00
![question](/tpl/images/cats/biologiya.png)
Biology, 18.03.2021 03:00
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 18.03.2021 03:00
![question](/tpl/images/cats/en.png)
English, 18.03.2021 03:00
![question](/tpl/images/cats/mkx.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 18.03.2021 03:00
![question](/tpl/images/cats/mkx.png)
Arts, 18.03.2021 03:00
![question](/tpl/images/cats/pravo.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 18.03.2021 03:00
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/en.png)
English, 18.03.2021 03:00