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

  What is the asymptotic time complexity of algorithm

Suppose an algorithm has two parts. The first part involves sorting and takes (10 nlog n) steps, where n is the input size. What is the asymptotic time complexity of the overall algorithm, in Big Theta notation?

  What is war driving or war flying

Are you more at risk using a wireless connection via laptop or a connection via a smart phone?

  Design a step by step algorithm

Design a step by step algorithm, keeping in mind the limitations of assembly language, to determine the physical address of the 3rd byte of the data segment variable LIST in the following code example.

  Display to the screen the first 20 numbers

Design an algorithm that will display to the screen the first 20 numbers, with their squares and cubes, as follows: Number Square Cube

  Define the topic is e-business and e-commerce security

The Topic is E-business/e-commerce security, Graphics are allowed but do not apply for the minimum page count.

  Partial and total functions

For each of the following function de?nitions, give the graph of the function. Say whether this is a partial function or a total function on the integers. If the function is partial, say where the function is de?ned and  unde?ned.

  Design a database design a database using the following info

Design a Database Design a database using the following information. Using Microsoft Visio 2013, create a complete E-R Diagram in Crow's Foot notation (including entity names, attributes, primary keys and foreign keys) that can be implemented, and th..

  How many leaves does the tree have

Label and find the number of edges, degrees and vertex in the above digraph and find the corresponding matrix of the digraph above - How many leaves does the tree have?

  Produce a requirements specification document

Produce a requirements specification document

  Research online sources best video gaming monitor

Research online sources (e.g., Amazon, eBay, ect.), for video display monitor and card combinations to satisfy a rich gaming experience in your home. Select the combination that your believe is of greatest value when considering the cost of each ..

  Evaluating a new hands-free input device

You have been tasked with evaluating a new hands-free input device, the "chair mouse", which the user manipulates by shifting his/her weight in a specially instrumented chair.

  Explain how erp meets the needs of the stakeholders

Explain how ERP meets the needs of the Stakeholders

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