Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSCI 14, Quiz 1, 25 Poin's h CSCI 14-02 Assignment 3, 25 Points, Due 2/26/19 Switch and IF...Else IF Statements The switch is an alternative

image text in transcribed
CSCI 14, Quiz 1, 25 Poin's h CSCI 14-02 Assignment 3, 25 Points, Due 2/26/19 Switch and IF...Else IF Statements The switch is an alternative to using IF...Then... Else or an IF...Else IF statement The store sells chocolates: Milk Chocolate $8.50 per pound Dark European Chocolate @ $9.75 per pound . White Chocolate @ $10.50 per pound European Truffles @$12.50 per pound 7 0 The store allows a customer discount based on: 1. 2, 3, 4. $20.00 to$39.99 $40.00 to$59.99 $60.00 to $79.99 $80.00 and over 10% off 15% off 20% off 25% off Shipping & Handling is 10% of the net total (gross-discount). Total Owed is Net Total plus Shipping and Handling) You are using the switch to calculate the quantity discount. Since the switch does not allow a range, you have to set a "code" for the quantity range to use in the Switeh such as and integer code 1,2,3, or 4 or maybe a char 'a', 'b', 'c' or 'd uDesuu tch You would probably want to use: cout.setf(ios::fixed | ios::showpoint); cout

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

Students also viewed these Databases questions

Question

Explain the difference between compassion and empathy.

Answered: 1 week ago