Q-1.Write a C++ program that accepts two numbers a and b and checks whether or not a is divisible by b.
Q-2.Write a C++ program to accept 2 numbers and tell whether the product of the two numbers is equal to or greater than 1000.
Q-3.Write a C++ program to accept 2 numbers. Calculate the difference between the two values.
If the difference is equal to any of the values entered, then display the following message:
Difference is equal to value <number of values entered>
If the difference is not equal to any of the values entered, display the following message:
Difference is not equal to any of the values entered
Q-4.Montek company gives allowances to it employees depending on their grade as follows:

Grade Allowance
A 300
B 250
Others 100


Calculate the salary at the end of the month. (Accept Salary and Grade from the user)
Q-5.Write a program to evaluate the Grade of a student for the following constraints:
If marks > 75 —Grade A
If 60 < marks < 75 – Grade B
If 45 < marks < 60 – Grade C
If 35 < marks < 45 - Grade D
If marks < 35 – Grade E
Q-6.Write a C++ program to check whether the given number is positive or negative.
Q-7.Write a C++ Program to find greatest of three numbers.
Q-8.Write a C++ Program to check if number is odd or even.
Q-9.Write a C++ Program to check whether an alphabet is vowel or consonant.
Q-10.Write a C++ Program to check leap year.
Q-11.-Declare two variables x and y. Assign values to these variables. Number x should be printed only if it is less than 2000 or greater than 3000, and number y should be printed only if it is between 100 and 500.
Q-12.Write a C++ program to show your computer's capabilities. The user types in a letter of the alphabet and your program should display the corresponding language or package available. Some sample input and output are given below:

Input Output
A or a Ada
B or b Basic
C or c Cobol
D or d dBase III
F or f Fortran
P or p Pascal
V or v Visual C++

Using the ‘switch’ statement to choose and display the appropriate message. Use the default label to display a message if the input does not match any of the above letters