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, 22.06.2019 10:00
Which of the following is true of operations within a spreadsheet program’s built-in functions? a. operations within parentheses, then multiplication and division, and then addition and subtraction are computed. b. operations within parentheses, then addition and subtraction, and then multiplication and division are computed. c. multiplication and division, then addition and subtraction, and then operations within parentheses are computed. d. addition and subtraction, then multiplication and division, and then operations within parentheses are computed
Answers: 2
question
Computers and Technology, 22.06.2019 19:00
The fourth generation of computers emerged between 1970s and 1980s. which technological advancement brought about this generation of computers? which computer architecture was used most in this generation?
Answers: 3
question
Computers and Technology, 23.06.2019 12:10
2. fabulously fit offers memberships for$35 per month plus a $50 enrollmentfee. the fitness studio offersmemberships for $40 per month plus a$35 enrollment fee. in how many monthswill the fitness clubs cost the same? what will the cost be?
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
You can apply several different worksheet themes from which tab?
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
Computers and Technology, 30.11.2021 21:10
question
Mathematics, 30.11.2021 21:10
Questions on the website: 13722363