Question: i need help with c++ code Program 1.cpp this program will be modification of 0.cpp. add the following menu option Random) this option will seed

i need help with c++ code
Program 1.cpp
this program will be modification of 0.cpp. add the following menu option
Random) this option will seed the data.txt file with 50 random int between 0 and 500.
min) this will find and print the minimum int.
max) this will find and print the maximum int.
Both min and max option will print how many intervals it took to find the min and max int.
Data.txt can be any random 50 int
here my 0.cpp file
i need help with c++ codeProgram 1.cpp this program will be modification
of 0.cpp. add the following menu option Random) this option will seed

1/C++ code #include #include//for file 1/0 using namespace std; int main { string fileName: cout > fileName; ifstream infile(fileName); int num; ofstream outfile if (linfile) cout > choice; switch (choice) case 1: infile.open(fileName); while (infile>>num) cout > choice: switch (choice) case 1: infile.open(fileName): while (infile>>num) cout >num: outfile ) while (choice !-3); return 0

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!