Question: You are asked to write a program for Miscellaneous Operations Company. The program should allow the user to continuously execute the following operations until the
You are asked to write a program for Miscellaneous Operations Company. The program should allow the user to continuously execute the following operations until the user decides to quit. Separate functions must be used to implement individual operations, and user-friendly instructions and results should be properly displayed. The operation choices are as follows:
1 The user enters two positive integers. The program will display whether the first integer can be evenly divisible by the second integer.
2. The user enters two non-negative integers. The program displays the result of the first integer to the power of the second.
3. The user enters the bank balance and the interest rate. The program calculates the interest and updates the balance.
4. The program randomly generates a number between 5 and 20 and the user makes a guess. The user has up to three chances if the guess was incorrect, and the program will display meaningful messages after each guess.
5. The user enters three numbers and the program shifts them, e.g., if originally n1=10, n2=20, n3=30, after the operation, n1=30, n2=10, n3=20.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
