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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started