subject

Using switch statement, write a menu-driven program to accept two integer numbers (first, second) from the user and allow the user to choose one of the following options: 1. Display the binary representation of the first and the second number. 2. Display the sum of all even digits of the second number, 3. Display the sum of prime numbers between the first and the second number. 4. Print “The same” if two numbers have same digits, otherwise print “Not the same” 5. Display the first number after rotating its digits by R. (R is a number generated randomly (from 1 to 9), if R is equal or less than 4 using left rotation. Otherwise, using right rotation. 6. Exit.​

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 15:30
Which function in spreadsheet software can be used to predict future sales or inventory needs?
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. which step can possibly increase the severity of an incident? a. separating sensitive data from non-sensitive data b. immediately spreading the news about the incident response plan c. installing new hard disks d. increasing access controls
Answers: 2
question
Computers and Technology, 23.06.2019 23:30
Match the following errors with their definitions. a. #name b. #value c. #ref d. 1. when a formula produces output that is too lengthy to fit in the spreadsheet cell 2. when you enter an invalid cell reference in a formula 3. when you type text in cells that accept numeric data 4. when you type in a cell reference that doesn’t exist
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
In excel, what happens to the cell contents when you click and drag a cell into multiple cells?
Answers: 1
You know the right answer?
Using switch statement, write a menu-driven program to accept two integer numbers (first, second) fr...
Questions
question
History, 22.06.2019 17:00
Questions on the website: 13722362