Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 3 pounds of food the price is $11.99; if the customer eats up to and including 3.9 pounds of food the price will be $16.99. If the customer eats up to and including 4.9 pounds of food the price will be$21.75. If the customer eats more than that the price will be $27.99.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 7.25% sales tax, then output the customername, pounds eaten, subtotal, tax, and total amount due.Example output:Ms. CreosoteCustomer name:lo3.1Pounds eaten:$ $16.99Subtotal:$1.19Tax:$18.18

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

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions