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.
Answers: 1
Computers and Technology, 22.06.2019 20:10
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
Computers and Technology, 23.06.2019 03:30
Hashtags serve to identify the topic of a given tweet true false
Answers: 2
Computers and Technology, 23.06.2019 10:30
Would a ps4 wired controller work on an xbox one
Answers: 1
Computers and Technology, 23.06.2019 14:00
Select the correct answer. andre was recently hired by an organization to check for system vulnerabilities. he is supposed to exploit these vulnerabilities and create a report on the extent of damage to which the system was susceptible. what position does andre hold in this organization? a. information security analyst b. information assurance manager c. penetration tester d. network security engineer e. chief information security officer
Answers: 2
Use the function written in the last lesson to calculate a student’s GPA. Ask them how many classes...
Mathematics, 18.09.2020 22:01
History, 18.09.2020 22:01
Mathematics, 18.09.2020 22:01
Mathematics, 18.09.2020 22:01
Mathematics, 18.09.2020 22:01
Mathematics, 18.09.2020 22:01
Geography, 18.09.2020 22:01
Health, 18.09.2020 22:01
Mathematics, 18.09.2020 22:01
Mathematics, 18.09.2020 22:01
Geography, 18.09.2020 22:01
Mathematics, 18.09.2020 22:01
Mathematics, 18.09.2020 22:01
Mathematics, 18.09.2020 22:01
Mathematics, 18.09.2020 22:01
Mathematics, 18.09.2020 22:01
Mathematics, 18.09.2020 22:01
Mathematics, 18.09.2020 22:01
Mathematics, 18.09.2020 22:01
Mathematics, 18.09.2020 22:01