Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions