Test 1 CSCI 151 Version 2

Question 1 (25 points):

For the program below, answer the following questions:


X = 4
E = "python"+" "+"yana"
K = 3
M = 100%X**K

Question 2 (75 points):

Gym annual membership price consists of monthly payments and additional annual fee that paid once per year in June. Write a program that reads monthly membership payment and annual fee and finds the average price user pays per month. In addition, the program asks user to enter the number of times user visited gym in January. The program prints the average price per visit in January.

Test your program on the following examples (I rounded answers to display 2 decimal points only but you are not required to do so):