GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

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

The relationship between air pressure and elevation is such…

The relationship between air pressure and elevation is such that high elevation locations will have a much lower air pressure compared to low elevation locations.

Read Details

In coastal locations, there will usually be offshore winds d…

In coastal locations, there will usually be offshore winds during the day because the air over the water will heat up faster than the air over land.

Read Details

Posts pagination

Newer posts 1 … 37,326 37,327 37,328 37,329 37,330 … 86,585 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top