Question: 13. (a) Generate the output for the following java applet code. (4 marks) import java.applet. Applet; import java.awt.Color; import java.awt.Graphics; public class MyApplet extends Applet

13. (a) Generate the output for the following java applet code. (4 marks) import java.applet. Applet; import java.awt.Color; import java.awt.Graphics; public class MyApplet extends Applet { @Override public void paint (Graphics g) { g.setColor (Color.red); g.drawstring("This is rectangle shape fill with red color!", 0, 10); g.drawRect(0, 20, 130, 50); g.fillRect(0, 20, 130, 50); } } (b) (11 marks) Write a Java Applet program that will read 2 integers from user input. Then, calculate the total number and display whether the remainder of this number will be 0 if divide by 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
