Question: PLEASE EDIT THE GIVEN CODE ONLY In many engineering applications your sensor value or control command will need to be restricted from going above a


PLEASE EDIT THE GIVEN CODE ONLY
In many engineering applications your sensor value or control command will need to be restricted from going above a certain value. In this case, make sure that an integer value passed to your method doesn't go above 5. Keeping a sensor or control value bounded like this is sometimes (often?) referred to as "thresholding" or "saturating" or "limiting". Regardless of what you call it, it's a super common thing to do. When the test runs you should see this: Resources: - If (conditionals) in Ch 9 of Java Programming for Engineers. - If (conditionals) in Ch 5 of of Sharan's book, Beginning Java 8 Fundamentals. - Making decisions at GeeksForGeeks. - Decison-making for Java with Linked-in Learning (@YorkU). If you wish to recreate the test on your own computer, here are the two key files: - prelabD.java (student template) - MyTest.java (JUnit test file) t prelabD.java D
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
