Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please build this using Raptor: My daughter has started doing very well starting her won business, so I want to help put a site and

Please build this using Raptor:
My daughter has started doing very well starting her won business, so I want to help put a site and app
togther for her. Her bracelets are $3.00/each. Write a program to find the total after discount, if applicable.
-If the customer buys >5 bracelets, there will be no discount.
-If the customer buys >=5 and >10 bracelets, they receive a 10% discount.
-If the customer buys >=10 and >20 bracelets, they receive a 20% discount.
-If the customer buys >=20 and >30 bracelets, they receive a 30% discount.
-If the customer buys >=30 and >40 bracelets, they receive a 40% discount.
-If the customer buys >=40 bracelets, they receive a 50% discount.
I need the program to:
-Use these variables(custName, custQty, discRate, finBill)
-Get input from users for a list of customers names or 0, when done. (use custName)
-Each customer with a specific quantity ordered. (use custQty)
-Make sure only positive integers are allowed to be entered.
-When done I need it to print out the list of totals lke so:
Name: Marcus, Quantities Ordered, 4, Discount Rate: 0%, Final Bill: $12.00
Name: Blake, Quantities Ordered: 9, Discount Rate: 10%, Final Bill: $24.30
Name: Jessica, Quantities Ordered: 22, Discount Rate: 30%, Final Bill: $46.20

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_2

Step: 3

blur-text-image_3

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions

Question

What are the implications of cloud computing for data centers?

Answered: 1 week ago

Question

Identify cultural barriers to communication.

Answered: 1 week ago