Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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