Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The solution on the link below was part 2 the work....please check that out beca

ID: 3758815 • Letter: T

Question

The solution on the link below was part 2 the work....please check that out because my problem requires to modify that solution.

https://www.chegg.com/homework-help/questions-and-answers/need-pseudocode-design-prompt-customer-email-address-titles-three-movies-want-rent-display-q5762739

Iteration Structure

Modify the pseudocode design that you created in – Part 2 to include statements to prompt the user to enter the movie titles one movie at a time. After the customer has finished entering the movie titles, the system will calculate and print the bill.

Hint: use a loop to process the total bill. (**need to do this using loops like dowhile or repeat)

     Add the statement(s) for the following: If customer rents 3 movies, they receive 1 of the three movies for free.

Explanation / Answer

Pseudocode that allows user to enter three movie titles and ratings of three movies.
Then calculate total bill and tax and print the values

PSEUDO-CODE

START PROGRAM
Declare a string variable, email
Declare a integer variable ,age
Declare boolean variable legal =TRUE
Set count=0
Initialize the varibales totalBill=0, tax=0
Declare an string array to store three movies
movies[3]
Declare an string array to ratings of movies
ratings[3]

prompt "Enter email address"
read email
prompt "Enter age of customer"
read age

Repeat DO loop
   prompt "Enter name of the movie"
   read movies[index]
   prompt "Enter movie rating "
   read rating[index]
   count=count+1
WHILE index =1 to 3 AND ratings[index] NOT 'R' AND age greater than 17


Repeat FOR loop index=1 do index<3
   IF age<17 && ratings[index]=='R' THEN
            set legal=FALSE
end loop

IF legal is TRUE  
   IF count==3 THEN
       print "You will receive free Movie .Visit again"  
       //total 2 movies ,subtract one from count each of cost 1.5 dollars
       totalBill=(count-1)*1.5
       print "Total Bill", totalBill
       //sales tax 5 percent ,5/100=0.05
       tax=totalBill *0.05
       print "Tax", tax
   ELSE
       print "You will receive free Movie .Visit again"  
       //if less than 3 movies ,each of cost 1.5 dollars
       totalBill=count*1.5
       print "Total Bill", totalBill
       //sales tax 5 percent ,5/100=0.05
       tax=totalBill *0.05
       print "Tax", tax
   END IF

ELSE
   print "Customer not allowed to rent the movie "
END IF

END PROGRAM