# In Java You are going to create a PhoneRecord class containing the following properties: firstName -...

###### Question:

In Java

You are going to create a PhoneRecord class containing the following properties:

• firstName - which is a String
• lastName - which is a String
• number - which should also be a String

the properties will be public, and it should have two constructors: one which simply constructs the string and another that accepts values for first name, lastname and phone number.

You should also create a class called Phone Book. It should contain an array of Phone Records and a count of howmany records there actually are. The number of records is passed to it by the contructor call, i.e.,:
PhoneBook pb = new PhoneBook(3); will construct a phone book that can contain up to 3 listings.

The methods are:

• toString(int i) - which returns a string containing record i
• writeRecord(int i) - which writes record i.
• writeBook() - which writes the entire phone book.

Write another class that uses the phone book, obtaining its size as a command line argument. Read in several records, write one or two of them and write the whole phone book.

#### Similar Solved Questions

##### E-PHYS 1401 - X Home Row Review - EdClub Ch. 9 Problems & Exercises - Cox...
e-PHYS 1401 - X Home Row Review - EdClub Ch. 9 Problems & Exercises - Cox 36 HW: Statics and Tort Dates > HW: Statics and Torque Resources Apollo and Artemis are playing on the tecter-totter in their school's playground. They both have approximately the same mass. They are sitting on eith...
##### The transverse displacement of a stretched string from equilibrium as a function of time and position...
The transverse displacement of a stretched string from equilibrium as a function of time and position is given by: y=0.13 cos(9 x + 45 t). x and y are in m; t is in s. The wavelength is ..... 1 m. The period is ..... 0.1 seconds. The wave travels in the negative x direction. The speed of the wave is...
##### Roar Corp has a beta of 1.3. If the risk-free rate is 5% and the market...
Roar Corp has a beta of 1.3. If the risk-free rate is 5% and the market risk premium is 9%, what is the expected return of Roar Corp?...
##### Question 11. During a review of competition video, you observe that Mr Q is unable to...
Question 11. During a review of competition video, you observe that Mr Q is unable to maintain the orientation of his trunk during the later stages of his run (excessive extension in his lumbar spine and excessive lateral tilting of his pelvis). It appears that he is unable to use his trunk and hip ...
##### Answer all te a balanced chemical equation for each reaction listed below for the group IV/V...
answer all te a balanced chemical equation for each reaction listed below for the group IV/V known solution. Be sure to balance each equation and include physical state notations. These reactions will be included in your Lab Report for this experiment and should also be recorded in your Lab Noteboo...
##### QUESTION 13 The wages of a timekeeper in the factory would be classified as a period...
QUESTION 13 The wages of a timekeeper in the factory would be classified as a period cost. direct labor. indirect labor. compliance costs....
##### Find the equation of the regression line for the given data. Then construct a scatter plot...
Find the equation of the regression line for the given data. Then construct a scatter plot of the data and draw the regression line. The table shows the shoe size and heights (in.) for 6 men. Shoe size, x Height, y 6.0 66.5 10.0 67. 5 10.5 7 1.5 12.0 72.5 13.0 74.5 13.5 72.5 Find the regression equa...
##### Prelab Questions 1. Gastrulation begins at what end of the embryo? 2. What is the primitive strea...
Prelab Questions 1. Gastrulation begins at what end of the embryo? 2. What is the primitive streak? 3. What is Hensen's node? 4. What is Neurulation? What is the final outcome once neurulation is complete? Prelab Questions 1. Gastrulation begins at what end of the embryo? 2. What is the primiti...
##### Grip is applied to produce normal surface forces that compress the object being gripped. Examples indlude...
Grip is applied to produce normal surface forces that compress the object being gripped. Examples indlude two people shaking hands, or a nurse squeezing a patient's forearm to stop bleeding, etc. The data on grip strength (in Newtons (N)) for a sample of 38 individuals is displayed in the box pl...
##### Two cards are drawn without replacement from a well shuffled deck of 52 cards
Two cards are drawn without replacement from a well shuffled deck of 52 cards. What is the probability that the second card drawn is a heart, if the first card drawn was not a heart?...
##### Part D What is the electron arrangement of silicon? Enter electron arrangement as integers separated by...
Part D What is the electron arrangement of silicon? Enter electron arrangement as integers separated by commas. VOAD ? Previous Answers Request Answer Submit...
Problem 11-3A Payroll expenses, withholdings, and taxes LO P2, P3 Paloma Co. has four employees. FICA Social Security taxes are 6.2% of the first $118,500 paid to each employee, and FICA Medicare taxes are 1.45% of gross pay. Also, for the first$7,000 paid to each employee, the company's FUTA t...