i did number 3 already could you please help me with the rest of the questions in C++ i am going to attach my number 3 b

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

i did number 3 already could you please help me with the rest of the questions in C++ i am going to attach my number 3 b

Post by answerhappygod »

i did number 3 already could you please help me with the rest of the questions in C++
i am going to attach my number 3 below
I Did Number 3 Already Could You Please Help Me With The Rest Of The Questions In C I Am Going To Attach My Number 3 B 1
I Did Number 3 Already Could You Please Help Me With The Rest Of The Questions In C I Am Going To Attach My Number 3 B 1 (41.18 KiB) Viewed 35 times
please help me with the rest of the program and questions
I Did Number 3 Already Could You Please Help Me With The Rest Of The Questions In C I Am Going To Attach My Number 3 B 2
I Did Number 3 Already Could You Please Help Me With The Rest Of The Questions In C I Am Going To Attach My Number 3 B 2 (51.92 KiB) Viewed 35 times
iz 3 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 (Global Scope) #include<iostream> using namespace std; void lineCount(istream& in, ostream& out); Pint main() { lineCount(cin, cout); return 0; void lineCount(istream& in, ostream& out) { int count = 0, n; B while (in >> n) { if (n == -999) break; ++count; out « count << " numbers are on line" << endl;

3. Write the definition of a function called lineCount that takes an opened input, and output file references as its parameter. The function should count how many numbers are on a line (up to, but not including -999) stored in an input file. Output the total count to the output file with the appropriate message (10 pts). -10 4. Write the definition of a function called summary that takes as its parameters a file input reference as a parameter, and two integer references The function should read two integers from the input file, and find the sum of even numbers, the sum of odd numbers, and the cumulative product between two values lower and upper. The function should return the sum of even, odd, and cumulative product between the lower and upper values to the calling function (10 pts), - 5. Write the definition of a function called whitespaceCheck that takes a character as its parameter. The function should check if the character sent is a whitespace. The function should return true if the character is a whitespace character, otherwise it should return false to the calling function (10 pts) vo 6. Write the definition of a function called formula that takes two integet parameters. The function should calculate the expression as described: take the first number to the power of the second number and add it to the second number to the power of the first number. Return the answer to the calling function (10 pts) 7. Write a full program to include only the necessary preprocessor directives, the function prototypes, the main function, and the function calls to the defined functions in questions 3, 4, and 6. To properly call the previously listed functions, the main function must integer variables to represent the total sum of even, odd, the cumulative product, the start and end, num1 and num2, a character, and input and output files. Input to the functions is stored in an input file called numbersData in Main should display the results to each function call to an output file called outData.txt. (Hint: Be mindful of the order in your function calls) Attach the code and screenshot of a successful run on the program. (30pts) -30
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply