This document contains instructions for writing 8 Java programs that use control statements like if/else, switch, and loops. The programs are to check blood donation eligibility; compare 3 numbers; print the day name from a number input; calculate a factorial using a loop; check if a number is prime; and find the largest and smallest numbers entered by a user.
This document contains instructions for writing 8 Java programs that use control statements like if/else, switch, and loops. The programs are to check blood donation eligibility; compare 3 numbers; print the day name from a number input; calculate a factorial using a loop; check if a number is prime; and find the largest and smallest numbers entered by a user.
This document contains instructions for writing 8 Java programs that use control statements like if/else, switch, and loops. The programs are to check blood donation eligibility; compare 3 numbers; print the day name from a number input; calculate a factorial using a loop; check if a number is prime; and find the largest and smallest numbers entered by a user.
Write a Java program to determine if a person is eligible to donate blood or not Write a Java program that accepts three numbers and checks that all numbers are equal or not Write a Java program to accept the number of days of the week (1-7) and write the name of the day (solve this example using IF) Write a Java program to accept the number of days of the week (1-7) and write the name of the day (solve this example using Switch) Write a Java program to find out the number of days in a month (solve this example using Switch) Write a java program to calculate a factorial of a number using a loop Write a Java program to check if a number is a prime number Write a Java program to enter numbers as many as the user wants and in the end the program should display the largest and smallest numbers entered