Computer Science, asked by ameedwaleed2001, 1 month ago

Question #1:
(10 Point)
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 I to 9), if R is equal or less than 4 using left rotation. Otherwise, using right rotation.
6- Exit.
Note:
Print out a menu with numbered options.
The program should return to the menu after execution the option.
The user can be end the program by choosing the exit option [6] in the menu.
If the user input a wrong option, the program must display message that asks the
user to choose only a valid option form [1-6] and display the menu again.

Answers

Answered by ansarialtab61
1

Answer:

please type question again

Answered by himanshirawat8595sip
0

Answer:

yes

Explanation:

yes plz type again please

Similar questions