Friends'+Ages

Task
Write a program which asks the user to input the names and ages of 3 friends

Design
What are the inputs, processes and outputs?
 * Inputs:** Friends names, and friends ages
 * Process:** Add the ages together
 * Output:** The total age of all 3 friends

What variables are required? Name1, Name2, Name3 Age1, Age2, Age3 TotalAge

What steps will the program will have to carry out? 1. Get Name1 2. Get Age1 3. Get Name2 4. Get Age2 5. Get Name3 6. Get Age3 7. Set TotalAge to Age1 + Age2 + Age 3 8. Display TotalAge

Copy the inputs, processes, outputs, variables and steps into your jotter

Testing
Test the program 3 times. On the final test run, enter some unusual data. What happens?

Extension
1. Adapt the program so that it also works out the average age of the 3 friends

2. Can you change the line which displays the total ages so that the sentence includes their names e.g. "The total age of David, Alan and Chloe is 32"