Flow 12

Essay by rocky2911Elementary School, 5th gradeB, September 2014

download word file, 2 pages 0.0

Downloaded 1 times

FLOW OF CONTROL

IF -Else Programs

Enables one to take acces to various proiles and portfolis, enchancing the way computing will ever work.

Write a program to check if a number entered is positive or negative.

Write a program to check if the number entered is even or odd.

Write a program to print the square if the number entered is even, otherwise print its cube.

Write a program to check if the character entered is in uppercase or lowercase.

Write a program to print the largest of three numbers.

Write a C++ program to accept a number and display if it is negative, positive or a zero.

Write a program to accept a 4 digit number and display if it is a leap year.

Write a program to convert a lowercase character to uppercase and vice versa.

Write a program to accept the 2 sides of a rectangle and display if its area is greater than its perimeter.

Write a program to get date in three variables dd, mm, yy to accept the date, month and the year in the century format. Write code to check the validity of the date.

Write a C++ program to accept the sales amount and display the net amount according to the following discount table.

Sales > 50000

40% discount

Sales between 40001 to 50000

30% discount

Sales between 30001 to 40000

20% discount

Sales between 20001 to 30000

15% discount

Sales <= 20000

05% discount

Net = Sales - Discount

Write a C++ program to accept two numbers and an operator and display the answer according to the specified operator (+, - , *, /, %).

Write a C++ program to accept the day number from the user and display the entrance fee for a theme park. Accept the number of tickets...