Arithmetic+Operations+Questions

Answer the following questions:

1. A program has to take as input a person's age, and then produce as output the age that the person will be in 15 years time.

(a) State the inputs, processes and outputs (b) Write an algorithm for this program (c) Write the code for this program

2. UFilm Cinemas need a program to calculate the amount of revenue they make on each film showing. The program should take as input the price of a seat, and the number of seats filled. It should display the total revenue.

(a) State the inputs, processes and outputs (b) Write an algorithm for this program (c) Write the code for this program

3. A program is required to calculate the total points scored by a football team in a World Cup group. The program should ask the user to enter the points scored by the team in game 1, game 2, and game 3 and it should then display the total number of points gained

(a) State the inputs, processes and outputs (b) Write an algorithm for this program (c) Write the code for this program