
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
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
- 2. Figure below shows a U-tube manometer open at both ends and containing a column of liquid mercury of length l and specific weight y. Considering a small displacement x of the manometer meniscus from its equilibrium position (or datum), determine the equivalent spring constant associated with the restoring force. Datum Area, Aarrow_forward1. The consequences of a head-on collision of two automobiles can be studied by considering the impact of the automobile on a barrier, as shown in figure below. Construct a mathematical model (i.e., draw the diagram) by considering the masses of the automobile body, engine, transmission, and suspension and the elasticity of the bumpers, radiator, sheet metal body, driveline, and engine mounts.arrow_forward3.) 15.40 – Collar B moves up at constant velocity vB = 1.5 m/s. Rod AB has length = 1.2 m. The incline is at angle = 25°. Compute an expression for the angular velocity of rod AB, ė and the velocity of end A of the rod (✓✓) as a function of v₂,1,0,0. Then compute numerical answers for ȧ & y_ with 0 = 50°.arrow_forward
- 2.) 15.12 The assembly shown consists of the straight rod ABC which passes through and is welded to the grectangular plate DEFH. The assembly rotates about the axis AC with a constant angular velocity of 9 rad/s. Knowing that the motion when viewed from C is counterclockwise, determine the velocity and acceleration of corner F.arrow_forward500 Q3: The attachment shown in Fig.3 is made of 1040 HR. The static force is 30 kN. Specify the weldment (give the pattern, electrode number, type of weld, length of weld, and leg size). Fig. 3 All dimension in mm 30 kN 100 (10 Marks)arrow_forward(read image) (answer given)arrow_forward
- A cylinder and a disk are used as pulleys, as shown in the figure. Using the data given in the figure, if a body of mass m = 3 kg is released from rest after falling a height h 1.5 m, find: a) The velocity of the body. b) The angular velocity of the disk. c) The number of revolutions the cylinder has made. T₁ F Rd = 0.2 m md = 2 kg T T₂1 Rc = 0.4 m mc = 5 kg ☐ m = 3 kgarrow_forward(read image) (answer given)arrow_forward11-5. Compute all the dimensional changes for the steel bar when subjected to the loads shown. The proportional limit of the steel is 230 MPa. 265 kN 100 mm 600 kN 25 mm thickness X Z 600 kN 450 mm E=207×103 MPa; μ= 0.25 265 kNarrow_forward
- T₁ F Rd = 0.2 m md = 2 kg T₂ Tz1 Rc = 0.4 m mc = 5 kg m = 3 kgarrow_forward2. Find a basis of solutions by the Frobenius method. Try to identify the series as expansions of known functions. (x + 2)²y" + (x + 2)y' - y = 0 ; Hint: Let: z = x+2arrow_forward1. Find a power series solution in powers of x. y" - y' + x²y = 0arrow_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





