Site icon Tutor Bin

Diablo Valley College Write a Programm C++ Programming Task

Diablo Valley College Write a Programm C++ Programming Task

Description

i got to this part but IDK how to keep going #include <fstream>#include <iostream>#include <iomanip>#include <string>using namespace std;void getNumbers(int number[], int size);int countOddNumbers(int& a[]);int writeEvenNumbers(int& c, int even_count);int main(){const int Size = 10;int number[Size]={};getNumbers(number, Size);countOddNumbers(*number);cout << “Numbers of odd numbers entered: ” << countOddNumbers(*number) << endl;}void getNumbers(int number[], int size){for(int i = 0 ; i < size ; i++ ){cout <<“Enter number ” << i + 1<< “: “;cin >> number[i];}}int countOddNumbers(int& a){int odd_count = 0;for (int i = 0 ; i < 10; i++){if (a % 2 != 0){odd_count++;}}return odd_count;}/*int writeEvenNumbers(int& c, int ){ofstream output;output.open(“events.txt”);if (output){for (int i = 0 ; i < size ; i++)}}*/

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Exit mobile version