1.write a program to find the average of even and the average of odd numbers from 20 entered numbers.
Control structures
Control structures are block of statements that analyze the value of variables and determine the flow of execution based on those values. When a program is running, the CPU executes the code line by line. After sometime, the program reaches the point where it has to make a decision on whether it has to go to another part of the code or repeat execution of certain part of the code. These results affect the flow of the program's code and these are called control structures.
Switch Statement
The switch statement is a key feature that is used by the programmers a lot in the world of programming and coding, as well as in information technology in general. The switch statement is a selection control mechanism that allows the variable value to change the order of the individual statements in the software execution via search.
![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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F84605b81-ce15-48ba-a187-dbf5bd9b649c%2F7b647e26-2f99-469d-a8a0-c6dbcdbe7c4e%2Fkw7uj8_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)