Question: You've been asked to write a pricing app for a friend who opened a new eating establishment. At this place customers are charged by the
You've been asked to write a pricing app for a friend who opened a new eating establishment. At this place customers are charged by the weight of the food eaten. Your program needs to determine the price based on the weight ofthe food eaten, using the following pricing model:If the customer eats less than pounds of food the price is $; if the customer eats up to and including pounds of food the price will be $ If the customer eats up to and including pounds of food the price will be$ If the customer eats more than that the price will be $Your general logic should be something like this: Prompt the user for customer name and pounds of food eaten by that customer. Calculate the subtotal based on that weight, then add sales tax, then output the customername, pounds eaten, subtotal, tax, and total amount due.Example output:Ms CreosoteCustomer name:loPounds eaten:$ $Subtotal:$Tax:$
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
