Hi....I got a simple question here which i dont know how to solve...

**Question**

Type casting is common in writing programs. It converts from one data type to another, for example from integer to double or float. Write a complete C++ program which uses casting, which will ask the quantity of integers the program will receive from the user. The program will then ask the end user to enter series integers. The program will add up all of the integers, find its average and the multiplication of 2 of its average. Below is the sample output of the program. Please ensure your program is error proof (eg. you cannot enter -3 integers).

How many integers do you want to enter? 3

Please enter 3 integers separated by a space: 5 4 9

The sum of the numbers is 18

The average of the numbers is 6.00

The multiplication of 2 of the average is 12.00

How could i make the program that could limit the input integer the user try to enter,and how to make the program calculate the sum and all of that??I've tried to write the code,but i think there must be something that i need to know to write this which i dont know yet..could you tell me what it is??

Thank you...