Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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