Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please provide clear answers for each of the problem. Please make sure handwriting is legible so I can understand each questions. Thank You 1) Below

please provide clear answers for each of the problem. Please make sure handwriting is legible so I can understand each questions. Thank You image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribedimage text in transcribed

1) Below are 3 different code fragments; assume x is an integer with the value 40 at the start of each code fragment. Determine the output for each code fragment. if (x > 25) if (x > 25) while (x ) x=x*3 else if (x > 0) x=x+5; if(x>0) printf("%d",x); x-x 1; else else x=x-5; x=x-1; printf("%d",x); printf("%d", x) ; 2) Suppose X and Y are both of type int. For the following values of X and Y, what is the value of the Boolean conditions at the top of columns 3 and 4? Answer either true or false in each empty space. Y | (X >= 10 && Y 10 11 Y 100) 100 100 100 10 10 3) Convert the following two binary numbers to their decimal forms. Then, add the two binary numbers to produce a third binary number. Convert the third number to decimal and confirm that the result of your binary addition is the same as decimal addition. 0 1 1 0 0 01 1 - 0 0 0 1 0 0 1 1

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

Databases Illuminated

Authors: Catherine M. Ricardo, Susan D. Urban, Karen C. Davis

4th Edition

1284231585, 978-1284231588

More Books

Students also viewed these Databases questions

Question

Explain walter's model of dividend policy.

Answered: 1 week ago