Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I do not really understand; i just need an idea of what needs to be done. thank you Pick a sport, hobby, business, etc. and

I do not really understand; i just need an idea of what needs to be done. thank you
image text in transcribed
image text in transcribed
Pick a sport, hobby, business, etc. and write one single program that contains all of the following elements: - At least 3 if/else statements - At least one floating point calculation See the example below. Don't just replicate this same idea for some other sport, think of something creative to do with your progran The following example is "doable" with your level of knowledge as of Chapter 20 . To do the example shown, you would need t figure out: 1. How to set variables "total" and "cnt" (count) to zero. (Pleose hote: total and cnt are just arbitrary names; you could call them Bob and Sally if you wanted to. The point is, you will need to keep track of the total points scored and the total number of judges with valid scores.) 2. How to do "judge 1"; - How to get the input. - How to test if the input is too large. - If the input is not too large, update "total" and "cnt". 4. Calculate the answer. m==w=w RESTART: testme.py Rate the kata! Enter a score up to 10 Judge 1: 9 Judge 2: 7 Judge 3: 5 The average score is 7.0 >> ====== RESTART: testme.py ======== Rate the kata! Enter a score up to 10 Judge 1:11 Score out of range! Ignoring it. Judge 2:8 Judge 3:5 The average score is 6.5 >> = Rate the kata! Enter a score up to 10 Judge 1:11 Score out of range! Ignoring it. Judge 2:12 Score out of range! Ignoring it. Judge 3:13 Score out of range! Ignoring it. No valid scores! >>> What to submit: - Your Python program (a.py file)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

More Books

Students also viewed these Databases questions