Question: using C++ include fstream create a program with using switch and case **you need to create a num.txt file which has 50 numbers in it.

using C++

include fstream

create a program with using switch and case

**you need to create a num.txt file which has 50 numbers in it.

*Enter 1. Output all integers from a num.txt file

* Enter 2. Sum all values from a num.txt file *

* Enter 3. Output all odd numbers from a num.txt file *

* Enter 4. Output all even numbers from a num.txt file *

* Enter 5. Search value (it should lets user to input the value to search. using cout << and cin >> ) from a num.txt file

* Enter 6. Output median from a num.txt file *

* Enter 7. Output first value from a num.txt file *

* Enter 8. Output last value from a num.txt file *

* Enter 9. Output the highest value & location from a num.txt file *

* Enter 10. Output the lowest value & location from a num.txt file *

* Enter 11. Sort and then output values from a num.txt file *

* Enter 12. Exit

every case should output the results based on num.txt file

C++ please

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!