0

Pls guys I have been trying to solve this work this. Can any1 take a look at it and tell me how to go about it? Ansa needed ASAP

n the zip file there is an incomplete program called Hw3.java. Complete the program so that it uses nested for-loops and class constants to draw pictures like these. \ |\ |\ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \| \| \| \ |\ |\ |\ |\ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \| \| \| \| \| \ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \ | \| \| \| \| \| \| \| \| \| \| \| \| \| \| The file Hw3.java contains the following two lines of code that define two class constants (see pages 108-110 of the textbook). public static final int HEIGHT = 6; public static final int WIDTH = 3; Your code should use these two constants to determine the "dimensions" of the picture that it draws (the first picture above has dimensions HEIGHT=6 and WIDTH=3, the second picture has HEIGHT=8 and WIDTH=5, the third picture has HEIGHT=4 and WIDTH=14). Make sure you test your program with several different values for the two class constants, but do not change their names. When I test your program, I will test it by changing the values of the two class constants. My testing program needs your two class constants to have exactly the names used in Hw3.java. Be sure to study the programs in Examples-for-Sections_2.3-2.4.zip. They give you several examples of using a class constant to "scale" a picture. Turn in a zip file called CS123Hw3Surname.zip (where Surname is your last name) containing your version of Hw3.java. This assignment is due Friday, September 21.

18th Sep 2018, 11:31 PM
Kingcharles
Kingcharles - avatar
17 Antworten
0
I don’t really understand this code
19th Sep 2018, 12:05 AM
Kingcharles
Kingcharles - avatar
0
my code is in JAVA
19th Sep 2018, 12:05 AM
Kingcharles
Kingcharles - avatar
0
Thanks
19th Sep 2018, 12:23 AM
Kingcharles
Kingcharles - avatar
0
I am finding it difficult to work it put in JAVA
19th Sep 2018, 12:24 AM
Kingcharles
Kingcharles - avatar
0
I dont have the book. If I did I wouldnt be here asking. I already started the stuff but I can declare the \ key
19th Sep 2018, 1:18 AM
Kingcharles
Kingcharles - avatar
0
I cant declare the \ key
19th Sep 2018, 1:19 AM
Kingcharles
Kingcharles - avatar
0
Thats what I taught but am still trying to get them to fotm the shape above
19th Sep 2018, 1:45 AM
Kingcharles
Kingcharles - avatar
0
I just need u to give me a hint
19th Sep 2018, 1:45 AM
Kingcharles
Kingcharles - avatar
0
Forget about it
19th Sep 2018, 1:49 AM
Kingcharles
Kingcharles - avatar
0
Ina what school did u study in?
20th Sep 2018, 3:40 PM
Kingcharles
Kingcharles - avatar