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).
Write a program that uses a do-while loop to add integers by the user. In the loop condition, use a variable of type char, in which you can store the user’s answer to the question, “Do you want to enter another number?” when the loop is terminated, the program should output the total of all the inputs. To extend the program, add a nested while loop to ensure the user answers the “…another?” question sensible (with a ‘y’ or ‘n’).