Problem Description: My local school district requires an application to compare the average score of boys...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Related Book For
Introduction to Probability and Statistics
ISBN: 978-1133103752
14th edition
Authors: William Mendenhall, Robert Beaver, Barbara Beaver
Posted Date:
Students also viewed these programming questions
-
The Transportation Security Administration would like to compare the average amount of time it takes passengers to pass through airport security at Philadelphia versus Orlando during peak times. A...
-
An economist wants to compare the average monthly number of rotary oil rigs running in three states: California, Utah, and Alaska. In order to account for month-to-month variation, three months were...
-
A study is being conducted to compare the average training time for two groups of airport security personnel: those who work for the federal government and those employed by private security...
-
Canton Company makes two types of cell phones. Handy is a thin, pocket-size cell phone that is easy to carry around. Action is a palm-size phone convenient to hold while the user is talking. During...
-
Fiscal policy can affect aggregate demand. 1. Explain how changes in government purchases and taxes affect aggregate demand. 2. Describe the Keynesian prescription to cure a recessionary gap. 3....
-
Two polarizers are oriented at 40o to each other and plane-polarized light is incident on them. If only 15% of the light gets through both of them, what was the initial polarization direction of the...
-
What are the different types of consulting and litigation support activities for fraud and forensic accounting professionals?
-
Use the accompanying graph to answer these questions.a. Suppose demand is D and supply is S0. If a price ceiling of $6 is imposed, what are the resulting shortage and full economic price? b. Suppose...
-
3. The distance between carbon atoms in diamond is 0.154 nm. What is this distance in meters? Have Factor 0.154 nm 1 x 10^9nm Want 1.54 x 10^-10m 4. Calculate the number of grams in 32.0 lbs....
-
A company wants to build a website where user can register themselves and buy/renew health insurance policies. Also, they can process claims from a separate section on the website. Once logged in,...
-
What is the pH at the equivalence point in the titration of a 17.4 mL sample of a 0.329 M aqueous hydrofluoric acid solution with a 0.317 M aqueous barium hydroxide solution? pH = please help me get...
-
On May 1 of the current year, Grace, Laura, and Ann opened a business called Three Gals. Prior to opening Three Gals, they incurred the following costs: Purchase of fixtures $ 480 Accounting fees...
-
East Sand Company had the following amounts for 2021 and 2022. What was East Sand's days in inventory for 2021? The illustration is a table with four elements related to inventory and their related...
-
What type of technique is being used to gather audit evidence? For a manufacturing business, the auditor obtains the production records for goods sold and calculates the total sales using average...
-
a. In all of the experiments discussed, from Galileo to Michelson, it was necessary to measure two very important quantities to determine the speed of light. What were these two quantities? b. Roemer...
-
How did California state and county governments provide assistance to the Central Pacific? What does government agree to provide the Central Pacific and Union Pacific for every mile of track built?
-
Consider the following pulley setup. Assuming that the belt does not slip on the surface of each pulley, if the small pulley rotates with an angular velocity wo, what is the angular velocity of the...
-
What is a lobbyist in US? How did this term emerge?
-
Refer to Exercise 10.83. Suppose you wish to estimate the difference in mean times to absorption correct to within 1 minute with probability approximately equal to .95. a. Approximately how large a...
-
Last year's records of auto accidents occurring on a given section of highway were classified according to whether the resulting damage was $1000 or more and to whether a physical injury resulted...
-
The meat department of a local supermarket chain packages ground beef using meat trays of two sizes: one designed to hold approximately 1 pound of meat, and one that holds approximately 3 pounds. A...
-
What are Incoterms? Give examples.
-
Distinguish between public international law and private international law.
-
What is meant by the proper law of the contract?
Study smarter with the SolutionInn App