Answer: C5₁₆ ⇔ 11000101₂ ⇔ 197⏨
Explanation: 11000101 is a binary number
it's equivalent decimal number is
1x2⁷+ 1x2⁶+0x2⁵ + 0x2⁴+0x2³+1x2²+0x2¹+1x2⁰ = 128+64+4+1 = 197
Hexadecimal system has equivalents in decimal system
0 ⇔0
1 ⇔ 1
2 ⇔ 2
3 ⇔ 3
4 ⇔ 4
5 ⇔ 5
6 ⇔ 6
7 ⇔ 7
8 ⇔ 8
9 ⇔ 9
10 ⇔A
11 ⇔B
12 ⇔C
13 ⇔D
14 ⇔E
15 ⇔F
197 ⇔??
To convert this decimal number in a hexadecimal number we have to divide it by 16
197/16
12,...
the quotient without the decimal part is multiplied by 16 and subtracted from the number
12x16 = 192
197-192 = 5
Then this number can be expressed as 12x16¹ + 5x16⁰ = 192 + 5 = 197
But in the hexadecimal system there are not digits > 9 , so 12 ⇔ C
197⏨ = Cx16¹ + 5x16⁰ = C5₁₆
Answer: C5₁₆ ⇔ 11000101₂ ⇔ 197⏨
When a soccer ball is kicked the resulting motion of the ball is determined by Newton's laws of motion. From Newton's first law, we know that the moving ball will stay in motion in a straight line unless acted on by external forces. A force may be thought of as a push or pull in a specific direction; a force is a vector quantity. If the initial velocity and direction are known, and we can determine the magnitude and direction of all the forces on the ball, then we can predict the flight path using Newton's laws.
In the program While loop is used. In the while loop it divides the userNum by 2 in each iteration and prints the value of userNum. The inputs and corresponding outputs are written in the explanation.
<u>Explanation</u>:
In the while loop it divides the userNum by 2 in each iteration and prints the value of userNum.
import java.util.Scanner;
public class NonNegativeLooper
public static void main (String [] args)
Scanner scnr = new Scanner(System.in);
//initialize the userNum with 9
int userNum = 9;
//Repeat the loop until the userNum is not negative
while (userNum>=0)
System.out.println(Body);
//Prompt the user to enter the usrNum again
userNum = scnr.nextInt();
System.out.println(Done.);
return;