Question: The program should: Python (no other addon) Display a message stating its goal Ask the users to input how many RATs they completed Check that
The program should:
Python (no other addon)
-
Display a message stating its goal
-
Ask the users to input how many RATs they completed
-
Check that the entry is valid - users cant enter less than 1 or more than 4 number of RATs. If the entry is invalid ask the users to try again until a valid input is received (hint: use WHILE loop)
-
For each RAT, ask the users to enter its score
-
For each score, check that the entry is valid - users cant enter less than 0 or more than 5 for a RAT. If the entry is invalid ask the users to try again until a valid input is received (hint: use WHILE loop)
-
Calculate and output the current RAT average (the sum of the RAT scores divided by the number of RATs taken)
-
Ask the users to input how many WAs they completed
-
Check that the entry is valid - users cant enter more than twice the number of RATs theyve taken, or less than twice the number of RATs theyve taken -1. For example, If a user had taken 1 RAT, the number of WA taken must be between 1 and 2; if a user had taken 3 RATs, the number of WA taken must be between 5 and 6 and so on.
-
If the entry is invalid ask the users to try again until a valid input is received (hint: use WHILE loop)
-
For each WA, ask the users to enter its score
-
For each score, check that the entry is valid - users cant enter less than 0 or more than 10 for each WA score. If the entry is invalid ask the users to try again until a valid input is received (hint: use WHILE loop)
-
Calculate and output the current WA average (the sum of the WA scores divided by the number of WAs taken)
-
Ask the users to input how many questions they got correct on the Python quiz.
-
Check that the entry is valid - users cant enter less than 0 and more than 25 for the total number of correct answers on the quiz. If the entry is invalid ask the users to try again until a valid input is received (hint: use WHILE loop)
-
Calculate and output the current Python quiz score (the number of current answers divided by 25)
-
Calculate and output the current score in the course based on the inputs received (remember: RATs are 0.2 of the final, WAs are 0.7 of the final and the quiz is 0.1 of the final)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
