Questions by bjenkins - Page 38
The GraphObject class provides the following methods that you may use in your classes:GraphObject(int imageID, int startX, int startY, DIRECTION startDirection, float size = 1.0,unsigned int depth = 0);void setVisible(bool shouldIDisplay);void getX() const;void getY() const;void moveTo(int x, int y);DIRECTION getDirection() const; // Directions: up, down, left, right void setDirection(DIRECTION d); // Directions: up, down, left, rightYou may use any of these methods in your derived classes, but you must not use anyother methods found inside of GraphObject in your other classes (even if they are publicin our class). You must not redefine any of these methods in your derived classes sincethey are not defined as virtual in our base class.GraphObject(int imageID,int startX,int startY,DIRECTION startDirection,float size = 1.0,25unsigned int depth = 0)When you construct a new GraphObject, you must specify the following parameters:1. An imageID that indicates what graphical image (aka sprite) our graphics engineshould display on the screen. One of the following IDs, found in GameConstants.h, MUST be passed in for the imageID value:IID_PLAYER // for the IcemanIID_PROTESTER // a regular protesterIID_HARD_CORE_PROTESTER // a hardcore protesterIID_WATER_SPURT // for a squirt of water from the IcemanIID_BOULDERIID_BARREL // a barrel of oilIID_ICE // a 1x1 square of iceIID_GOLD // a gold nuggetIID_SONAR // a sonar kitIID_WATER_POOL // a water pool to refill the squirt gun
Supplement Chapter 7 Problem 7:1SSusie Carmicles plant was designed to produce 8,000 screwdrivers per day but is limited to making 5,000 screwdrivers per day because of the time needed to change equipment between styles of screwdrivers. What is the utilization?For the past month, the plant which has an effective capacity of 6,300, has only made 3,900 screwdrivers per day because of material delay, employee absences, and other problems. What is its efficiency?If a plant has an effective capacity of 6,200 and an efficiency of 86%, what is the actual (planned) output?Material delays have routinely limited production of household sinks to 300 units per day. If the plant efficiency is 85%, what is the effective capacity?