Question: Create a program called AverageAgeYourLastName. In your program, create 4 - 6 integer variables that hold ages of people in your family. Assign those variables
Create a program called AverageAgeYourLastName. In your program, create integer variables that hold ages of people in your family. Assign those variables a value. Perform a basic calculation to find the average age between the variables in case you can't remember how to figure out the average of numbers, here is a referenceLinks to an external site. Double check your calculations to make sure you're using the correct data type ages should be ints and the average age should be a double you'll have to use casting! The Casting Video at minute : reviews this. Do not change the integer datatypes for the ages. Print the results to the console with an explanation of what the user is seeing. For example, the console might say:
Jesse's age is
Danny's age is
Joey's age is
Stephanie's age is
Michelle's age is
The average age is years old.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
