Question
How do you make the c++ code???? Please give me your knowledge..! Have a nice day?.. 1. Print out items being sold -Calculator for engineering
How do you make the c++ code???? Please give me your knowledge..! Have a nice day?..
1. Print out items being sold -Calculator for engineering students: $30 -Ewha baseball jacket: $60 ($50 each if you buy 2 or more) -Notebook with Ewha logo: $3 (buy 5 get 6th one free) -If the total > $200, you get a 10% discount 2. Receive the quantities of each item If input = 0 3. Calculate subtotal for each item and total with discount 4. Print out purchase summary (quantity and price) Hint) if you buy 5 notebooks: quantity = 6, price = $3 * 5 = $15 Print out subtotal (before discount) Print out total (with discount) Show 2 decimal points for subtotal and total (ex. 191.30) 5. Repeat this program if the user wants to
-Use at least 3 user-defined functions ->Do not put ALL your codes in the main function. Create user-defined functions! -Use loop statements for certain inputs -Keep your codes as succinct as possible -Insert system(pause); at the end of your code before return 0;
?Write comments to explain your code!!! -Your source code file serves as your report file -Insufficient comments will give you less points
Result should look like...
301 Calculator tor engineering students elcome to Ewha Coop. Here are the items: Ewha bazeball jacket ($50 each if yu buy 2 or more 30] Calculator for engineering students $60] Ewha baseball jacket ($50 each if you buy 2 or more) 31 Notebook with Ewha 1ogo (buy 5 get 6th one free) logo (buy 5 gat 6th an frea) f your total i over 3200 you get a 10% discont! nter quantity for each itea f your total is over $200 you get a 10% discount! Calculatar: 2 Ewha Baseball jacket: 1 nter quantity for each item Calculator: 3 Ewha Bas Notebook: 10 ere are the itons you are purchasing: rebok Calculators Baseball jackets: jacket: 2 ($9) tsihdiunt: 129.00 o you want to start orer? ): btotal ere are the items you are purchasing: 0) Calculators:3 ($9 Baseball jackets: Noteboolk ubtotal otal with discount: $198. 00 : $220. 00 30 Calculator or engineering students ($63] Notabbok willeket (350 each gat oth neto Eha baseball Notsbook with o you want to start over? (y)y f your tot.l is over 3200 you get 10% discount! nter gantity for each iten elcome to Ewha Coop. Here are the items: $301 Calculator for engineering students $60] Eha basebal1 jacket ($50 each if you buy 2 or more) S 31 Notebook with Ewha 1ogo (buy 5 get 6th one free.) r cunber again: 3 jacket: 3 Esta Notelcok rre the itk you are purchaing: f your total is over $200 you get a 10% discount! Calcul ators Baseball jackets: 613 nter quantity for each item Calculator: you vant to start oert (y)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started