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
Lemur [1.5K]
3 years ago
8

Need Help! Asap 7.5 code practice (Edhesive)

Computers and Technology
2 answers:
hram777 [196]3 years ago
7 0

Answer:

def GPAcalc(g, w):

   if g == "a" or g == "A":

       return 4 + w

   elif g == "B" or g == "b":

       return 3 + w

   elif g == "C" or g == "c":

       return 2 + w

   elif g == "D" or g == "d":

       return 1 + w

   elif g == "F" or g == "f":

       return 0 + w

   else:

       return "Invalid"

       

def GPAAV(S, C):

   return S/C

   

Sum = 0

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

for i in range(0, Classes):

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

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

   gpa = GPAcalc(Grade, Weight)

   print("Your GPA score is: " + str(gpa))

   Sum = Sum + gpa

print("Your weighted GPA is a " + str(GPAAV(Sum, Classes)) + ".")

Explanation:

This one should work, let me know in the comments.

erma4kov [3.2K]3 years ago
5 0

Answer:

Make main function

def main():

Make some constants for the grades

A = 5.0 or 4.0

B = 4.0 or 3.0

C = 3.0 or 2.0

D = 2.0 or 1.0

F = 1.0 or 0.0

In the main function call the function you made and make sure to use those constants for help

also don't forget to call your main function or nothing will work

Explanation:

Making the main function is good programming practice for your future

Making the constants is also helpful to your programming.

Now how it works you call the function you wrote to calculate the grade.

I don't know how helpful this was this is one of my first answers. I am `also answering how I would do it

You might be interested in
I am buying a BluRay drive access time is 180ms and the other is 210ms(BD-ROM) whats does access time mean
kkurt [141]
It means how fast it can read the disk so if you want faster data transfer you would go for blurry if you really don't care go for the other one
6 0
3 years ago
What did creator Markus “Notch" Persson initially call his game
Veronika [31]

Answer:

Cave Game

Explanation:

Its initial Name was to be game cave in the developer phase and later changed to minecraft order of the stone and later changed to minecraft

7 0
3 years ago
Read 2 more answers
Site three uses of powerpoint when it is used for educational purposes.​
CaHeK987 [17]
1. It can be used to create a slideshow for that class.
2. It can used as a place to keep and check grades.
3. It can be used for a place to keep all the students names and where they sit etc.
5 0
3 years ago
The ________ is a system of interlinked documents on the Internet, or a graphical user interface to the Internet that provides u
RSB [31]

Answer:

World Wide Web (WWW)

Explanation:

Popularly referred to as the Web is an information system that comprises of many interconnected web resources and documents. These documents and web resources possess a certain URL (Uniform Resources Locators) such as https://www.brainly.com/ which makes them accessible over the internet.

The <em>HTTP or Hypertext Transfer Protocol</em> is a channel for transferring the resources of the World wide web among users.

In 1989, the World Wide Web was invented by Tim Berners-Lee. He developed the first web browser in 1990.

The World Wide Web has played a fundamental role in the advancement of the information age as it is greatly used by different people around the world to communicate efficiently.

6 0
3 years ago
Most internet connections use blank transmission
LiRa [457]
Wireless connection I hope I helped!!!
7 0
4 years ago
Other questions:
  • What is Gamekit Loa3's all questsions
    14·1 answer
  • There are main type of memory
    7·1 answer
  • Write short notes about monitor printer and speaker​
    14·2 answers
  • 1. What are the advantages and disadvantages of the digital darkroom as compared to a regular darkroom?
    15·1 answer
  • What is a Web server application?
    7·1 answer
  • It is a type of web page that allows you to share your ideas experiences and beliefs
    9·1 answer
  • Write a pseudocode to add the first 100 even numbers.
    11·1 answer
  • What would be printed to the screen when the following program is run?
    11·1 answer
  • Creating a website is called web ________.
    11·1 answer
  • us refe rence: so 1 ac 2 2. describe the applications for merged documents in terms of the following benefits 2. describe the ap
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!