Write a program that reads a character and then prints “It is a vowel”, if it is a vowel, “It is an operator”, if it is one of the five operators, and “It is something else”, if it is anything else.
Write a program that reads three integers and prints the minimum and maximum.
Write a program that reads a grade, A, B, C, D, or F and then prints “Excellent”, “Good”, “Fair”,” Poor”,” Failure”.
. Write a program that simulates a simple calculator. It reads two integers and a character. If the character is +, then the sum of the two numbers is printed, if the character is –, then the difference of the two numbers is printed, if the character is *, then multiplication of the two numbers is printed; if the character is /, then the quotient is printed; if the character is %, then the remainder is printed.
Write a program that reads two integers and then uses the conditional expression operator to print either “multiple” or “not” according to whether one of the integers is a multiple of the other.
. Write a program that reads the user’s age and then prints “You are a child” if the age < 18, “You are an Adult” if 18<= age <=65, and “You are a senior citizen” if age >65.
Create a function, plus(), which adds two values and returns their sum. Provide overloaded versions to work with int, double and string types, and test that they work with the following function calls: int n = plus(3, 4); double d = plus (3.2, 4.5); string s = plus (“Hi”, “There”);
. Write a program that asks for a number and a power. Write a recursive function that takes the number to the power. Thus, if the number is 2 and the power is 4, the function will return 16.
Use for loops to construct a program that displays a pyramid of Xs on the screen. The pyramid should look like: X X X X X X X X X X X X X X X
Create a program that asks the user a series of questions that begin, “Is your number bigger than…” in order to deduce what integer between 1 and 100 they are thinking of. The user should only be able to answer ‘y’ or ‘n’ to each question. (Hint: each time round the loop, you should be seeking to halve the range in which number could lie, so store an upper bound and a lower bound, and change one or the other according to the user’s answers).