Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

Briefly explain the various types of leadership ?

Answered: 1 week ago

Question

Explain the need for and importance of co-ordination?

Answered: 1 week ago

Question

Explain the contribution of Peter F. Drucker to Management .

Answered: 1 week ago

Question

What is meant by organisational theory ?

Answered: 1 week ago