Phython
MetroPCS 8:27 PM 18. Prime Number List This exercise assumes that you have already written the is prime function in Programming Exercise 17. Write another program that displays all of the prime numbers from 1 to 100. The program should have a loop that calls the is_prime function 19. Future Value Suppose you have a certain amount of money in a savings account that earns compound monthly interest, and you want to calculate the amount that you will have after a specific number of moeths. The formula is as follows The terms in the formula are o Fis the future value of the account after the specified time period 356 357 s the presem value of the account o is the monthly interest rate o r is the number of months. Write a program that prompts the user to enter the account's present value, monthly interest rate, and the number of months that the monecy will be left in the account. The program should pass these values to a function that returns the future value of the account, after the specified number of months. The program should display the account's future value. 20. Random Number Guessing Game Write a program that generates a random number in the range of I through 100, and asks the user to guess what the number is. If the user's guess is higher than the random number, the program should display Too high, try again."If the user's guess is lower than the random number, the program should display Too low, try again." If the user guesses the number, the application should congratulate the user and generate a new random number so the game can Optional Enhancement: Enhance the game so it keeps coant of the number of guesses that the Mser makes. Whew the user correcnly gwesses the random nwber, the program should display the number of guesses. 21. Rock, Paper, Scissors Game Write a program that lets th The program should work Note Text Freehand I. When the program be number is 1, then the computer has chosen rock If the er 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 chooce yet.) 2. The user enters his or her choice of rock. "paper,"or "seissors" at the keyboard 3. The computer's choice is displayed A winner is selected acoording to the following rules If one player chooses rock and the other player chooses scissors, then roc (Rock smashes scissors) e If one plaver chooses scissoes and the other plaver chooses paper, then seissors wins