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, 24.06.2019 12:00
An npn transistor is correctly biased and turned on if the a. base is negative. b. collector is negative. c. collector is positive with respect to the emitter and negative with respect to the base. d. collector is the most positive lead followed by the base.
Answers: 1
question
Computers and Technology, 24.06.2019 15:50
Andy would like to create a bulleted list. how should he do this? andy should click on the bullet icon or select the bullet option from the menu and then type the list. andy should press the shift key and the 8 key at the beginning of each line of text. andy should type the text and then click on the bullet command. andy should press return and the bullets will automatically
Answers: 2
question
Computers and Technology, 25.06.2019 04:50
Your program should prompt the user for the dimensions of the two squares matrices, making sure that the user input is greater than or equal to 4.[ yes, an example would be a4x4matrix]2.if the above is not met, prompt the user for a new value.3.now generate random integernumbers to fill both matrices.4.display these two matrices on the screen.5.multiply the two matrices and display the result on the scre
Answers: 2
question
Computers and Technology, 25.06.2019 19:00
Abusiness wants to centralize its administrative tasks. at the same time, it wants the existing systems to manage and sustain the growing amount of work in a capable manner. which technology will the business meet its goals?
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
Mathematics, 02.09.2020 19:01