Question: Cannot take in the decimal numbers through a keyboard, has to be like: Void main(void) { Int16 x = 0x4000; // is .5 in q15
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
Get step-by-step solutions from verified subject matter experts
