0% found this document useful (0 votes)
2 views1 page

Realtime Scenario Questions - Java

The document outlines three Java programming tasks: classifying students' grades based on their marks, wishing students on their birthdays according to specific conditions, and calculating password strength based on defined criteria. Each task specifies the input requirements and the classification or output logic. The programs are designed to enhance students' understanding of Java programming concepts.

Uploaded by

LIGHTNING BOLT
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Realtime Scenario Questions - Java

The document outlines three Java programming tasks: classifying students' grades based on their marks, wishing students on their birthdays according to specific conditions, and calculating password strength based on defined criteria. Each task specifies the input requirements and the classification or output logic. The programs are designed to enhance students' understanding of Java programming concepts.

Uploaded by

LIGHTNING BOLT
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Grade Classification

Write a Java program that classifies students' grades based on their marks. The program should
read marks for 10 students and classify them as follows:

● A for marks >= 90


● B for marks >= 80 and < 90
● C for marks >= 70 and < 80
● D for marks >= 60 and < 70
● F for marks < 60

2. Birthday Wishes to students

Write a Java program that wishes students on their birthday dates. The program should read the
date of birth for 10 students and wish them as follows:

● Today’s date = DOB Wish Happy Birthday


● Today’s date is the next day of DOB Wish Belated Wishes
● Today’s date is the previous day of DOB wish Advance Happy Birthday wishes

3. Password Strength Calculator

Write a Java program to find the strength of the password. The program should read the
password given and prompt the user as follows,

● If the length of the password is less than 8 characters: Weak


● If the password contains at least one lowercase letter, an uppercase letter, and a
number: Strong
● If the password contains at least one lowercase letter, an uppercase letter, a number and
a special character: Very Strong

You might also like