subject

Create a program in c which accepts user input of a decimal number in the range of 1 -100. each binary bit of this number will represent the on/off state of a toggle switch.
write a function(s) that will print 2 lines based on number input by user: line 1- print switch numbers (1-7); line 2- print the "on" or "off" state for each switch (assume 1 = on).

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:30
Norder to receive financial aid at his vocational school, mario must fill out the fafsa. the fafsa is a form that must be completed to determine . in order to complete a fafsa, you must submit . the fafsa can students obtain
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 24.06.2019 00:50
Which of the following is not a key player in the sale of travel products?
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
The footer area of a web page generally houses which website feature? terms of use web page content business name or title menu headings
Answers: 1
You know the right answer?
Create a program in c which accepts user input of a decimal number in the range of 1 -100. each bina...
Questions
question
History, 02.12.2021 21:10
Questions on the website: 13722363