Question: on Dev C++ Write a c++ program that displays the following messages: Enter 1 to read 6 integer numbers from keyboard and save them into
on Dev C++ Write a c++ program that displays the following messages:
"Enter 1 to read 6 integer numbers from keyboard and save them into the file named TESTData."
"Enter 2 to display the even numbers from the TESTData file."
"Enter 3 to display the odd numbers from the TESTData file."
"Enter 4 to exit."
When user enters option 1, the program should ask the user to enter 6 integer numbers, then should write them
into the file named "TESTData.txt".
when user enters option 2, the program should read the file TESTData.txt, then evaluate each number read, and
display only the even numbers.
When user enters option 3, the program should read the file TESTData.txt, then evaluate each number read, and
display only the odd numbers.
When user enters option 4 or any other different than 1, 2 or 3, the program should exit.
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
