Assume that an int variable status indicates the current state of an automobile according to the following

Question:

Assume that an int variable status indicates the current state of an automobile according to the following table. Write a complete program to input the 8-bits of status and for each bit, output the appropriate message starting with bit 0 . Note that a loop does not need to be used.


Bit Message

0 Low oil pressure

1 Low fuel

2 Low tire pressure

3 Low battery voltage

4 Low washer fluid

5 Dirty air filter

6 Dirty cabin filter

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: