Use Raptor to solve the following problem helping a professor keep track of the books she collects every day over several days. • Ask the user for a password. Do not allow the user to enter an incorrect password. Assume the correct password is raptor (al lower case). All you need here is just one simple loop to validate the password. • Ask the professor for the number of days she wishes to collect book. Make sure that the number of days is 1 or more. All you need here is just one simple loop to validate the number of days. • For each day, ask for the number of books she collected. Make sure the number of books is 1 or more. All you need here is just one simple loop to validate the number of books. • Calculate and the total number of books • Calculate the average number of books by dividing the total number of books by number of days • Display the message “REPROT FOR THE PROFESSOR” • Display the total number of books • Display the average number of books
Use Raptor to solve the following problem helping a professor keep track of the books
she collects every day over several days.
• Ask the user for a password. Do not allow the user to enter an incorrect password.
Assume the correct password is raptor (al lower case). All you need here is just
one simple loop to validate the password.
• Ask the professor for the number of days she wishes to collect book. Make sure
that the number of days is 1 or more. All you need here is just one simple loop to
validate the number of days.
• For each day, ask for the number of books she collected. Make sure the number of
books is 1 or more. All you need here is just one simple loop to validate the
number of books.
• Calculate and the total number of books
• Calculate the average number of books by dividing the total number of books by
number of days
• Display the message “REPROT FOR THE PROFESSOR”
• Display the total number of books
• Display the average number of books
Step by step
Solved in 3 steps