subject
Computers and Technology, 02.03.2020 04:52 aj0914

Create a program that will ask the user for number of chicken wings or wings they want to order at a restaurant. The number of wings and the sauce will determine if there is a discount on the total wings purchased. For hot wings purchased in a quantity of 6 or less there is no discount. For hot wings and a quantity of more than 6 but less than or equal to 12, there is a 10% discount. For hot wings purchased in the amount of greater than 12 but less than 24 the discount is 20%. For sweet and sour wings, purchased with a quantity of 6 or less the discount is 5%. For sweet and sour wings and a quantity of greater than 6 but less than or equal to 12, the discount is 10%. For sweet and sour wings purchased with a quantity greater than 12 but less than or equal to 24, the discount is 15%. For all wing purchases greater than 24 wings, the discount is 25%. All wings are 50 cents each.
The program needs to ask the user for the type of wing either hot or sweet with the following prompt:
Enter the wing type:
The program also needs to ask for the quantity of wings using the following prompt:
Enter the quantity:
The program needs to determine the discount rate, calculate the subtotal, discount and total cost of the wings. It then needs to print out all of these values using the following text:
Discount Rate:
Subtotal:
Discount:
Total:
Finally the program needs to ask the user if they want to purchase another order of wings using the following prompt:
Enter yes to add another order of wings

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 07:50, OnlyaBurden
In this lab, you complete a prewritten c++ program for a carpenter who creates personalized house signs. the program is supposed to compute the price of any sign a customer orders, based on the following facts: the charge for all signs is a minimum of $35.00. the first five letters or numbers are included in the minimum charge; there is a $4 charge for each additional character. if the sign is made of oak, add $20.00. no charge is added for pine. black or white characters are included in the minimum charge; there is an additional $15 charge for gold-leaf lettering. instructions ensure the file named housesign. cppis open in the code editor. you need to declare variables for the following, and initialize them where specified: a variable for the cost of the sign initialized to 0.00 (charge). a variable for the number of characters initialized to 8 (numchars). a variable for the color of the characters initialized to "gold" (color). a variable for the wood type initialized to "oak" (woodtype). write the rest of the program using assignment statements and ifstatements as appropriate. the output statements are written for you. execute the program by clicking the run button. your output should be: the charge for this sign is $82. this is the code, // housesign. cpp - this program calculates prices for custom made signs. #include #include using namespace std; int main() { // this is the work done in the housekeeping() function // declare and initialize variables here // charge for this sign // color of characters in sign // number of characters in sign // type of wood // this is the work done in the detailloop() function // write assignment and if statements here // this is the work done in the endofjob() function // output charge for this sign cout < < "the charge for this sign is $" < < charge < < endl; return(0); }
Answers: 1
image
Computers and Technology, 22.06.2019 20:00, hannahliebl2000
Need asap write a short paper describing the history and differences between six sigma, waterfall, agile, and scrum models. understanding these models can give you a good idea of how diverse and interesting it development projects can be. describe what the rationale for them is and describe their key features. describe the history behind their development. at least 400 words
Answers: 1
image
Computers and Technology, 22.06.2019 22:00, robert7248
Competent nonverbal communication involves interacting with others in a manner that is appropriate for which of the following? select all that apply. situation task individuals
Answers: 3
image
Computers and Technology, 23.06.2019 00:30, alex7078
Quick pl which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
You know the right answer?
Create a program that will ask the user for number of chicken wings or wings they want to order at a...

Questions in other subjects:

Konu
Mathematics, 18.03.2021 02:20
Konu
Health, 18.03.2021 02:20
Konu
Physics, 18.03.2021 02:20