Computer Science, asked by Jenni87, 1 year ago

3.2 Code practice edhesive answers please

Question 1:
Write a program to enter a number and test if it is greater than 45.6 Example:

Enter a number: 90
Output:

Greater than 45.6

Question 2:

Test if a number grade is an A (greater than or equal to 90). If so print "Great!". Example:

Enter a Number: 98
Output:

Great!

Question 3:

Test if a password entered is correct. The secret phrase is Ada Lovelace. Examples:


Enter the Password: Ada Lovelace
Correct!
Enter the Password: Blaise Pascal
Not Correct

Answers

Answered by utkarshmishra9819
4

Answer:

class prog {

void mai (double a)

{if( a >45.6)

System.out.println("greater than 45.9");}

void poised(int k)

{if(k>=90){System.out.println("Great!");}}

void soo(String z)

{if(z.equals("Ada Love lace"))

System.out.println("Correct!");

else

{System.out.println("Not correct!");

}}}

Please mark it as the brainliest answer

Similar questions