Question: Problem Description: My local school district requires an application to compare the average score of boys in a certain test with that of girls. Write

Problem Description:

My local school district requires an application to compare the average score of boys in a certain test with that of girls. Write an interactive application in Python to display a simple menu to the user. Have them pick a choice for boy (b), girl (g), or quit (q) to quit the program. The program should keep looping until the user chooses to quit. This application will use loops and conditions to accomplish the task.

Input:

Your Python program should accept data input by the user, as indicated in the sample dialog below. Your program should allow an arbitrary number of boy scores and girl scores, terminated when the user inputs a q.

Output:

Your program should output the average boy score and average girl score. Please see the dialog sample below for specifics. Make sure the text that is entered by the user is outputed in red text.

Boy (b), Girl (g) or Quit (q): b

Boy score: 10

Boy (b), Girl (g) or Quit (q): g

Girl score: 12

Boy (b), Girl (g) or Quit (q): b

Boy score: 14

Boy (b), Girl (g) or Quit (q): g

Girl score: 14

Boy (b), Girl (g) or Quit (q): g

Girl score: 16

Boy (b), Girl (g) or Quit (q): q

Boy Average is: 12.0

Girl Average is: 14.0

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!