A clear function is required to erase the display screen

Assignment Help Basic Computer Science
Reference no: EM13984578

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.

Reference no: EM13984578

Questions Cloud

The propertys economic service life after tax : Some new production machinery has a first cost of $100,000 and a useful life of 10 years. Its estimated O&M costs are $10,000 the first year, which will increase annually by $4,000. Determine The after-tax cash flows. The property’s economic service ..
Enter the trial balance on a work sheet : Prepare a multiple-step income statement and a retained earnings statement for the year and a classified balance sheet as of November 30, 2002.
Explain your reactions to the legalization of marijuana : Your 5th assignment is to read carefully the reading linked in the Resources box titled "Cannabis and the Brain" and then explain in detail your reactions to the legalization of marijuana (medical or recreational) given its effects on the brain an..
Strategy of automobile repair garage : Identify the mission and strategy of your automobile repair garage. What are the manifestations of the 10 OM decisions at the garage? That is, how is each of the 10 decisions accomplished?
A clear function is required to erase the display screen : 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.
Analyze the elasticity of demand and supply : Identify at least four key points of a relevant economic article from either the Strayer Library or a newspaper - Analyze the dynamics of supply and demand to anticipate market equilibrium.
Difference between inflation and a relative price increase : If the economy is in a recession, what sort of fiscal policy changes would tend to bring it out of recession? Discuss b) What is the difference between inflation and a relative price increase? Explain c). If the inflation rate is 4% and the nominal r..
Reputation for undercutting prices of any competitor : Yummy foods, a gourmet food store, has stores all over the Chicago area. They have a reputation for undercutting prices of any competitor that tries to enter the market until the competitor is driven out of business. Which of the following statements..
Compute the consumers lifetime wealth : A consumer’s income in the current period is y=100, and income in the future period is y’=120. He or she pays lump-sum taxes t=20 in the current period and t’=10 in the future period. The real interest rate is 0.1 or 10% per period. Compute the consu..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  General area of network security is obviously of enormous

The general area of network security is obviously of enormous corporate and national importance. And there's no doubt that intrusion detection and prevention is a principal concern. Lately there have been a number of concerted security attacks on maj..

  Highly competitive business environment

In this highly competitive business environment, businesses are constantly seeking ways to gain traction and understand what is on the minds of current customers and potential customers in order to increase business efficiency. Many companies have..

  Program the control unit for an electronic safe

Program the control unit for an electronic safe. The 8-Segment display and LEDs will show status of the safe

  Paper about the inheritance structures of galaga.

Identify the parent and child classes and describe what each class has for events and data. If you are unfamiliar with Galaga, do a web search on the topic to find some resources.

  Creating the critical path

Create a graphic rendering of the critical path for your project using Visio or its open source alternative software. Note: The graphically depicted solution is not included in the required page length.

  Find the shortest sequence of mips instructions

Find the shortest sequence of MIPS instructions that extracts bits 16 down to 11 from register $t0 and uses the value of this field to replace bits 31 down to 26 in register $t1 without changing the other 26 bits of register $t1.

  What steps can an organization take to reduce these risks

Examine possible risks that can arise when systems are constructed using COTS. What steps can an organization take to reduce these risks?

  Netflix uses chaos monkey to test its service in the cloud

Netflix uses Chaos Monkey to test its service in the cloud. Would such a service be helpful in a more traditional system? Prepare a PowerPoint presentation or a 500 word document that explains how this relates to software architecture from a software..

  Use a truth table to determine whether

Use a truth table to determine whether or not the following argument form is valid. You can  justify  your answer by doing the following: indicate which columns represent the premises and which represent the conclusion;

  Use a computer for multimedia

To use a computer for multimedia (moving video and sound), it is important to maximize the efficiency of the I/O. Assume that the blocks of a movie are stored consecutively on a CD-ROM. Describe the steps used to retrieve the blocks for use by the..

  Type of motherboard impact

In today's computer systems, does the type of motherboard impact the type of CPU and RAM that can be used? Why or why not

  Aes uses the indirect-rijndael algorithm

AES uses the Indirect-Rijndael algorithm  2. packet filter protect networks by blocking packets based on the packets' content

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