Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can you write this c++ code .. Problem: You are asked to write a program for Miscellaneous Operations Company. The program should allow the user
Can you write this c++ code ..
Problem: 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: I. Area of a Circle: The user enters the radius of a circle for calculating the area. 2. Leap Year: The user enters a 4-digit integer. The program will check and display whether the year is a leap year (see algorithm below) 3. Multiples: The user enters two positive integers. The program will display whether the first integer can be evenly divisible by the second integer 4. Exponentiation: The user enters two non-negative integers. The program displays the result of the first integer to the power of the second. 5. Reversing Digits: The user enters an integer. The program displays the number with its digits reversed. For example, given the number 7631, the program should return 1367 6. Bank Balance: The user enters the bank balance and the interest rate. The program calculates the interest and updates the balance 7. Shifting 3 Numbers: The user enters three numbers and the program shifts them, e.g., if originally n l=10. n2-20, n3-30, after the operation, n1=30, n2=10, n3-20 8. Number guessing: 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. Style Requirements Your program should follow reasonable rules of style. In particular, you should pay attention to Meaningful naming of variables and use of constants Proper use of data types .Proper indentation: blocks of code should show aligned indentation Proper commenting on blocks of code Proper spacing: make good use of spaces to improve readabilityStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started