1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Dmitrij [34]
3 years ago
15

7.5 Code practice Plz answer ASAP

Computers and Technology
1 answer:
stiv31 [10]3 years ago
8 0

def calculate_GPA(grade, weight):

   grades = {"A": 4, "B": 3, "C": 2, "D": 1, "F": 0}

   if weight == 0:

       return grades[grade]

   else:

       return grades[grade] + 1

classes = int(input("How many Classes are you taking? "))

total = 0

for x in range(classes):

   letter = input("Enter your Letter Grade: ")

   user_weight = int(input("Is it weighted? (1 = yes) "))

   grade = calculate_GPA(letter, user_weight)

   total += grade

   print("Your GPA score is: ", grade)

print("Your weighted GPA is a",(total/classes))

I wrote my code in python 3.8. I was able to replicate the output in your picture exactly. If you need me to make any changes, I'll do my best.

You might be interested in
Your company has just purchased an iSCSI storage array. You have installed a new iSCSI device onto your Ethernet network and you
Mars2501 [29]

Answer:

D) ISCSI Initiator

Explanation:

5 0
4 years ago
The icons to insert pictures and clip art in the PowerPoint application are located in the _____ grouping on the Insert tab.
saul85 [17]
The icons to insert pictures and clip art are located in the images grouping on the insert tab.
3 0
4 years ago
After how many months should a tractor's steering fluid be changed?
matrenka [14]

Answer:

after every four months

Explanation:

3 0
3 years ago
4. What are the traits of a good follower?​
soldi70 [24.7K]

Answer:

  1. Judgment. Followers must take direction, but not blindly.
  2. Work ethic. Good followers are good workers.
  3. Competence. In order to follow, followers must be competent.
  4. Honesty. Followers have a responsibility to be honest.
  5. Courage.
  6. Discretion.
  7. Loyalty.
  8. Ego management.
8 0
3 years ago
The use of present and past tenses​
brilliants [131]

Answer:

The past is used to describe things that have already happened (e.g., earlier in the day, yesterday, last week, three years ago). The present tense is used to describe things that are happening right now, or things that are continuous.

Explanation:

7 0
3 years ago
Other questions:
  • Anyone help me with number 41.
    12·1 answer
  • What is the term for a server at the highest level of the Domain Name System (DNS)?
    15·1 answer
  • Help me out with this .....
    10·1 answer
  • How many feet are in 69 inches
    15·1 answer
  • Write code to check that HairEyeColor is an array. e) Write code to determine: (i) the total number of respondents in the survey
    6·1 answer
  • Which key(s) will launch the Spelling Checker dialog box? F8 F7 Ctrl+H F2
    11·2 answers
  • Explain briely what this statement mean.<br>"A byte is equivalent to a character"<br>​
    15·1 answer
  • Which of the following is the best description of an ip address?
    8·1 answer
  • A relational database can best be described as a collection of related _____ designed to minimize redundant data.
    5·1 answer
  • A group of small local businesses have joined together to share access to a cloud-based payment system. Which type of cloud is m
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!