GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

In California, a person loses their right to vote while in p…

In California, a person loses their right to vote while in prison, but gets it back automatically when they are released from prison.

Read Details

Look at the code to the left. What will happen if the user e…

Look at the code to the left. What will happen if the user enters 200 after the program runs?  

Read Details

Look at the code to the left. What all does the user have to…

Look at the code to the left. What all does the user have to input to be able to enter 3 scores (75, 350, 40), see the corresponding feedback, then finally see “Thanks for playing!”

Read Details

Naira wants to calculate the cost of two items with a discou…

Naira wants to calculate the cost of two items with a discount applied. The total cost is the sum of the two prices minus the discount amount. Below are the variables she used. What is the correct line to calculate the total cost? price1 price2 discounttotal_cost

Read Details

Look at the code to the left. What structure(s) and/or metho…

Look at the code to the left. What structure(s) and/or methods are used? **Select all that apply.**

Read Details

Chinook winds will consist of cool, dry winds flowing down t…

Chinook winds will consist of cool, dry winds flowing down the windward slope of a mountain.

Read Details

The term ‘monsoon’ simply refers to a location that receives…

The term ‘monsoon’ simply refers to a location that receives a significant amount of precipitation.

Read Details

Which of the following descriptions is best associated with…

Which of the following descriptions is best associated with an anticyclone?

Read Details

Look at the code below. What is the output? i = 0 while i

Look at the code below. What is the output? i = 0 while i

Read Details

The code below takes user input and calculates average grade…

The code below takes user input and calculates average grade and letter grade. It then outputs a summary. Change the calculate average and get letter grade sections to functions. Do not use the global command. (Hint: think back to what we discussed about using return and assigning variables. You can look back at previous programs. )   ### Students enter grades, average is calculated, letter grade determined ### Program outputs a summary of the information. ### Gather student info name = input(“Enter the student’s name: “) grade1 = float(input(“Enter grade 1: “)) grade2 = float(input(“Enter grade 2: “)) grade3 = float(input(“Enter grade 3: “)) ### Calulate average average = (grade1 + grade2 + grade3) / 3 ### Determine the letter grade if average >= 90:     letter_grade = “A” elif average >= 80:     letter_grade = “B” elif average >= 70:     letter_grade = “C” elif average >= 60:     letter_grade = “D” else:     letter_grade = “F” ### Display the results print(“\nStudent Report”) print(f”Name: {name}”) print(f”Average Grade: {average:.2f}”) print(f”Letter Grade: {letter_grade}”)

Read Details

Posts pagination

Newer posts 1 … 37,429 37,430 37,431 37,432 37,433 … 86,688 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top