You will design a class box that defines a box on a floor a


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.

Please don't copy and paste from Google. I need in your own words. Prove your claim.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: You will design a class box that defines a box on a floor a
Reference No:- TGS0954902

Expected delivery within 24 Hours