SlideShare a Scribd company logo
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.

More Related Content

DOCX
This assignment has two parts. The first part requires you to cr.docx
PDF
Company Call System
PPT
Devry cis-170-c-i lab-4-of-7-functions
PPT
Devry cis-170-c-i lab-4-of-7-functions
DOCX
Java practical
PPTX
Phonebook project in C
PDF
phonebook-170502105942 (1).pdf
PDF
Telephone directory using c language
This assignment has two parts. The first part requires you to cr.docx
Company Call System
Devry cis-170-c-i lab-4-of-7-functions
Devry cis-170-c-i lab-4-of-7-functions
Java practical
Phonebook project in C
phonebook-170502105942 (1).pdf
Telephone directory using c language

Similar to Create two Java classes Phone.java and PhoneGUI.java. Phone.java wi.docx (20)

PPT
Tropo eComm 2009 Tutorial
DOCX
Introduction To Programming IP5
PPTX
A c program of Phonebook application
PDF
cminiproject-151115084708-lva1-app6892.pdf
DOCX
IT 511 Final Project Guidelines and Grading Guide Ov.docx
PPTX
A142092 kim say chun
ODT
Java practical
PDF
Harish resume
PDF
Harish resume
DOCX
C s investigatory project on telephone directory
PDF
Assignment 2
PPTX
project presentation.pptx
DOCX
New microsoft office word document
PPTX
CS50 2022 - Lecture 0 - Scratch.pptx
PPTX
CS50 2022 - Lecture 0 - Scratch.pptx
DOCX
HARISH_Resume_Embedded_SW
DOC
Test cases for testing mobile phone
DOCX
Latihan Java menggunakan Bluej-SUPPORT SYSTEM.docx
PPTX
Java practice programs for beginners
PDF
Advanced Java - Practical File
Tropo eComm 2009 Tutorial
Introduction To Programming IP5
A c program of Phonebook application
cminiproject-151115084708-lva1-app6892.pdf
IT 511 Final Project Guidelines and Grading Guide Ov.docx
A142092 kim say chun
Java practical
Harish resume
Harish resume
C s investigatory project on telephone directory
Assignment 2
project presentation.pptx
New microsoft office word document
CS50 2022 - Lecture 0 - Scratch.pptx
CS50 2022 - Lecture 0 - Scratch.pptx
HARISH_Resume_Embedded_SW
Test cases for testing mobile phone
Latihan Java menggunakan Bluej-SUPPORT SYSTEM.docx
Java practice programs for beginners
Advanced Java - Practical File

More from taminklsperaw (20)

DOCX
Decision Making in Collegial Courts  Please respond to the followi.docx
DOCX
Debate ItAbsorption costing and other methods make it possible.docx
DOCX
DB #1, involves your reading Streaming Dreams” (2012). Therein, Joh.docx
DOCX
Data Warehouses and Network Infrastructure Please respond to the f.docx
DOCX
Data Warehouses and Network InfrastructureImagine that you are a.docx
DOCX
Data mining does not stand alone in businesses. It is unusually part.docx
DOCX
David Freeman argues in Messy Desk Means Something’s Getting Do.docx
DOCX
Database RetrievalThe goal of this assignment is to locate and use.docx
DOCX
Data and Information  Please respond to the followingAnalyze the.docx
DOCX
Data Analysis—Small Group DiscussionAs a nurse engaged in evidence.docx
DOCX
Darr writes, To transform the organization so that its culture is .docx
DOCX
Cyberwarfare has been in the mainstream discussion of cybersecurity .docx
DOCX
Cut and paste a chart from the web explaining the trade balance betw.docx
DOCX
CW 1 Car Industry and AIby Victoria StephensonSubmission.docx
DOCX
Cybersecurity Organization policy135 words with 2 references per.docx
DOCX
Currently, most developed countries use a variation of Keyness poli.docx
DOCX
Currents are important in marine ecosystems because they redistribut.docx
DOCX
Current Issue Critical ThinkingRead the following excerp.docx
DOCX
Daoism WorksheetComplete the following questions in detail. Answ.docx
DOCX
DAOISM & CONFUCIANISMWEEK 4Cosmogony - Origin of the Universe.docx
Decision Making in Collegial Courts  Please respond to the followi.docx
Debate ItAbsorption costing and other methods make it possible.docx
DB #1, involves your reading Streaming Dreams” (2012). Therein, Joh.docx
Data Warehouses and Network Infrastructure Please respond to the f.docx
Data Warehouses and Network InfrastructureImagine that you are a.docx
Data mining does not stand alone in businesses. It is unusually part.docx
David Freeman argues in Messy Desk Means Something’s Getting Do.docx
Database RetrievalThe goal of this assignment is to locate and use.docx
Data and Information  Please respond to the followingAnalyze the.docx
Data Analysis—Small Group DiscussionAs a nurse engaged in evidence.docx
Darr writes, To transform the organization so that its culture is .docx
Cyberwarfare has been in the mainstream discussion of cybersecurity .docx
Cut and paste a chart from the web explaining the trade balance betw.docx
CW 1 Car Industry and AIby Victoria StephensonSubmission.docx
Cybersecurity Organization policy135 words with 2 references per.docx
Currently, most developed countries use a variation of Keyness poli.docx
Currents are important in marine ecosystems because they redistribut.docx
Current Issue Critical ThinkingRead the following excerp.docx
Daoism WorksheetComplete the following questions in detail. Answ.docx
DAOISM & CONFUCIANISMWEEK 4Cosmogony - Origin of the Universe.docx

Recently uploaded (20)

PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
master seminar digital applications in india
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Cell Types and Its function , kingdom of life
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Classroom Observation Tools for Teachers
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Cell Structure & Organelles in detailed.
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
human mycosis Human fungal infections are called human mycosis..pptx
master seminar digital applications in india
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Final Presentation General Medicine 03-08-2024.pptx
Supply Chain Operations Speaking Notes -ICLT Program
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
O5-L3 Freight Transport Ops (International) V1.pdf
O7-L3 Supply Chain Operations - ICLT Program
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Pharma ospi slides which help in ospi learning
Cell Types and Its function , kingdom of life
Microbial diseases, their pathogenesis and prophylaxis
Anesthesia in Laparoscopic Surgery in India
Classroom Observation Tools for Teachers
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPH.pptx obstetrics and gynecology in nursing
Cell Structure & Organelles in detailed.
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
VCE English Exam - Section C Student Revision Booklet

Create two Java classes Phone.java and PhoneGUI.java. Phone.java wi.docx

  • 1. 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
  • 2. 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.