Create a java class the performs the following commands in the listed order: while (true) { // Prompt the user to enter a command: ______________________________; if (command is "a") { // Prompt user for name and number: ______________________________; // Create a phone number and store it in the record: ______________________________; } else if (command is "f") { // Prompt user for search key: _______________________________; // Search the database for records whose names begin with the search key: _______________________________; // Print these names and the corresponding phone numbers: _______________________________; } else if (command is "q") { // Terminate program: _______________________________; } else { // Display error message: _______________________________; } }
Create a java class the performs the following commands in the listed order:
while (true) {
// Prompt the user to enter a command:
______________________________;
if (command is "a") {
// Prompt user for name and number:
______________________________;
// Create a phone number and store it in the record:
______________________________;
} else if (command is "f") {
// Prompt user for search key:
_______________________________;
// Search the
_______________________________;
// Print these names and the corresponding phone numbers:
_______________________________;
} else if (command is "q") {
// Terminate
_______________________________;
} else {
// Display error message:
_______________________________;
}
}
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images