Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(2) The imprecision of floating-point arithmetic can have disastrous consequences if not understood. On Feb 25 1991, a Scud missile struck the American army barrack:s

image text in transcribed

(2) The imprecision of floating-point arithmetic can have disastrous consequences if not understood. On Feb 25 1991, a Scud missile struck the American army barrack:s in Dharan killing 28, even though the barracks were defended by a Patfiot missile battery. The Patriot missile failed to intercept the Scud because its internal clock implemented as a counter that incremented every 0.1 second, had round-off. To determine the time in seconds, the value of the counter (the count) is multiplied by a 24 bit quantity that represents the fractional binary approximation to 1/10 (the leading bit plus the first 23 bits to the right of the binary point) (http://ta.twi.tudelft.nl/users/vuik/wi211/disasters.html) (a) What is the binary representation of 0.1? What did the Patriot's computer approximate as 0.1 (call this r)? (b) Let the Patriot's approximation of 0.1 be r. What is the binary representation of -0.11? (c) What is the approximate decimal value of | 0.1 ? (d) The clock starts at zero when the system is first powered-up and keeps counting up from there. In this case, the system had been running for 100 hours. What was the difference between time computed by the Patriot software and the actual time? (e) The system predicts where an incoming missile will appear based on its velocity and the time of last radar sighting. Given that a Scud travels at 2000 m/s, how far off was the prediction? (2) The imprecision of floating-point arithmetic can have disastrous consequences if not understood. On Feb 25 1991, a Scud missile struck the American army barrack:s in Dharan killing 28, even though the barracks were defended by a Patfiot missile battery. The Patriot missile failed to intercept the Scud because its internal clock implemented as a counter that incremented every 0.1 second, had round-off. To determine the time in seconds, the value of the counter (the count) is multiplied by a 24 bit quantity that represents the fractional binary approximation to 1/10 (the leading bit plus the first 23 bits to the right of the binary point) (http://ta.twi.tudelft.nl/users/vuik/wi211/disasters.html) (a) What is the binary representation of 0.1? What did the Patriot's computer approximate as 0.1 (call this r)? (b) Let the Patriot's approximation of 0.1 be r. What is the binary representation of -0.11? (c) What is the approximate decimal value of | 0.1 ? (d) The clock starts at zero when the system is first powered-up and keeps counting up from there. In this case, the system had been running for 100 hours. What was the difference between time computed by the Patriot software and the actual time? (e) The system predicts where an incoming missile will appear based on its velocity and the time of last radar sighting. Given that a Scud travels at 2000 m/s, how far off was the prediction

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions