Home / Expert Answers / Computer Science / write-a-c-program-that-asks-the-user-to-input-the-age-and-gender-m-m-for-male-f-f-for-female-o-pa773

(Solved): Write a C++ program that asks the user to input the age and gender (M/m for male, F/f for female) o ...




student submitted image, transcription available below
Write a program that asks the user to input the age and gender for male, for female) of 10 rabbits. Your program should count the number of female and male rabbits and print the results on the screen. Sample input/output. Enter age and gender: Enter age and gender: Enter age and gender: Enter age and gender:5 F Enter age and gender: Enter age and gender: Enter age and gender: Enter age and gender: Enter age and gender: Enter age and gender:3 F Number of male Number of female


We have an Answer from Expert

View Expert Answer

Expert Answer



We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe