
Concept explainers
Your function should use polyfit to determine the parameters of the boundary lines (assumed linear). The endpoints of the lines are noted or the graph. You should NOT calculate the slopes and intercepts manually.
You are part of a team designing a game to hit a target A “gun” will fire a short pulse of light at a light-sensitive screen, and the coordinates of the location where the pulse hits the screen will be captured in the variables X (horizontal) and Y (vertical). The values in X and Y will be between –4 and 4 unless the player misses the screen altogether, in which case both X and Y contain –99. The software and hardware to accomplish all of the above are being designed by more experienced team members.
Your task is to write a function named Classify that returns a text string indicating where on the target the light pulse hit as well as a numeric score.
As shown on the graph, the text string should contain either “Bullseye,” “Close,” “Hit,” or “Miss.” If the player missed the screen altogether, the text string should contain “Total Miss.” If the coordinates sent to the function lie exactly on a boundary, it should be classified with the area farther from the center.
The numeric score should be set according to the following list:
Bulseye: | 4 |
Close: | 2 |
Hit: | 1 |
Miss: | 0 |
Total Miss: | –1 |
Remember that a circle can be defined by
where R is the radius or the circle.

Want to see the full answer?
Check out a sample textbook solution
Chapter 18 Solutions
EBK THINKING LIKE AN ENGINEER
- The 120 kg wheel has a radius of gyration of 0.7 m. A force P with a magnitude of 50 N is applied at the edge of the wheel as seen in the diagram. The coefficient of static friction is 0.3, and the coefficient of kinetic friction is 0.25. Find the acceleration and angular acceleration of the wheel.arrow_forwardAuto Controls Using MATLAB , find the magnitude and phase plot of the compensators NO COPIED SOLUTIONSarrow_forward4-81 The corner shown in Figure P4-81 is initially uniform at 300°C and then suddenly exposed to a convection environment at 50°C with h 60 W/m². °C. Assume the = 2 solid has the properties of fireclay brick. Examine nodes 1, 2, 3, 4, and 5 and deter- mine the maximum time increment which may be used for a transient numerical calculation. Figure P4-81 1 2 3 4 1 cm 5 6 1 cm 2 cm h, T + 2 cmarrow_forward
- Auto Controls A union feedback control system has the following open loop transfer function where k>0 is a variable proportional gain i. for K = 1 , derive the exact magnitude and phase expressions of G(jw). ii) for K = 1 , identify the gaincross-over frequency (Wgc) [where IG(jo))| 1] and phase cross-overfrequency [where <G(jw) = - 180]. You can use MATLAB command "margin" to obtain there quantities. iii) Calculate gain margin (in dB) and phase margin (in degrees) ·State whether the closed-loop is stable for K = 1 and briefly justify your answer based on the margin . (Gain marginPhase margin) iv. what happens to the gain margin and Phase margin when you increase the value of K?you You can use for loop in MATLAB to check that.Helpful matlab commands : if, bode, margin, rlocus NO COPIED SOLUTIONSarrow_forwardAuto Controls Hand sketch the root Focus of the following transfer function How many asymptotes are there ?what are the angles of the asymptotes?Does the system remain stable for all values of K NO COPIED SOLUTIONSarrow_forward-400" 150" in Datum 80" 90" -280"arrow_forward
- 7) Please draw the front, top and side view for the following object. Please cross this line outarrow_forwardA 10-kg box is pulled along P,Na rough surface by a force P, as shown in thefigure. The pulling force linearly increaseswith time, while the particle is motionless att = 0s untilit reaches a maximum force of100 Nattimet = 4s. If the ground has staticand kinetic friction coefficients of u, = 0.6 andHU, = 0.4 respectively, determine the velocityof the A 1 0 - kg box is pulled along P , N a rough surface by a force P , as shown in the figure. The pulling force linearly increases with time, while the particle is motionless at t = 0 s untilit reaches a maximum force of 1 0 0 Nattimet = 4 s . If the ground has static and kinetic friction coefficients of u , = 0 . 6 and HU , = 0 . 4 respectively, determine the velocity of the particle att = 4 s .arrow_forwardCalculate the speed of the driven member with the following conditions: Diameter of the motor pulley: 4 in Diameter of the driven pulley: 12 in Speed of the motor pulley: 1800 rpmarrow_forward
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY





