Question: Write a complete program for the followings: Ask the user to input an integer number and store into variable num. Then, determine if the number
- Write a complete program for the followings:
- Ask the user to input an integer number and store into variable num. Then, determine if the number is divisible by 7. If num is divisible by 7, display a message number can be divided by 7. Otherwise, display number cannot be divided by 7.
(4 marks)
Answer:
- Given the following table, ask the user to enter the item code and quantity of an item. Calculate the total price of item (based on the table) and total price after 6% SST. Display the price of item after SST.
| Item Code | Item Name | Price | Discount |
| A | T-shirt | 12.00 | Quantity > 10, 6% Off |
| B | Bag | 25.00 | No discount |
(6 marks)
Answer in C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
