Question: 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  help with explanations, please? code in python without using loops 3.
Calculate a tip on a restaurant bill. Read in a dollar amount

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!