Computers and Technology
Computers and Technology, 26.02.2021 06:20, AM28

7.4 Code Practice: Question 2 I need help on this question and my code to get as 100% on it:

def GPAcalc(grade, weighted):
if grade. lower() == "a":
return 4
elif grade. lower() == "b":
return 3
elif grade. lower() == "c":
return 2
elif grade. lower() == "d":
return 1
elif grade. lower() == "f":
return 0
else:
return "Invalid"

print(GPAcalc(input("Enter your letter grade: "), int(input("Is it weigthed? (1= yes, 0= no)"

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 20:00, darlene93
An excel which cell contains =b2 is copied to row below, the same column. what will be the new cell's content
Answers: 2
image
Computers and Technology, 22.06.2019 02:00, aredwolf2017
When jen is planning to upgrade to a monitor with a better resolution, what should she be looking for in the new monitor?
Answers: 1
image
Computers and Technology, 22.06.2019 19:40, rakanmadi87
Solve the following javafx application: write a javafx application that analyzes a word. the user would type the word in a text field, and the application provides three buttons for the following: - one button, when clicked, displays the length of the word.- another button, when clicked, displays the number of vowels in the word.- another button, when clicked, displays the number of uppercase letters in the word(use the gridpane or hbox and vbox to organize the gui controls).
Answers: 1
image
Computers and Technology, 22.06.2019 23:30, Molly05
In my email i got a message it says a quick message and in message details on who its from its says nicole and under nicole is 50e0bf08e5b671@ualwgypg91wa5wl. uzo9kbud3qjwddygd5.vng -
Answers: 1
Do you know the correct answer?
7.4 Code Practice: Question 2 I need help on this question and my code to get as 100% on it:
...

Questions in other subjects:

Konu
English, 18.03.2020 17:54
Konu
Mathematics, 18.03.2020 17:54