Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Create a flowchart, a Python program, and output for the following. Program requirements: Your program should ask the user to enter the racer's finish

image text in transcribedimage text in transcribed

2. Create a flowchart, a Python program, and output for the following. Program requirements: Your program should ask the user to enter the racer's finish position. If the position is greater than 0 and less than six, calculate the award as 1000 divided by the finish position and output a message that they will receive an award and the amount of the award. Format the output so that it has a $ sign and 2 decimal places. If the finish position is not less than six or it is not greater than zero, output a message indicating they will not receive an award. Run the program twice. First time, to test your program when you enter a finish position that is less than six and greater than zero. Second time, to test your program when you enter a finish position that is not less than six. 3. For the following problem you will write Python code in the IDLE screen and submit a screen shot of your code and output. Assign: x 3,y-7, z--1.5, address- "1234 Mason Drive", city - "Fairfax" Using the variable names, rather than the values (e.g. use x +y, not 3 + 7; use address not "1234 Mason Drive"; etc.), output the following in the IDLE window: a. the full address (consisting of the address, a comma, and the city) b. x+y/z. (Show that there are 2 options depending on where you place the parentheses and explain why.) c. z raised to the x power (use exponentiation operator) d. the integer quotient after y is divided by x e. y times x plus z. f. x+ address (Explain the error you receive)

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

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

7. Identify four antecedents that influence intercultural contact.

Answered: 1 week ago

Question

5. Describe the relationship between history and identity.

Answered: 1 week ago