You will Design a class box that defines a box on a floor. A box has a number an
ID: 3550675 • Letter: Y
Question
You will Design a class box that defines a box on a floor. A box has a number and an (a,b) location where a and b are numbers between -5, and 5. The key member function is plot, which plots the box. THen design the class floor that contains a number of equally spaces boxes. An object of type box stores the first box, and the last box( which can be anywhere on the screen), and the number of boxes on the floor. The floor::plot function needs to make the intermediate box objects on the fly... use these classes in the graphics program in which the uses clicks with the mouse on the locations of the first and last box, then enters the box numbers of the first and last box, and the number of boxes on the floor. Then the entire floor is plotted as well.
Explanation / Answer
hi this is the original program in java to create A box has a number and an (a,b) location where a and b are numbers between -5, and 5. The key member function is plot, which plots the box. THen design the class floor that contains a number of equally spaces boxes. An object of type box stores the first box, and the last box( which can be anywhere on the screen), and the number of boxes on the floor. The floor::plot function needs to make the intermediate box objects on the fly... use these classes in the graphics program in which the uses clicks with the mouse on the locations of the first and last box, l
then enters the box numbers of the first and last box, and the number of boxes on the floor. Then the entire floor is plotted as well
i have done to much efforts for this programes please rate**************************************
*********************************************************************************************
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.