Write a program that reads a series of integers from a data file (name of data file is data.txt, this file has been prov

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

Write a program that reads a series of integers from a data file (name of data file is data.txt, this file has been prov

Post by answerhappygod »

Write a program that reads a series of integers from a data file(name of data file is data.txt, this file has been provided foryou). The program will classify the numbers as odd or even. Zeroshould be classified as even and display how many zeros are in thefile. Your program will also sum up all the numbers and find theaverage (since you’re only working with integers, you will useinteger division to find the average). C++
please need the code ASAP. im using VS code community 22
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply