Question: User Write a C + + program to run a menu - driven program with the following choices: Lucas Number Sequence Prime Number Sequence Lucas
User
Write a C program to run a menudriven program with the following choices:
Lucas Number Sequence
Prime Number Sequence
Lucas Prime Number Sequence
Quit
Write a function called getValidUserInputPosNumGT that allows a user to enter in an integer and validated that the number is It must have a pass by reference parameter that will store the value selected by the user.
void GetValidUserInputPosNumGTlong long #
Write a function called DisplayLucasNumberSequence that takes a number N as a value parameter. It displays the first N numbers in the Lucas Number Sequence
void DisplayLucasNumberSequencelong long num;
Write a function called IsPrime that takes a number as a value parameter. It returns true if the number is prime and false otherwise.
bool IsPrimelong long num;
Write a function called DisplayPrimeNumber that takes a number N as a value parameter. It displays the first N prime numbers.
void DisplayPrimeNumberslong long num;
Write a function called DisplayLucasPrimeNumbers that takes a number N as a value parameter. It displays the first N Lucas prime numbers.
void DisplayLucasPrimeNumberslong long num;
Add comments wherever necessary.
Restrict yourself to inputoutput statements, variables, selection statements, loops, and functions. No strings or arrays.
Sample run:
Welcome to the playing with numbers!
Lucas Number Sequence
Prime Number Sequence
Lucas Prime Number Sequence
Quit
Select an option
Select an option
Select an option
Enter in n
Enter in a positive number greater than
Enter in a positive number greater than
Lucas Number Sequence
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
