Question: State what (8051) C data type would be best suited for the following variables (e.g. signed int, unsigned char, array of char, float, bit, etc.).

State what (8051) C data type would be best suited for the following variables (e.g. signed int, unsigned char, array of char, float, bit, etc.). Use the smallest suitable data type. (a) the number of days in the current month (never negative). (b) the battery voltage. (c) the number of people on a (reasonably sized) bus (never negative). (d) the number of people on a jumbo jet (never negative). (e) a welcome message for an electronic moving sign. (f) an indicator that the the engine is running. (g) the forecast high temperatures (Fahrenheit) for the next seven days (may be negative). (h) your score in a game of Pinochle (as per Hoyle, may be negative).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!