Question: 7. Write a Java program that asks the user to input the age and gender (M for male, F for female) of 10 rabbits. Your

 7. Write a Java program that asks the user to input

7. Write a Java program that asks the user to input the age and gender (M for male, F for female) of 10 rabbits. Your program should count the number of female and male rabbits and print the results on the screen. by using while loop Sample Input/Output Enter the age and gender of 10 rabbits: 3 M 1 M : 5 M Male Rabbits = 4 Female Rabbits = 6

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!