Task: as a computer graphics expert, you are approached by an

  Task: As a computer graphics  expert, you are approached by an architect with a lucrative contract to  draw a spiral staircase that is customizable with different parameters.  You then notice that the requested spiral staircase looks very similar  to that in Exercise 6.10 (Page 217) of the textbook. Here are the  architect’s requirements: Java program file is to be named  “Stairs.java”. The program should be able to produce a data file that  can be viewed using HLines.java in Chapter 6 or Painter.java and  ZBuf.java in Chapter 7 and looks VERY similar to the one in the book.  There should be no gap between the stairs and the central cylinder A  sample data file called “stairs.dat” may be downloaded from eLearning  for you to view it in action. You can run the compiled Painter.java,  ZBuf.java, or HLines.iava and then load stairs.dat The Stairs.java  program should take 3 command-line arguments for the three customizable  parameters. In other words, after compiling your program, you may run it  by typing the following java Stairs 25 15 stairs.dat where 25 is the  number of stairs, 15 is the rotation degree between every two  consecutive stairs, and stairs.dat is the output data file   

 

Task: As a computer graphics expert, you are approached by an architect with a lucrative contract to draw a spiral staircase that is customizable with different parameters. You then notice that the requested spiral staircase looks very similar to that in Exercise 6.10 (Page 217) of the textbook. Here are the architects requirements: Java program file is to be named Stairs.java. The program should be able to produce a data file that can be viewed using HLines.java in Chapter 6 or Painter.java and ZBuf.java in Chapter 7 and looks VERY similar to the one in the book. There should be no gap between the stairs and the central cylinder A sample data file called stairs.dat may be downloaded from eLearning for you to view it in action. You can run the compiled Painter.java, ZBuf.java, or HLines.iava and then load stairs.dat The Stairs.java program should take 3 command-line arguments for the three customizable parameters. In other words, after compiling your program, you may run it by typing the following java Stairs 25 15 stairs.dat where 25 is the number of stairs, 15 is the rotation degree between every two consecutive stairs, and stairs.dat is the output data file