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 08:00
Digital information is stored using a series of ones and zeros. computers are digital machines because they can only read information as on or off –1 or 0. this method of computation is known as the system
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Before you record your own voice, you should a. record other people's voices b. warm up and practice difficult names c. listen to your favorite songs d. read a transcript of a good radio news segment
Answers: 1
question
Computers and Technology, 23.06.2019 12:10
2. fabulously fit offers memberships for$35 per month plus a $50 enrollmentfee. the fitness studio offersmemberships for $40 per month plus a$35 enrollment fee. in how many monthswill the fitness clubs cost the same? what will the cost be?
Answers: 1
question
Computers and Technology, 23.06.2019 21:20
For positive constants a and b, the force between two atoms in a molecule is given f(r) = −a r2 + b r3 , where r > 0 is the distance between the atoms. note: a and b are upper case letters. (a) find f '(r) = (b) find the critical point for f(r). r = (c) find f ''(r) = (d) find the value of r so that f ''(r) = 0.
Answers: 1
You know the right answer?
//debugging exercises, Chapter 9;Java programming, Joyce Farrall, 8th edition import java. util. Sc...
Questions
question
Mathematics, 11.10.2019 01:30
Questions on the website: 13722363