subject

Does this java program look correct? first, let me paste the question:
five friends are going to the theater. they have purchased a row of five seats with an aisle on either end. james doesn't want to sit next to jill betty and herb are dating and want to sit next to each other bob must sit on an aisle provide a seating order that conforms to the above rules. an example of an invalid seating order is: james, betty, herb, bob, jill
the above arrangement is invalid because: bob is not sitting on an aisle.
specify the seating order as the names separated by commas (as in the above example). be sure to spell the names correctly, including capitalization.
my program:
public class seating{
public static void main (string [] args){
string james;
string jill
string betty;
string herb;
string bob;
system. output. println(bob + "," + jill + "," + herb + "," + betty + "," + james + "."; }}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:20
The north and south regions had very diferent economies in the 1800s.
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
Write a program that inserts the digits of an integer into an array in originalorderfollowed by reverse order. first, promptthe user to enter a positive integer(> 0). determine the number of digits of the integer. create a dynamically allocated integer arrayof a size twice the number of digits.now insert the digits in original order which will occupy half of the array. then, insert the digits in reverse order.finally, output thedigits in thearray.use at least two functions to organize your program.
Answers: 3
question
Computers and Technology, 23.06.2019 18:30
List 3 items that were on kens resume that should have been excluded
Answers: 1
question
Computers and Technology, 23.06.2019 19:50
Which feature is selected to practice and save the timing of a presentation
Answers: 1
You know the right answer?
Does this java program look correct? first, let me paste the question:
five friends are goin...
Questions
question
Mathematics, 05.08.2020 17:01
question
Mathematics, 05.08.2020 18:01
Questions on the website: 13722367