Question
Write programme on C++ 1. You are required to write a menu driven program 2. The menu is as follows: a. Press 1 for integer
Write programme on C++ 1. You are required to write a menu driven program 2. The menu is as follows: a. Press 1 for integer addition (a+b) b. Press 2 for integer subtraction (a-b) c. Press 3 for integer multiplication (a x b) d. Press 4 for Fibonacci series i. Fibonacci series is series of number in which each number is the sum of the two preceding numbers. Write a program that: 1. Asks first number of the series from the user 2. Asks second number of the series from the user 3. First number must be less than or equal to second number 4. If the first and second numbers are negative integers, take the input again 5. Asks a number, n, from the user 6. Make sure n is an even positive integer greater than 3, otherwise display appropriate message and take the input again 7. Once we have valid input, print all the first n numbers in the series starting from first and second number 8. You are not allowed to use do while loop. e. Press 0 for exit 3. Menu must be continuous until user exits. 4. Use must use a switch structure to make menu. 5. You must not discard or change the values of variables in which user input is stored.
Step 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