Question: C++ a) Write a complete program for the followings: i. Ask the user to input an integer number and store into variable num. Then, determine

 C++ a) Write a complete program for the followings: i. Ask

C++

a) Write a complete program for the followings: i. Ask the user to input an integer number and store into variable num. Then, determine if the number is divisible by 2. If num is divisible by 2, display a message "This number can be divided by 2". Otherwise, display "This number cannot be divided by 2". (4 marks) ii. Given the following table, ask the user to enter the basic salary. Then, calculate the increment based on the basic salary and the new salary after increment. Display the user's basic salary, increment and new salary. Basic Salary 1000 - 5000 5000 and above Increment 10% 6% (6 marks)

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!