public class PhoneNumbersStarter public static void main(String[] args) * Two parallel arrays to hold phone numbers and names ith name matches ith phone number; e indicates number unknown the L tag at the end of the numbers makes them a java long primitive type (necessary to fit 10 digits) You may extend these arrays but DOo NOT modify the types long[] numbers = (9876543210L, 0, 3129152000L, 9094567890L, 3034061234L, 0, 0, 8133774578L}; String[] names = {"Adam Smith", "George Washington", "Alexander Hamilton", "Thomas Payne"," "Betsy Ross", "Martha Washington", "Deborah Sampson", "Patience Wright"}; //TODO: call the methods to test them. You can call them multiple times. Do some phone changes Ask the user to update zero or more phone numbers using a Scanner170 object. User enters name of person, if that person found in people parameter, then allow update of corresponding phone number * in phoneNumbers parameter. Loop asking for names for which to update the phone number until user enters "Done @param phonellumbers - array of phone numbers in order matching names (0 indicates number unknown) @param people - array of people names in same order as phone numbers ereturn boolean true if any numbers were changed; false if no numbers changed successfully (for example if user never enters a name found in people TODO: Enter the rest of your pseudo code here (give details on how you will process user requests, search and make changes. public static boolean updatelumbers(long[] phoneNumbers, String[] people) { //TODO: write your code here return true; // temporary so stub compiles. Replace with your full code for method
public class PhoneNumbersStarter public static void main(String[] args) * Two parallel arrays to hold phone numbers and names ith name matches ith phone number; e indicates number unknown the L tag at the end of the numbers makes them a java long primitive type (necessary to fit 10 digits) You may extend these arrays but DOo NOT modify the types long[] numbers = (9876543210L, 0, 3129152000L, 9094567890L, 3034061234L, 0, 0, 8133774578L}; String[] names = {"Adam Smith", "George Washington", "Alexander Hamilton", "Thomas Payne"," "Betsy Ross", "Martha Washington", "Deborah Sampson", "Patience Wright"}; //TODO: call the methods to test them. You can call them multiple times. Do some phone changes Ask the user to update zero or more phone numbers using a Scanner170 object. User enters name of person, if that person found in people parameter, then allow update of corresponding phone number * in phoneNumbers parameter. Loop asking for names for which to update the phone number until user enters "Done @param phonellumbers - array of phone numbers in order matching names (0 indicates number unknown) @param people - array of people names in same order as phone numbers ereturn boolean true if any numbers were changed; false if no numbers changed successfully (for example if user never enters a name found in people TODO: Enter the rest of your pseudo code here (give details on how you will process user requests, search and make changes. public static boolean updatelumbers(long[] phoneNumbers, String[] people) { //TODO: write your code here return true; // temporary so stub compiles. Replace with your full code for method
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
assignment is to complete the starter code:
![* Show the full set of names and phone numbers in the format indicated in the assignment
(Display them to the console)
@param phoneNumbers- array of phone numbers in order matching names (0 indicates number unknown)
@param people- array of people names in same order as phone numbers
* TODO:
Enter full pseudo code here (give details about how you will process the input parameters
If helpful, mention key variables to use
and how you will create the correct format.
*/
public static void showPhoneNumbers (long[] phoneNumbers, String[] people) {
//TODO: write your code here
}
}](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fbda60386-cf75-4b0b-a556-f8e365521ce5%2Fb818fd11-1072-4e7f-af20-bdcfa91c19df%2F086n5yh_processed.png&w=3840&q=75)
Transcribed Image Text:* Show the full set of names and phone numbers in the format indicated in the assignment
(Display them to the console)
@param phoneNumbers- array of phone numbers in order matching names (0 indicates number unknown)
@param people- array of people names in same order as phone numbers
* TODO:
Enter full pseudo code here (give details about how you will process the input parameters
If helpful, mention key variables to use
and how you will create the correct format.
*/
public static void showPhoneNumbers (long[] phoneNumbers, String[] people) {
//TODO: write your code here
}
}
![public class PhoneNumbersStarter
{
public static void main(String[] args)
{
/* Two parallel arrays to hold phone numbers and names
ith name matches ith phone number; 0 indicates number unknown
the L tag at the end of the numbers makes them a java long primitive type
(necessary to fit 10 digits)
You may extend these arrays but DO NOT modify the types
*/
long[] numbers = {9876543210L, 0, 3129152000L, 9094567890L, 3034061234L, 0, 0, 8133774578L};
String[] names
{"Adam Smith", "George Washington", "Alexander Hamilton", "Thomas Payne",
"Betsy Ross", "Martha Washington", "Deborah Sampson", "Patience Wright"};
//TODO: call the methods to test them. You can call them multiple times. Do some phone changes
}
/**
* Ask the user to update zero or more phone numbers using a Scanner170 object. User enters name
* of person, if that person found in people parameter, then allow update of corresponding phone number
* in phoneNumbers parameter.
* Loop asking for names for which to update the phone number until user enters *Done*
* @param phoneNumbers - array of phone numbers in order matching names (0 indicates number unknown)
* @param people - array of people names in same order as phone numbers
* @return boolean true if any numbers were changed; false if no numbers changed successfully (for
example if user never enters a name found in people
TODO: Enter the rest of your pseudo code here (give details on how you will process user requests,
search and make changes.
*/
public static boolean updateNumbers (long[] phoneNumbers, String[] people) {
//TODO: write your code here
return true;
// temporary so stub compiles. Replace with your full code for method
}](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fbda60386-cf75-4b0b-a556-f8e365521ce5%2Fb818fd11-1072-4e7f-af20-bdcfa91c19df%2Fx661vpk_processed.png&w=3840&q=75)
Transcribed Image Text:public class PhoneNumbersStarter
{
public static void main(String[] args)
{
/* Two parallel arrays to hold phone numbers and names
ith name matches ith phone number; 0 indicates number unknown
the L tag at the end of the numbers makes them a java long primitive type
(necessary to fit 10 digits)
You may extend these arrays but DO NOT modify the types
*/
long[] numbers = {9876543210L, 0, 3129152000L, 9094567890L, 3034061234L, 0, 0, 8133774578L};
String[] names
{"Adam Smith", "George Washington", "Alexander Hamilton", "Thomas Payne",
"Betsy Ross", "Martha Washington", "Deborah Sampson", "Patience Wright"};
//TODO: call the methods to test them. You can call them multiple times. Do some phone changes
}
/**
* Ask the user to update zero or more phone numbers using a Scanner170 object. User enters name
* of person, if that person found in people parameter, then allow update of corresponding phone number
* in phoneNumbers parameter.
* Loop asking for names for which to update the phone number until user enters *Done*
* @param phoneNumbers - array of phone numbers in order matching names (0 indicates number unknown)
* @param people - array of people names in same order as phone numbers
* @return boolean true if any numbers were changed; false if no numbers changed successfully (for
example if user never enters a name found in people
TODO: Enter the rest of your pseudo code here (give details on how you will process user requests,
search and make changes.
*/
public static boolean updateNumbers (long[] phoneNumbers, String[] people) {
//TODO: write your code here
return true;
// temporary so stub compiles. Replace with your full code for method
}
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education