Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
1. Design a program for the Hollywood Movie Rating Guide, in which users continuously enter a value from 0 to 4 that indicates the number of stars
1. Design a program for the Hollywood Movie Rating Guide, in which users continuously enter a value from 0 to 4 that indicates the number of stars they are awarding to the Guide's featured movie of the week. The program executes continuously until a user enters a negative number to quit. If a user enters a star value that does not fall in the correct range, reprompt the user continuously until a correct value is entered. At the end of the program, display the average star rating for the movie. (Note, this problem requires loops, but not arrays)
numeric [] = {,,,,} and the following variable declaration: numeric j = what is the value of: a. [] b. [] c. [] d. [j] e. [j+] f. [[j]] Given the following declaration: numeric things[] write pseudocode to all elements of things to Given the following declaration: numeric stuff[] = {, , , , , , , , , } write pseudocode to display every other element of stuff (starting with )."""
This does need to be in python so maybe I'm not writing it all correctly. Any help will be greatly appreciated.
start
#Declarations
numOfStars = 0
count = 0
total = 0
avg = 0
string PROMPT = "Enter the star rating or a negative number to quit"
housekeeping()
while numOfStars <= 0
detailLoop()
endwhile
stop
housekeeping()
Output PROMPT
input numOfStars
return
detailLoop()
while numOfStars > 4 or sumOfStars < 0
output "Please enter a value from 0 to 4"
input numOfStars
endwhile
count = count + 1
total = total + numOfStars
output PROMPT
input numOfStars
return
finishUp()
avg = total / count
Output "The average star rating is: ", avg
Output "End of program"
return