Question: Java Section Questions 1a. Write a code for getting an input as a password from the user. If it is correct then tells the user

Java Section Questions

1a. Write a code for getting an input as a password from the user. If it is correct then tells the user that the password is true, otherwise says the password is not correct.

1b. Write a program that gets 3 integer numbers and then it displays the maximum number. "Enter your 3 numbers." "The maximum number is." (I & O statements)

1c. Write a program that prompts the user to enter two cities and displays them in alphabetical order.

1d. Write a program that gets the traffic light state if it is red, yellow, or green. Red: Stop, Yellow: Caution, Green: Go

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!