Answer:Coded down below
Step-by-step explanation:
Program:
# Initialize variables
total_score = 0
earned_status = ""
# Ask user for score for each day of the week
for day in ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]:
score = int(input(f"Enter score for {day}: "))
total_score += score
# Determine earned status based on total score
if total_score >= 1000:
earned_status = "Supreme Warrior"
elif total_score >= 500:
earned_status = "Master Warrior"
elif total_score >= 100:
earned_status = "Novice Warrior"
else:
earned_status = "No status earned"
# Display earned status
print(f"Your total score is {total_score}. You have earned the status of {earned_status}.")
In this program, we first initialize two variables total_score and earned_status to keep track of the user's total score and earned status, respectively.
Next, we use a for loop to ask the user to enter their score for each day of the week. The loop iterates over a list of days and prompts the user to enter their score for each day. We convert the input to an integer using the int() function and add it to the total_score variable.
After the loop, we use a series of if statements to determine the earned status based on the total score. If the total score is greater than or equal to 1000, the user has earned the status of "Supreme Warrior". If the total score is between 500 and 999, the user has earned the status of "Master Warrior". If the total score is between 100 and 499, the user has earned the status of "Novice Warrior". Otherwise, if the total score is less than 100, the user has not earned any status.
Finally, we display the user's total score and earned status using the print() function.