Question
Must be done using java mr.Ballet does a yearly survey of his student's age 1. For the current year, create-a program called ageSurvey that asks
Must be done using java
mr.Ballet does a yearly survey of his student's age
1.
For the current year, create-a program called
ageSurvey
that asks the user for 12
ages(int) and stores them in an array.
2.
Mr.Ballet would like you to use the data from
part 1
, above, and combine it with last year's data for
2019 into a third array called AgeData using arrayCopy. Last year's data is:
ageData= {18, 29, 61, 21, 24, 18, 19, 31, 36, 19, 23, 23, 18, 20, 19}
3.
Print the full array.
4.
Find the person with the youngest age and print the age and their index in the array. If more than 1 person are that same age, print all of their indexes.
thank you
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started