[Solved] An Applet

$25

File Name: An_Applet.zip
File Size: 84.78 KB

SKU: [Solved] An Applet Category: Tag:
5/5 - (1 vote)

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.

Reviews

There are no reviews yet.

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

Shopping Cart
[Solved] An Applet
$25