Question: 2. Using Repetition Logic with Counters and Accumulators An instructor wants a program that will compute the percentage of males and females in his class

 2. Using Repetition Logic with Counters and Accumulators An instructor wants

2. Using Repetition Logic with Counters and Accumulators An instructor wants a program that will compute the percentage of males and females in his class as well as the average age of the students in the class. Input to the program will be a gender code which will be 'l' for male students or '2' for female students and the age of each student. After collecting all of the data, the output should include the following: number of males number of females average age of the class percentage of males percentage of females Determine the algorithm and draw the flowchart for a program that will do this

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!