- Create an applet which lays out a simple mobile phone. Your mobile phone will have the following components:
- a text area for the display of user input
- 10 buttons for digits 0 through 9
- one button for *
- one button for #
- one button for sending out numbers/making a call
- one button for ending a call
- one menu button
Use any mobile phone for a sample layout. The layout manager is your choice as is the use of labels, colors, and button name.
- Only addition operation is implemented in the Rational class. The basic operations have the following definitions:
- Addition:
a/b + c/d = (ad+bc)/db
- Subtraction:
a/b - c/d = (ad-bc)/db
- Multiplication:
a/b * c/d = ac/bd
- Division:
a/b ⁄ c/d = ad/bc
Add three methods to perform the Subtration, Multiplication, and Division operaions. Create an applet to test your program.
Your applet should look and function like this :
- Upon completion, submit hard copy of the following:
- SimplePhoneApplet.java - Your completed implementation for question 1 [3 %]
- Rational.java - Your completed implementation of the class Rational [2 %]
- RationalTesterApplet.java - Your completed implementation of the applet to test the Rational class [3 %]
Notice: You should follow the Code Conventions for the Java Programming Language
in writting your program. Internal program documentation is required and should include the program/module header, usage of descriptive variable names and comments, and proper indentation.