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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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