Question: Write a C + + program that will use the input file numbers.txt to determine the count of even numbers, count of odd numbers and
Write a C program that will use the input file numbers.txt to determine the count of even numbers, count of odd numbers and count of zeroes that exist in the file. In order to receive any credit for this project, it must use the following instructions: openFile this function will open the input file in the current directory. closeFile this function will close the input file. readFile this function will read a number from the input file and return that number to the calling function. determine this function will determine if the number is odd, even, or zero. display this function will display the count of odd numbers, even numbers and zeroes found in the input file. Any project submitted with all code written in main will receive a grade of Please write an algorithm indicating each step in the process until completion. Additionally, also create a flowchart demonstrating each step in the process. Make sure the program reads the file from the current directory and does not prompt for file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
