Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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

More Books

Students also viewed these Databases questions