Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Recommended Textbook for

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago