Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help with explanations, please? code in python without using loops 3. Calculate a tip on a restaurant bill. Read in a dollar amount and gratuity

help with explanations, please? code in python without using loops image text in transcribed
image text in transcribed
3. Calculate a tip on a restaurant bill. Read in a dollar amount and gratuity rate from the console (separated by a comma). Compute the gratuity and the total owed (bill + gratuity) and display the result. Round your answers to 2 decimal places. Here is a sample run: Enter the bill and gratuity rate: 15.69, 15 The gratuity is $2.35 and the total is $18.04 6. Calculate BMI. The body mass index (BMI) is used by health professionals to categorize people as underweight, normal, or overweight. It is computed by taking the individual's weight (mass) in kilograms and dividing it by the square of their height in meters. Take in a user's weight in pounds and height in feet and inches, then print out their BMI. Round your answer to 2 decimal places. Formulas for conversion are: 1 pound = 0.454 kg 1 foot = 0.3048 m Here is a sample run: Enter your weight in pounds: 160 Enter your height (feet, inches): 5, 9 Your BMI is 23.65

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

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions

Question

How would you rate Hsiehs leadership using the Leadership Grid?

Answered: 1 week ago

Question

What is Ramayana, who is its creator, why was Ramayana written?

Answered: 1 week ago

Question

To solve by the graphical methods 2x +3y = 9 9x - 8y = 10

Answered: 1 week ago