Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that take a choice to calculate and print these requirements by using functions for each point. Main Menu: a . Count characters,

Write a program that take a choice to calculate and print
these requirements by using functions for each point.
Main Menu:
a. Count characters, change text numbers to integers
and converts small character to capital.
b. Series
c. Sum Perfects, Max Digits and Average Number.
d. Binary and Decimal
e. Exit
In menu (a)
count characters: insert string input and then calculate
the numbers of character r,t,y until (q)
Enter Your Letters
ratatihgy
Output:
r,t,y
1,2,1
change text to numbers to integers:
enter your text number until (q)
input: a1b2cv4x23q
output: 12423
converts small character to capital: a -> A
Return to main menu. In menu (b)
series 1sin(x)=x-x33!+x55!-x77!dotsxnn!?
series 2cos(x)=1-x22!+x44!-x66!dotsxnn!?
series 3-> F2
4dotsdots+xnx-1n+1dotsxnn!.
Return to main menu.
In menu (c)
Sum perfect numbers : " perfect number, a positive
integer that is equal to the sum of its proper divisors.
The smallest perfect number is 6, which is the sum of
1,2, and 3. Other perfect numbers are 28,496, and
8,128."-> the program must print perfect numbers
less than given input and print the summation of
perfect numbers
Max Odd Digit: 7592->The Maximum odd Digit is 9
Average Prime numbers: the program must print the
average of prime numbers from 1 to given input.
Return to main menu
In menu (d)
Binary to decimal. (1010)->10
Decimal to binary. (10)->1010Write a program that take a choice to calculate and print
these requirements by using functions for each point.
Main Menu:
a. Count characters, change text numbers to integers
and converts small character to capital.
b. Series
c. Sum Perfects, Max Digits and Average Number.
d. Binary and Decimal
e. Exit
In menu (a)
1. count characters: insert string input and then calculate
the numbers of character r, t , y until (q)
Enter Your Letters
ratatihgy
Output:
r t y
121
2. change text to numbers to integers:
enter your text number until (q)
input: a1b2cv4x23q
output: 12423
3. converts small character to capital: a -> A
4. Return to main menu.
In menu (b)
1. series 1-> sin(x)= x - x3/3!+ x5/5!- x7/7!...xn/n!
2. series 2-> cos(x)=1- x2/2!+ x4/4!- x6/6!...xn/n!
3. series 3-> F2=1+ x1/(x-1)2+ x2/( x-1)3+ x3/( x-
1)4......+ xn/( x-1)n+1...xn/n!.
4. Return to main menu.
In menu (c)
1. Sum perfect numbers : perfect number, a positive
integer that is equal to the sum of its proper divisors.
The smallest perfect number is 6, which is the sum of
1,2, and 3. Other perfect numbers are 28,496, and
8,128.
-> the program must print perfect numbers
less than given input and print the summation of
perfect numbers
2. Max Odd Digit: 7592->The Maximum odd Digit is 9
3. Average Prime numbers: the program must print the
average of prime numbers from 1 to given input.
4. Return to main menu
In menu (d)
1. Binary to decimal. (1010)->10
2. Decimal to binary. (10)->1010
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

CL I P COL Astro- L(1-cas0) Lsing *A=2 L sin(0/2)

Answered: 1 week ago