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.
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. Inputs 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. Text in red is that which is entered by the user. Examples of output Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. RESTART: C:/Temp/a04.py: 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
3.45 Rating (148 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
