class Box { float width; float breadth; float height; float volume; float addarea; float angle; float scaleit; Box(float w,float b, float h) { width = w; breadth = b; height = h; volume = w*b*h; addarea = w*h; if (h > 0) { angle = 180.0*(atan(w/h))/PI; } else{ angle = 0; print ("start error"); } } void Setscale ( float sc) { scaleit = sc; } float Getwidth() { return width; } float Getbreadth(){ return breadth; } float Getheight() { return height; } float Getvolume(){ return volume; } float Getaddarea(){ return addarea; } float Getangle(){ return angle; } void zero() { width = 0; breadth = 0; height = 40; volume = 0; addarea = 0; angle = 90; } void drawbox() { box(width*scaleit, breadth*scaleit, height*scaleit); } }