subject
Computers and Technology, 13.07.2021 16:30 abby986

//debugging exercises, Chapter 9;Java programming, Joyce Farrall, 8th edition import java. util. Scanner;
public class DebugNine4
{
enum Planet {MERCURY, VENUS, EARTH, MARS, JUPITER, SATURN, URANUS, NEPTUNE};
public static void main(String[] args)
{
Planet planet;
String userEntry
int position;
int comparison;
Scanner input = new Scanner(System. in);
System. out. print("Enter a planet in our solar system >> ");
userEntry = input. nextLine().toUpperCas();
planet = Planet. valueOf(userEnttry);
System. out. println("You entered " + planet);
pos = planet. ordinal();
System. out. println(planet + " is " + position + 1 + " planet(s) from the sun");
}
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:00
Discuss the ways in which electronic information associated with payments is addressed in terms of security. include encryption, secure sockets layers, and secure electronic transactions in your discussion. are there any other ways that consumers and businesses can keep their payment information secure in an electronic commerce environment? do you feel that your information is safe when conducting electronic business? why or why not?
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
question
Computers and Technology, 23.06.2019 13:50
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
3. what do the terms multipotentialite, polymath, or scanner mean?
Answers: 2
You know the right answer?
//debugging exercises, Chapter 9;Java programming, Joyce Farrall, 8th edition import java. util. Sc...
Questions
question
Mathematics, 04.06.2021 22:00
question
Mathematics, 04.06.2021 22:00
question
Mathematics, 04.06.2021 22:00