I REALLY Need help on this.

I REALLY Need Help On This.

Answers

Answer 1
Make a deposit talk to A representative transfer money and Check account balance

Related Questions

7.5 Code practice Plz answer ASAP

Answers

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.

The function is an illustration of for loops

For loops are used to perform repetitive operations; just like the while loop

The program in Python, where comments are used to explain each line is as follows:

#This defines the studentGPA function

def studentGPA(grade, weight):

   #This initializes a dictionary for all grades

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

   #This sets the return grade to 0

   retValue = 0

   #If the grade is valid

   if grade in allGrade:

       #If the weight is 0

       if weight == 0:

           #Then score is not graded

           retValue = allGrade[grade]

       #If otherwise

       else:

           #This adds 1 to the return grade

           retValue = allGrade[grade]+1

   #This returns the grade point

   return retValue

#The main begins here    

#This gets the number of classes

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

#This initializes the total grade to 0

total = 0

#This following is repeated for each class

for x in range(klass):

   #This gets input for the letter grade

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

   #This gets input for the weight

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

   #This gets the corresponding grade

   grade = studentGPA(letterGrade, weight)

   #This prints the grade point

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

   #This calculates the total grade

   total += grade

#This calculates the GPA

GPA = total/klass

#This prints the GPA

print("Your weighted GPA is a",GPA)

Read more about for loop at:

https://brainly.com/question/12736327

pleasee help meeeeeeeeee I’m stuckk!!!!

Answers

Answer: Charles Babbage

Answer:

a

Explanation:

trust

Other Questions
What is the area of the circle? Round your answer to the nearest tenth of a square inch. What change to the following molecule's structure would result in a saturated fat? Which expressions are in their simplest form? Check all that apply. YALL PLS HELP ME! CAN YOU GUYS CHECK MY ANSWERS? jenny goes to the shop she buys . three cups for 1.24 each.three saucers for 95p each. a teapot for 6.18jenny has 20 to spend she also wants to but some plates, which are 1.57 each.what is the greatest number of plates jenny she can buy Helppppp this is really hard What is everything in our physical environment made of? *A matterB solidsC gases Analyze the political cartoon and explain what is going on in the image. itemise the importance of marketing in an economy Which was an argument used by supporters of the U.S. Constitution in favor of its ratification.?A) A woman's right to vote will be protected by the highest law of the land.B) There is a system of checks and balances to prevent abuse of power.C)Appointing a president-for-life will make the United States stronger.D) A federal government with two separate branches makes the most sense. HELP!!! 2Mg+O2->2MgO What are the products of this reaction??WILL GIVE BRAINLEST I need help with this question pls answer. Estimate the product/quotation of the problem below 72487 I need help on this with solutions please Explain how the historical context affected a development taking place in the document What is the simplified form of (3\4)exponet3 ? Enter your answer as a fraction by filling in the boxes. please answer this!! What is a flash point? While on vacation in Bloomington, Ashley went out for a dinner that cost $20. If sales tax in Bloomington is 10% and Ashley left a 15% tip on $20, what was the total cost of her meal?