Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C + + program that performs the following: Prints on screen a selection menu as follow: a . Count characters, converts small character

Write a C++ program that performs the following:
Prints on screen a selection menu as follow:
a. Count characters, converts small character to capital.
b. Series.
c. Binary, Max Digits and Average Primes.
d. Exit
If user presses a or A, the following sub menu should be displayed
1- Count characters:
(Program should call a function that reads set of characters until q is pressed. The function should count the occurrence of each of these characters (a, b and c).)
2- Small to Capital:
(Program should call a function that prints all characters in the two cases (small and capital))
3- Return to the main menu.
If user presses b or B, the following sub menu should be displayed:
1- Sin (x)=x-x/31+x/31x17m 2-F1-12/31+2/51+3/71/(2n+1)!
3- Cos(x)/2/21/4/6/
4- Return to the main menu.
If user presses c or C, the following sub menu should be displayed:
1- Binary to Decimal.
(program should reads a binary number and convert it to Decimal)2- Max Digits:
(program should call a function that returns the max even digits of any integer as: follows: x=1247, max digits =4).
Average of Primes: (Program should call a function that returns the average of primes from 1 to 100)
4- Return to the main menu.
To Exit press e or E.

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

More Books

Students also viewed these Databases questions

Question

What makes international business different from domestic business?

Answered: 1 week ago

Question

Compose the six common types of social business messages.

Answered: 1 week ago

Question

Describe positive and neutral messages.

Answered: 1 week ago