1.write a program to find the average of even and the average of odd numbers from 20 entered numbers.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 29PE
icon
Related questions
icon
Concept explainers
Question
1.write a program to find the average of even and the average of odd numbers from 20 entered
numbers.
2.write a program to find the result of the following equation :
a2 + b2
X =
ab + 1
3. write a program to find the following equation
if n is even
f (n)
Зп + 1
if n is odd
4. Write the following equations in visual basic format:
((b²+c² – a²)
(2 x b x c))
cos-1
а.
(y-0)+(x-a)*
b.
(bsiny - 0)'+(bcosy-a)*
b'sin'y+b'cos Y- 2abcosy + a
с.
d.
е.
b (sin' y + cos'y)- 2abcosy + a
f.
f(x) = a· ec(x-d) + b
Transcribed Image Text:1.write a program to find the average of even and the average of odd numbers from 20 entered numbers. 2.write a program to find the result of the following equation : a2 + b2 X = ab + 1 3. write a program to find the following equation if n is even f (n) Зп + 1 if n is odd 4. Write the following equations in visual basic format: ((b²+c² – a²) (2 x b x c)) cos-1 а. (y-0)+(x-a)* b. (bsiny - 0)'+(bcosy-a)* b'sin'y+b'cos Y- 2abcosy + a с. d. е. b (sin' y + cos'y)- 2abcosy + a f. f(x) = a· ec(x-d) + b
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Control Structure
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning