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

  1. Write a complete program for the followings:

  1. 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)

  1. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!