1. Engineering
2. Computer Science
3. c programming language 4 given two integers x and y...

# Question: c programming language 4 given two integers x and y...

###### Question details

C Programming language

4. Given two integers x and y, find the larger value of them and assign the larger one to z. Write the statement in C using if …else...

5. Loops: given N integers, find the sum of them. Write the code using a for loop.

6. Loops: given N integers, find the sum of them. Write the code using a while loop.

Before working on the following problems, you need read the Chapter 2 of the B.O. Textbook (“Computer Systems: A programmer’s perspective, 3rd edition). No calculators.

7. Number representation:

What are the binary and hex representations of the decimal number 279? Show your work on how to get them.

8. Complete the following number conversions (all numbers are unsigned)

(1010101)2=(                   )16=(                 )10

(F4)16=(                            )2=(                 )10

2019=(                            )2=(                 )16

###### Solution by an expert tutor 