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
Get step-by-step solutions from verified subject matter experts
