Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Create two Java classes: Phone.java and PhoneGUI.java. Phone.java will be the model of your cell phone. PhoneGUI will create a Phone object and call its methods when appropriate buttons on the screen are pressed.

1. Create a Phone.java to model a cell phone. Include methods and fields to implement the following functionality:

a. Accept characters (0 through 9, *, #) that will be appended to a String to build a phone number.

b. Send the current phone number putting the phone into "in a call" state.

c. End the current phone call putting the phone into "not in a call" state.

d. Erase the last character entered.

e. Clear the entire phone number string.

f. Recall the last phone number called.

2. Create the PhoneGUI.java class to implement the following functionality by calling methods in the Phone object.

a. Clicking a numbered button on the GUI will enter that number into the display. The new digit will append to what is displayed currently.

b. A clear function is required to erase the display screen.

c. A function to delete the last digit displayed is required.

d. A send function is required. Simulate this by displaying a message (ex: Calling 999999999)

e. An end function is required. Simulate this by displaying Call Ended.

f. A last number recall function is required. This will erase what ever is on the phone display screen and display the last number called instead.

g. Handle the little details such as what functionality is available or not available while in a call or when the call is ended.

h. No crashes please! Be sure to handle or avoid exceptions.

Deliverables:

1. Submit your result as a zip containing your project's .java files, other support files such as graphics, sound, etc. Also include an annotated document that demonstrates your fully functioning program with screen captures along with a description of what is happening at each stage of your demonstration. I should be able to follow your screen captures and duplicate the resulting output by running your program on my machine.

2. Be sure that your program runs on a standard machine using only the standard Java JDK 1.7x. That means no extra libraries UNLESS you can package it all into an executable that I can run without adding or installing and additional software on my machine. If you don't know what that means then stick to the basics for now.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91678331
  • Price:- $60

Priced at Now at $60, Verified Solution

Have any Question?


Related Questions in Computer Engineering

For the following c statement what is the corresponding

For the following C statement, what is the corresponding RISC-V assembly code? Assume that the variables f, g, h, and i are given and could be considered integers as declared in a C program. Use a minimal number of assem ...

If we compare and contrast the four market structures it is

If we compare and contrast the four market structures, it is evident that one market structure is most practiced and evident in the United States. It is the one that promotes and strives on competition. It is the one tha ...

Question suppose we have two binary search trees b1 and b2

Question : Suppose we have two binary search trees B 1 and B 2 Give an algorithm to merge B 1 and B 2 into a single binary search tree, and runs in time linear in the sum of the sizes of the two trees. Give good justific ...

1 what is a domain name in the context of internet what

1. What is a domain name in the context of Internet? What is the procedure to get a domain name and link it to an Internet Protocol (IP) address? Use an example.

Search the web for two or more sites that discuss the

Search the web for two or more sites that discuss the ongoing responsibilities of security manager. What other components of security management, as outlined by this model, can be adapted for use in the security manageme ...

Explain how amazon and walmart companies use information

Explain how Amazon and Walmart companies use Information and Communication Technologies (ICT) in their competitive strategies. Highlight the differences in their use of ICT.

What is a survey and pros and cons of using this method to

What is a Survey and pros and cons of using this method to collect data are? Have you done a survey? How successful were your results?

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Section 26 in the smith textbook elementary information

Section 2.6 in the Smith textbook ( elementary information security 2nd edition) offers a list of 6 high-level security controls. Pick two of them and describe how you personally experience those controls in use on perso ...

Espn pays the nfl 11 billion per year for 8 yrs for the

ESPN pays the NFL $1.1 Billion per year for 8 yrs for the right to exclusively televise football. What is the NPV of the investment if the parent Disney CO has an opportunity interest rate that is equal to the cost of ca ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As