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

  Java program that will prompt the user to input a file

Write a Java program that will prompt the user to input a file (document) in order to count the frequency of each word. This program will display the frequency of each word sorted alphabetically or by frequency (depending on the preference of the use..

  Design a course registration system

Create an application which represents a simplified course registration system using ArrayLists and HashMaps.

  To translate infix mathematical expression

Write a program in java to translate infix mathematical expression into postfix expression and a program to evaluate the postfix expression

  Make a fourth button called special

Make a fourth button called "special" that does something else notdescribed in the assignment, such as change the background color.

  Produce a design document

You will design and deliver a website foes fictional client part-1 Website Design Document and produce a design document

  Picky publishing house publishes stories

Picky Publishing House publishes stories in three categories and has strict require- ments for page counts in each category. Create an abstract class named Story that includes a story title, an author name, a number of pages, and a String message. In..

  Given a sequence of 10 integers

Write a program given that given a sequence of 10 integers, find out and delete the maximum and minimum number, then compute the average of the rest.

  Create your own date class

You are to write a program that determines the day of the week for New Year's Day in the year 3000. To do this, you must create your own date class (MyDate) and use the following interface and main program:

  A java program that will prompt the user to input a file

Write a Java program that will prompt the user to input a file (document) in order to count the frequency of each word. This program will display the frequency of each word sorted alphabetically or by frequency (depending on the preference of the use..

  Class named person with fields for holding a person''s name

Design a class named Person with fields for holding a person's name, address, and telephone number. Write one or more constructors and the appropriate mutator and accessor methods for the class's fields.

  Pronouns, and prepositions

Type addKeyword(): for each word on each page, add to a (keyword, URLs) list or dictionary, excluding articles, pronouns, and prepositions. For example:

  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.

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