subject

7.4 code practice question 1 edhesive Instructions
Write a program that prompts the user to input a letter grade in either capital or lowercase. Your program should then output the correct number of the GPA. See the table below for possible inputs and expected outputs. Your program should define at least one function named GPAcalc that is called from your main program.

The GPAcalc function should take exactly one parameter—a string for the letter grade as lower or upper case. It will return either an integer for the GPA value or a string Invalid, if the letter grade parameter is invalid.

Input: Letter Grade Expected output: GPA value
A or a 4
B or b 3
C or c 2
D or d 1
F or f 0
Anything else Invalid
Sample Run 1
Enter your Letter Grade: a
Your GPA score is: 4
Sample Run 2
Enter your Letter Grade: A
Your GPA score is: 4
Sample Run 3
Enter your Letter Grade: C
Your GPA score is: 2
Sample Run 4
Enter your Letter Grade: G
Your GPA score is: Invalid

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Formula that contains a nested function that first calculates the average of the values in range e6: p6 and uses the round function to round that average to the nearest 10 dollars. use -1 for the value of the number digit argument. would the formula be =round(average(e6: p6),0
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
Ihave an iphone 8plus should i get another phone like samsung note 9 or s9 ? ?
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
The computers in the sales department did not have enough data storage capacity to contain all the information the department needed to store, and it was taking a long time for team members to access the data they needed. to fix the problem, the technician installed new, larger hard drives on all the computers.
Answers: 1
question
Computers and Technology, 24.06.2019 14:00
In simple terms, how would you define a protocol?
Answers: 2
You know the right answer?
7.4 code practice question 1 edhesive Instructions
Write a program that prompts the user to i...
Questions
question
Mathematics, 03.12.2020 06:50
question
History, 03.12.2020 06:50
question
History, 03.12.2020 06:50
Questions on the website: 13722360