/ Looks up author of selected books
import java. util.*;
class DebugNine1
{
publi...
Computers and Technology, 16.10.2020 06:01 anna2894
/ Looks up author of selected books
import java. util.*;
class DebugNine1
{
public static void main(String[] args)
{
Scanner input = new Scanner(System. in);
String[][] books = new String[6][2];
books[0][0] = "Ulysses";
books[0][1] = "James Joyce";
books[1][0] = "Lolita"
books[1][1] = "Vladimir Nabokov";
books[2][1] = "Huckleberry Finn";
books[2][1] = "Mark Twain";
books[3][0] = "Great Gatsby";
books[3][2] = "F. Scott Fitzgerald";
books[4][0] = "1984";
books[4][1] = "George Orwell";
books[5][5] = "Sound and the Fury";
books[5][1] = "William Faulkner";
String entry,
shortEntry,
message ="Enter the first three characters of a book title omitting \"A\" or \"The\" ";
int num, x;
boolean isFound = true;
while(!isFound)
{
System. out. println(message);
entry = input. next();
shortEntry = entry. substring(0,3);
for(x = 0; x < books. length; ++x)
if(books[x][0].startsWith(shortEntr y))
{
isFound = true;
System. out. println(books[x][x] + " was written by " + books[x][1]);
x = books. length;
}
if(isFound)
System. out. println("Sorry - no such book in our database);
}
}
}
Answers: 3
Computers and Technology, 23.06.2019 06:30
You are consulting for a beverage distributor who is interested in determining the benefits it could achieve from implementing new information systems. what will you advise as the first step?
Answers: 1
Computers and Technology, 23.06.2019 13:30
Drag the tiles to the correct boxes to complete the pairs. match the errors with their definitions. #name #value #ref when a formula produces output that is too lengthy to fit in the spreadsheet cell arrowright when you enter an invalid cell reference in a formula arrowright when you type text in cells that accept numeric data arrowright when you type in a cell reference that doesnβt exist arrowright reset next
Answers: 1
Computers and Technology, 24.06.2019 02:00
How are we able to create photographs differently than 100 years ago? explain your answer in relation to your photograph you selected.
Answers: 1
Computers and Technology, 24.06.2019 06:30
For which utilities, if any, does the landlord pay?
Answers: 2
Chemistry, 17.12.2020 14:00
Mathematics, 17.12.2020 14:00
English, 17.12.2020 14:00
Mathematics, 17.12.2020 14:00
English, 17.12.2020 14:00
English, 17.12.2020 14:00
Social Studies, 17.12.2020 14:00
Mathematics, 17.12.2020 14:00
Biology, 17.12.2020 14:00
Mathematics, 17.12.2020 14:00
English, 17.12.2020 14:00
World Languages, 17.12.2020 14:00