Problem #1: Write an explanation of this program - be sure to explain each line.
payprog.html
Problem #2: Write the program from the pseudocode in the in the logic assignment and test it to make sure
it is running.
start var1 = 10 var2 = 20 wksum = 0 rslt = 0 do while var2 < 30 wksum = var1 + var2 if wksum > 30 var1 = var1 - 2 var2 = var2 + 1 else var1 = var1 - 1 var2 = var2 + 3 end if end while loop rslt = var1 + var2 display rslt end
Problem #3: I want you to use a loop to take in 4 scores from a game and calculate the sum and the average. You will need to use a loop and you will need to go through the loop 4 times (use a counter like ct). Inside the loop add to the total so you have the total for the four scores. After the loop ends display the total and display the average. You should also check the average and if it is higher than 80 write a message that says good job otherwise write a message that says you need to try harder.
Problem #4: Redo the program above but instead of doing it a number of times, due it until the total is greater than 300. I want you to then print out the total, the average and the message.
Problem #5: Redo the program one more time.This time I want you to have a loop that will take in the score and after each entry prompt the user by asking whether they want to enter another score Y or N. When the user ends the loop, print out the average and the message.