Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in python Coding Exercise: Tasty Typecasting Write a program to help you feed your friends at a party by doing some math about square pizzas

in python

Coding Exercise: Tasty Typecasting

Write a program to help you feed your friends at a party by doing some math about square pizzas. Assume the grader defines a string inputStr for you, which is a decimal string meaning the side length L of the pizza in cm. The area of the pizza should be computed using the formula A = L*L. Then, assuming that each person needs to eat 100 cm2 of pizza, compute the number of people it can feed, rounded down to the nearest integer. Hint

Example: if inputStr is "17.5", the area will be 306.25 cm2, so 3 is the correct output.

Coding Exercise: Gravity

A parcel is thrown downward at a speed of v m/s from an airplane at altitude 11000 m. As it falls, its distance from the ground is given by the formula -4.9t2 - vt + 11000, where t is the time in seconds since it was dropped. Write a program to output the time it will take to reach the ground. The input to your program is the positive floating-point number v. The required time is given by the quadratic formula

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

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions

Question

9. System creates a large, diverse talent pool.

Answered: 1 week ago