Fill This Form To Receive Instant Help

#### program should have a loop that calls the isprime function

###### Computer Science

program should have a loop that calls the isprime function. 12 Rock, Paper, Scissors Game + - Design a program that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows: A. When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper. If the number is 3, then the computer has chosen scissors. (Don't display the computer's choice yet.) B. The user enters his or her choice of &quot;rock,&quot; &quot;paper,&quot; or &quot;scissors&quot; at the keyboard. C. The computer's choice is displayed. D. The program should display a message indicating whether the user or the computer was the winner. A winner is selected according to the following rules: . If one player chooses rock and the other player chooses scissors, then rock wins. (The rock smashes the scissors.) . If one player chooses scissors and the other player chooses paper, then scissors wins. (Scissors cut paper.) If one player chooses paper and the other player chooses rock, then paper wins. (Paper wraps rock.) . If both players make the same choice, the game must be played again to determine the winner.

7. Test Average and Grade W Write a program that asks the user to enter five test scores. The program should display a letter grade for each score and the average test score. Design the following functions in the program: &quot; calcAverage -This function should accept five test scores as arguments and return the average of the scores. &quot; determineGrade - This function should accept a test score as an argument and return a letter grade for the score (as a string ), based on the following grading scale: Score Letter Grade 90-100 A 80-89 B 70-79 C 60-69 D Below 60 F Exercise 7

values. The program should display the value that is the greater of the two. 5 Falling Distance When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specific time period: d = 2 9t2 Start Here The variables in the formula are as follows: d is the distance in meters, g is 9.8, and t is the amount of time, in seconds, that the object has been falling. Design a function named fallingDistance that accepts an object's falling time (in seconds) as an argument. The function should return the distance, in meters, that the object has fallen during that time interval. Design a program that calls the function in a loop that passes the values 1 through 10 as arguments and displays the return value.