[Solved] An Applet

30 $

SKU: [Solved] An Applet Category: Tag:

Java Programming

Plz write in Java

Program 1

1. Create an applet to draw a digit using the method fillRect of the classGraphics. For instance, if the input is 4, the applet will display the digit 4, asshown in Figure 12-27.

Program 2

2. Write a recursive method that takes as a parameter a nonnegative integer andgenerates the following pattern of stars. If the nonnegative integer is 4, thenthe pattern generated is:********************Also, write a program that prompts the user to enter the number of lines inthe pattern and uses the recursive method to generate the pattern. Forexample, specifying the number of lines to be 4 generates the precedingpattern.


There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] An Applet
30 $