Question: Cannot take in the decimal numbers through a keyboard, has to be like: Void main(void) { Int16 x = 0x4000; // is .5 in q15

 Cannot take in the decimal numbers through a keyboard, has to
Cannot take in the decimal numbers through a keyboard, has to be like:
Void main(void)
{
Int16 x = 0x4000; // is .5 in q15
And then you put in the rest and then do math i think

10. (10 Points) Write a complete C language program that uses O15 arithmetic to compute the sum of the decimal numbers -1.0,-0.5, 0.5, and 0.5, and prints out the result as a floating point number (that is the program will print out "Sum--0.5" assuming that it computes the correct value). a. b. What string would your program print out? Explain your

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!