Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

int a = 20; float b = -9.37294; char c[] = \"The 15th week!\"; printf(\"%+d \\ n

ID: 2083536 • Letter: I

Question

int a = 20; float b = -9.37294; char c[] = "The 15th week!"; printf("%+d n%f n%s n", a, b, c); int a = 20; float b = -9.31729; char c[] = "The 15th week!"; printf("%04d n%.2f n%.8s n", a, b, c); int a = 20, b = 5, c = 7; if (a & b) printf("True n%d n", c 2); unsigned char a = 20, b = 12; unsigned char c = a^Tilde b; printf("c = %02X ", c); What's the preferred c data types of the following data items for embedded systems? Weight of one newborn baby in ounces Distance between two U.S. cities in miles High temperature change over yesterday in Fahrenheit degrees Time traveled by space craft voyager 1 in seconds

Explanation / Answer

1. The datatype for weight in ounces is 'float'

2.  The datatype for distance between two cities is 'float'

3. The datatype for high temperature change is in float

4. The datatype for time travelled by voyager1 in seconds is 'double'