Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer questions 14, and 16. In Exercises 13 and 14 write a simpler and clearer code that performs the same task as the given code.

Answer questions 14, and 16.

image text in transcribed

In Exercises 13 and 14 write a simpler and clearer code that performs the same task as the given code. 13. name = input("Enter a name: ") print (name) name = input("Enter a name: ") print (name) name = input ("Enter a name: ") print(name) 14. L = [2, 4, 6, 8] total = 0 while L != [] total L[0] LL[1:] print (total) 15. Temperature Conversions Write a program that displays a Celsius-to-Fahrenheit conversion table. Entries in the table should range from 10 to 30 degrees Celsius in increments of 5 degrees. See Fig. 3.250. Note: The formula f=(c) + 32 converts Celsius degrees to Fahrenheit degrees. Celsius Fahrenheit 10 50 20 3086 FIGURE 3.25 Outcome of Exercise 15. Enter coefficient of restitution: 7 Enter initial height in meters: & Number of bounces: 13 Meters traveled: 44.82 FIGURE 3.26 Possible outcome of Exercise 16. 16. Bouncing Ball The coefficient of restitution of a ball, a number between 0 and 1, specifies how much energy is conserved when the ball hits a rigid surface. A coefficient of 9, for instance, means a bouncing ball will rise to 90% of its previous height after each bounce. Write a program to input a coefficient of restitution and an initial height in meters, and report how many times a ball bounces when dropped from its initial height before it rises to a height of less than 10 centimeters. Also report the total distance traveled by the ball before this point. See Fig. 3.26. The coefficients of restitution of a tennis ball, basketball, super ball, and softball are 7, 75, 9, and 3, respectively

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

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions

Question

1. Signs and symbols of the map Briefly by box ?

Answered: 1 week ago

Question

Types of physical Maps?

Answered: 1 week ago

Question

Explain Intermediate term financing in detail.

Answered: 1 week ago

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago