Integer and Mod Division (50 points)
Write an applet which will allow the user to input a dividend and divisor.
Both must be of type integer. Find the quotient and remainder of the data.
If the divisor is 7 and dividend is 234 then output your result in the following manner.
7|234 = 33 R 3
Output the vertical part of the division symbol with ASCII value 124 and
the horizontal part with ASCII value 95. Here is how you can output
one of these symbols in an applet :
Result.setText(" "+( char ) 95+" ");
- Document your applet. Include your Name, Date, Project#, and a
description of the project.
- Input the data with the TextField class
- Activate the calculation with the Button class.
- Output the dividend, divisor, quotient and remainder with the TextArea class and setText method.
Sample Output for Project29.java