Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Page 1 > of Due: Monday, February 18th Main topics: User input Basic String Methods Boolean Expressions if & if-else Statements Program Specification: A online

image text in transcribed
Page 1 > of Due: Monday, February 18th Main topics: User input Basic String Methods Boolean Expressions if & if-else Statements Program Specification: A online retailer has hired you to write a program to calculate the total cost of a customer's order. First the retailer must enter the name and the price per unit for the candy that they are selling. Then, the customer is allowed to order as many units of the candy as they would like. Lastly, an invoice report) generated (displayed to the screen) under the following rules: All units up to and including the 10th are sold at full price. All unit in excess of 10 are sold at a 10% discount. The involce must include 1. The candy's name 2. The candy's full unit price 3. How many units are being sold not full unit price 4. The resulting sub total And if applicable, another line indicating 1. The candy's name 2. The candy's discounted unit price 3. How many units are being sold at discounted unit price 4. The resulting stub total The involce must the include a line indicating the total of the order The invoice mest them include a line indicating the sales tax on the total of the order (wed 7.5% sales tex) The invoice the include alle indicating the grand total of the order Write a Jiya program that satisfies the above description Requirements: 1. All values obtained from the must be stored in an appropriately typed variable

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

Relational Database Technology

Authors: Suad Alagic

1st Edition

354096276X, 978-3540962762

More Books

Students also viewed these Databases questions