Write the sentence shown in the video in the space below. I…
Write the sentence shown in the video in the space below. It will be presented to you twice. https://www.youtube.com/embed/j0yemEA5irk?modestbranding=1&fs=1&rel=0&menu=disable&enablejsapi=1&playerapiid=ytEmbed7cc8a695e283423db7515692147e7d75
Read Details# 1. New Grade Average# # A student has completed 4 quizzes…
# 1. New Grade Average# # A student has completed 4 quizzes with scores of 75, 88, 90, and 82. # The professor allows them to drop their lowest score and replace it with a new score.# # Write a Python program that:# # Assign each score to a variable and find the sum.# Ask the student to enter a new score.# Subtract the lowest score from the original 4 score sum. Hint: Use the min() function.# Add the new score to the sum.# Calculate and display the new average score.# # Sample Run:# # Please enter a new score: 95 # # Your new gradepoint average is 88.75 ##2. String Length and Character Selection# # Write a Python program that:# # Prompts the user to enter a sentence.# Calculates and displays the length of the sentence. Hint: Use the len() function.# Displays the first 3 letters of the sentence and the last 3 letters of the sentence.# # Sample Run:# # Please enter a sentence: Python is fun! # # The length of the sentence is 14 # The first 3 letters are: Pyt # The last 3 letters are: un! # #3. Total Item Cost with Discounts# # A bookstore offers a 10% discount if a customer buys 4 books.# Write a Python program that:# # Prompts the user to enter the price of 4 books (one at a time).# Calculates the total cost of the books.# Applies a 10% discount to the total cost.# Displays the total amount owed.# # Sample Run:# # Enter the price of the first book: 12.99 # Enter the price of the second book: 15.50 # Enter the price of the third book: 10.00 # Enter the price of the fourth book: 18.75 # You bought 4 books. # The total amount owed is $51.38
Read Details