ACTIVITY 3 Programming
ACTIVITY 3 Programming
Name: DIAZ, NAETHAN PAUL V. | Course Yr & Sec: BSME – 2A | Date: 10/24/2023
1. Write a program that will input five (5) numbers and display the highest number. Assume no equal
values. Use if/else if/else statement and switch statement.
2. Write a program that will input a number and will print “Divisible” if the number is divided by 5,
otherwise print “Not Visible”. Use if/else if/else statement and switch statement.
3. Write a program that will accept dates written in numerical form and then display them as a complete
form. For example, the input: 6 8 1978 the output should be June 8, 1978. Use if/else if/else statement
and switch statement.
4. Write a program that will ask the user to input a character “m” or “f” and then it will display “Hello Sir”,
if the input is “m” otherwise “Hello Madam”. Use if/else if/else statement and switch statement.
5. Design a program that will ask the user to input age if the age is less than 18 it will display a message
“You are still a Minor”. But if the age is greater than or equal to 18 it will display a message “You are
already an Adult.” Use if/else if/else statement and switch statement.