Program using C++ language without the use of logical operators(&&,||,!). Also, be careful with the operations! Because this RetailCost=(units*99)*.50; gives a warning and does not print out total cost purchase.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%
Program using C++ language without the use of logical operators(&&,||,!). Also, be careful with the operations! Because this RetailCost=(units*99)*.50; gives a warning and does not print out total cost purchase.
Bb https://bb-morte
A software company sells a package that retails for $99. Quantity
discounts are given according to the following table.
A software company sells a package that retails for $99. Quantity discounts are given
according to the following table.
Quantity
Discount
10-19
20-49
20%
30%
50-99
100 or more
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.
Sample Output1:
stv
888 F4
F3
23
2$
%
&
2
3
4
5
6.
7
8
9
Q
E
R
T
Y
S
F
G
K
C
V
alt
"ion
command
command
..
Transcribed Image Text:Bb https://bb-morte A software company sells a package that retails for $99. Quantity discounts are given according to the following table. A software company sells a package that retails for $99. Quantity discounts are given according to the following table. Quantity Discount 10-19 20-49 20% 30% 50-99 100 or more 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. Sample Output1: stv 888 F4 F3 23 2$ % & 2 3 4 5 6. 7 8 9 Q E R T Y S F G K C V alt "ion command command ..
Upload Assignment: Homework
Sample Output1:
HOMEWORK#4 PART 1
How many units were sold? 0
Units sold must be greater than zero.
Programmer: insert your name here
Sample Output2:
HOMEWORK#4 PART 1
How many units were sold? 57
The total cost of the purchase is $3385.80
Programmer: insert your name here
24
dtv
888
* ES
F1
F3
F4
4)
F9
F10
#3
2$
%
&
*
2
3
4
5
6.
7
8
9.
Q
R
Y
U
A
S
D
F
K
C
V
alt
B
EI
Transcribed Image Text:Upload Assignment: Homework Sample Output1: HOMEWORK#4 PART 1 How many units were sold? 0 Units sold must be greater than zero. Programmer: insert your name here Sample Output2: HOMEWORK#4 PART 1 How many units were sold? 57 The total cost of the purchase is $3385.80 Programmer: insert your name here 24 dtv 888 * ES F1 F3 F4 4) F9 F10 #3 2$ % & * 2 3 4 5 6. 7 8 9. Q R Y U A S D F K C V alt B EI
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY