Question: Urgent : need to create a java code that has an utput like this ----------------------------------------------------------------------- Gender % Under 30 % 30 or Over % Total

Urgent : need to create a java code that has an utput like this

-----------------------------------------------------------------------

Gender % Under 30 % 30 or Over % Total

--------------------------------------------------------------------------------------------------

Female 44 17 61

Male 23 16 39'

--------------------------------------------------------------------------------------------------

Total 67 33 100

The percentages in the table are rounded to the nearest whole number and are percentages of all those who watch the show regularly. Thus, the sum of percentages in the last column of the table must be 100% (ignoring any rounding error).

Sample output

Please enter the persons age (1..110): 25

Please enter the persons gender (M/F): M

Please enter whether the person watches the show regularly (Y/N): Y

*displays table*

Do you want to enter another persons details (Y/N)? if yes then loops

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!