Design a java program that has two parallel arrays

Assignment Help JAVA Programming
Reference no: EM13164937

Design a java program that has two parallel arrays: a string array named people that is initialized with the names of seven of your friends, and a string array named phoneNumbers that is initialized with your friends phone numbers. The program should allow the user to enter a persons name (or part of a persons name). it should then search for that person in the people array. If the person is found, it should get that persons phjone number from the phoneNumbers array and display it. If the person is not found in the people array, the program should display a message indicating so. 

Reference no: EM13164937

Questions Cloud

Geographical reach-local-regional and global : How would you describe the appropriate target market(s) for Banyan Tree?  How wide is its geographical reach-local, regional, global?
Draw a rough sketch of the energy profile : Draw a rough sketch of the energy profile for each of the following cases. a. E = +10 kJ/mol, Ea = 25 kJ/mol b. E = -10 kJ/mol, Ea = 50 kJ/mol c.
Heptadeca class that encapsulates a heptadeca number : Write a Heptadeca class that encapsulates a Heptadeca number value. A Heptadeca number is one with 17 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, G. The methods the class has are: public void read(), public void set(String), public voi..
Determine the present value of the lease payments : Determine the present value of the lease payments at June 30, 2013 (to the nearest $000) that Georgia-Atlantic uses to record the leased asset and lease liability.
Design a java program that has two parallel arrays : Design a java program that has two parallel arrays: a string array named people that is initialized with the names of seven of your friends, and a string array named phoneNumbers that is initialized with your friends phone numbers.
What is the molar mass of the unknown gas : A sample of helium effuses through a porous container 6.5 times faster than does unknown gas X?
Classify the preceding costs as either fixed and variable : Hand-Made Furniture Company manufactures sofas for distribution to several major retail chains and insurance premiums on property, plant, and equipment, $25,000 per year plus $25 per $25,000 of insured value over $16,000,00
Design a program that asks the user to enter a series of 20 : Number Analysis Program: Design a program that asks the user to enter a series of 20 numbers
Discriminatory and legal action : "You recently interviewed an African American candidate, but did not hire her. When she found out she did not get the job, she called the office and said she felt the hiring decision was discriminatory and she was considering taking legal action. Wha..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create java program to describe inheritance and polymorphism

Create a Java program based on the geometric shapes example described at the beginning of this lesson using Classes Square, Triangle, Rectangle, and Circ leto help describe inheritance and polymorphism.

  Write the method in java

2.char mostOftenIn(String s) that for a given string s, returns the character that occurs most often in s.

  Personalize the time zone application of section 24.3

Personalize the time zone application of Section 24.3. Prompt the user to log in and specify a city to be stored in a profile. The next time the user logs in, the time of their favorite city is displayed automatically.

  The class constructor should accept an array

Write a class named TestScores. The class constructor should accept an array of test scores as its arguments. The class should have a method that returns the average of the test scores. If any test score in the array is negative or greater than 10..

  Implement a method with three arguments

Implement a method with three arguments: a graph, a starting vertex number, and an ending vertex number. The method determines whether there is a directed path from the starting vertex to the ending vertex.

  Describe principles of data abstraction and inheritance

Study the principles of data abstraction, inheritance and dynamic binding. Use Library to get started on finding resources.You must take the terms and describe it.

  Java program that will add the corresponding elements

Develop a Java program that will add the corresponding elements of two 1-dimensional arrays X and Y to produce the 1-dimensional array Z. Arrays X, Y, Z have the same dimension [M].

  Recognize one high severity vulnerability for computer

Recognize one high severity vulnerability for each computer (if there is one). Explain vulnerability and describe control(s) to minimize risk from vulnerability.

  Construct a bulls and cows program for my intro java class

construct a Bulls and Cows program for my intro Java class. This program needs to perform the basic functions of the game (determining how many cows there are and how many bulls there are and tell the player when they win), but it also needs to offer..

  Write a java program called salesinfominer

Write a Java program called SalesInfoMiner that reads in a file of products, stored in text format. The program must then read in information about past sales transactions and output all the products to a new file, sorted by product description,..

  Graphicsframe class

This program makes use of the GraphicsFrame class and the Drawable interface. Your missions is to create the class Airplane. Each Airplane object should store the following information (fields): manufacturer modelNumber maximumSpeed // in knots maxim..

  Write java program to evaluate postfix expressions

Write a java program to evaluate postfix expressions containing complex numbers using a stack. This program should contain two classes.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd