Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in c++ CSCE 121 am 1 Part 2 1. (25 points) write a C+ + functies Tean, OOd that returns the average vol-of poitve odd
in c++
CSCE 121 am 1 Part 2 1. (25 points) write a C+ + functies Tean, OOd that returns the average vol-of poitve odd even integers. Call the Function from maint). Use thias dectoration of the functim riean oda noce that in a vactoe you con hae negstive integers on well 08 poduve double mean odd ivectorintss vi (A) (2 points) Define the escorption called Diviaionby.zero ond ue is is the definiltion of d function mean odd (b) (2 polats) Write the names of beader ilks that should be Included in the program 1 points) Which namespace allows you to use the objects cin and cout In your program? (d) (10 points) write the function main (h where yon should use the try-and-alch block for the exception Division by-zero. i. (4 points) Declare and initialize a vector of type int with at least 6 elements. Use beaces to initialize the vector
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started