Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task(1): Write a C++ programm to the following: -Declare array named Array 1 of size 8 and integer datatype -ask the user to enter the

image text in transcribed
Task(1): Write a C++ programm to the following: -Declare array named Array 1 of size 8 and integer datatype -ask the user to enter the elements of the array - print the index of even element: -Your program should update every element in Arrayl by multiplying the next and previous values of a Arrayl except the first and laste element will stay the same.Print the arral after this process. Task(2): Write a C++ programm to print the factorial of a number by defining a function named "Factorial". Factorial of any number n is represented by n ! and is equal to 1234(n1)n. sample output: Task(3): Define and call function named Sum_Fun to calculate and print the sum of the series (11)+(22)+ (33)+(44)+(55)++(nn). Where n is an input from the user. :sample output

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