You are on page 1of 2

COME 107 Week 5

EX1: Develop a class average program that processes grades for an arbitrary (chancing) number of
students each time it is run. The number of students will not be asked from the user however if
the user presses -1 the program ends and gives the average of the grades.

EX2: Find the factorial of a given number.

EX3: Calculate the expression below for given number i and assume that x1 = 0

EX4: Ask a positive number from the user and reverse it. For example, if the given number
is 1293, your program should print 3921.

You might also like