Question: program on eclipse java that is going to carry out a simple analysis of a dataset entered by the user. It should first ask the
program on eclipse java that is going to carry out a simple analysis of a dataset entered by the user. It should first ask the user to enter the data, which consists of the personal details (name, age and gender) of a group of people. This data should be stored in arrays. Your code should then calculate the gender ratio, the mean and standard deviation of the groups age, and indicate the name and age of the oldest child. The name, age and gender should be sequentially read in from the user for each member of a group whose size is specified by the user. This data should be stored in three separate arrays: one for names, one for ages and one for genders, i.e. the first entry of the names array should be the name of the first person, the first entry of the ages array should be the age of the first person, and so on. You should do some input validation. Specifically, when the user enters a persons gender, you should include a loop that checks whether the input is valid (e.g. either M or F), and keeps asking the user to enter a new value until they enter one that is valid.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
