Answered step by step
Verified Expert Solution
Link Copied!

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 0. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago