Question: Program 1.cpp This program will be a modification of 0.cpp. Add the following menu options. Random ) this option will seed the data.txt file with
Program 1.cpp
This program will be a modification of 0.cpp. Add the following menu options.
Random ) this option will seed the data.txt file with 50 random int(s) 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 options will print how many intervals it took to find the min or max int.
Save the file on korriban and check in your 1.cpp file
INSTRUCTION BELOW ARE FROM 0.CPP
1) create a file called data.txt with 10 ramdom ints.
2) Make a program that will
- prompt the user for the data file
- display a menu to the user
- one menu option will be to display the files content\
3) check in the 0.cpp file.
Link to this answer for 0.cpp:
https://www.chegg.com/homework-help/questions-and-answers/1-create-file-called-datatxt-10-ramdom-ints-2-make-program-prompt-user-data-file-display-m-q67316930?trackid=FDYIoQIf
------------------------------
can you please modify the 0.cpp code with the instructions of 1.cpp
Thank you so much
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
