Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code in c++ please Q1: Software Sales A software company sells a package that retails for $99. Quantity discounts are given according to the following

Code in c++ please image text in transcribed
Q1: Software Sales A software company sells a package that retails for $99. Quantity discounts are given according to the following table: QuantityDiscount 10-19 20-49 50-99 100 or more 20% 30% 40% 50% : Write a program that asks for the number of units sold and computes the total cost of the purchase. Input validation: Make sure the number of units is greater than 0. Q2: Book Club Points Community Booksellers has a book club that awards points to its customers based on the number of books purchased each month. The points are awarded as ollows -If a customer purchases O books, O points are earned. -If a customer purchases 1 book, S points are earned. -If a customer purchases 2 books, 15 points are earned. -If a customer purchases 3 books, 30 points are earned. -If a customer purchases 4 or more books, 60 points are earned. Write a program that asks the user to enter the number of books that he or she has purchased this month and then display the number of points awarded

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

International Baccalaureate Computer Science HL And SL Option A Databases Part I Basic Concepts

Authors: H Sarah Shakibi PhD

1st Edition

1542457084, 978-1542457088

More Books

Students also viewed these Databases questions

Question

4) Compute the covariance between Y and Z.

Answered: 1 week ago