Question
C++ Programming 1. Write a program that reads a set of integers into an array and find the sum of the odd and even integers.
C++ Programming
1. Write a program that reads a set of integers into an array and find the sum of the odd and even integers. Use a sentinel value to end the input because you dont know the number of entries up front. Display the calculated sums. Find the lowest and highest value in the set of integers and display the results. USE FUNCTIONS. I need a function to gather the required input, return the sum of the odd values via the function and return the sum of the even values via a pass by address variable. I need a function to return the lowest and another function to return the highest value. I need a function to display the calculated sums, the lowest and the highest values in addition to the input data (the contents of the array). I need a function to write the input data to a file whose name is provided by the user from the keyboard. Make sure to call the functions and show how the program works
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