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 barracks

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 barracks in Dharan killing 28, even though the barracks were defended by a Patriot 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 x)? (b) Let the Patriot's approximation of 0.1 be r. What is the binary representation of -0.1? (c) What is the approximate decimal value of|r -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 barracks in Dharan killing 28, even though the barracks were defended by a Patriot 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 x)? (b) Let the Patriot's approximation of 0.1 be r. What is the binary representation of -0.1? (c) What is the approximate decimal value of|r -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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago