three functions that each generate 10 unique dataset files of integers separated by a comma ",". E.g., 34, 32421, 124124, 67, 92, ... The sizes of these 10 datasets are (n) – 1000, 4000,  8000, 10000, 40000, 80000, 100000, 400000, 800000, 1000000. One

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

I'm doing C++ in Visual Studio Code

 

I need the steps in how I world do all of it in Visual Studio Code.

 

Write three functions that each generate 10 unique dataset files of integers separated by a comma ",". E.g., 34, 32421, 124124, 67, 92, ... The sizes of these 10 datasets are (n) – 1000, 4000,  8000, 10000, 40000, 80000, 100000, 400000, 800000, 1000000. One function should generate random integers between 0 to 1,000,000 as the elements of each dataset. Another function should generate a file with a sorted list of integers from smallest to largest. The final function should generate a file with a reverse sorted list with values going from largest to smallest. E.g., 1000Sorted file will have 0 to 999, 1000Reverse.txt will have 999 to 0, and 1000Random.txt will have random numbers between 0 to 1,000,000. These functions should not take any input arguments and should have the signature: void GenerateSortedInputFiles(), void GenerateRandomInputFiles(). void GenerateReverseInputFiles(). The output of these functions is just a print statement to console that file generation completed. The files names should have the format “SampleSize” + “Random/Sorted/Reverse” + “.txt” eg. “80000Sorted.txt”.

Submit a folder within which you need to have all your code files,  README file with the compile and execution instructions, and your pre-compiled ".exe" executable files. On top of all the files, you need to mention your name as comments. All submitted code C++ files and header files must be named as "<your-name>_<sort-name>". For example, "johndoe_sorting.cpp" and "johndoe_bubblesort.h". The zip folder should be named as "<your-name>_code.zip". For example, it will be "johndoe_code.zip".

 

Write three functions that each generate 10 unique dataset files of integers separated by a comma "," E.g., 34, 32421,
124124, 67, 92, ... The sizes of these 10 datasets are (n)-1000, 4000, 8000, 10000, 40000, 80000, 100000, 400000,
800000, 1000000. One function should generate random integers between 0 to 1,000,000 as the elements of each
dataset. Another function should generate a file with a sorted list of integers from smallest to largest. The final function
should generate a file with a reverse sorted list with values going from largest to smallest. E.g., 1000Sorted file will have
O to 999, 1000Reverse.txt will have 999 to 0, and 1000Random.txt will have random numbers between 0 to 1,000,000.
These functions should not take any input arguments and should have the signature: void GenerateSortedInputFiles(),
void GenerateRandomInputFiles(). void GenerateReverselnputFiles(). The output of these functions is just a print
statement to console that file generation completed. The files names should have the format "SampleSize" +
"Random/Sorted/Reverse" + ".txt" eg. "80000Sorted.txt".
Submit a folder within which you need to have all your code files, README file with the compile and execution
instructions, and your pre-compiled ".exe" executable files. On top of all the files, you need to mention your name as
comments. All submitted code C++ files and header files must be named as "<your-name>_<sort-name>". For example,
sorting.cpp" and
_bubblesort.h". The zip folder should be named as "<your-name>_code.zip".
For example, it will be
code.zip".
Please follow the "Guidelines for Software Engineering Techniques.pdf" and "Assignments and Project Style and
Documentation Guidelines.pdf" made available to you in your Student Resources module for other document editing
and code format guidelines.
Transcribed Image Text:Write three functions that each generate 10 unique dataset files of integers separated by a comma "," E.g., 34, 32421, 124124, 67, 92, ... The sizes of these 10 datasets are (n)-1000, 4000, 8000, 10000, 40000, 80000, 100000, 400000, 800000, 1000000. One function should generate random integers between 0 to 1,000,000 as the elements of each dataset. Another function should generate a file with a sorted list of integers from smallest to largest. The final function should generate a file with a reverse sorted list with values going from largest to smallest. E.g., 1000Sorted file will have O to 999, 1000Reverse.txt will have 999 to 0, and 1000Random.txt will have random numbers between 0 to 1,000,000. These functions should not take any input arguments and should have the signature: void GenerateSortedInputFiles(), void GenerateRandomInputFiles(). void GenerateReverselnputFiles(). The output of these functions is just a print statement to console that file generation completed. The files names should have the format "SampleSize" + "Random/Sorted/Reverse" + ".txt" eg. "80000Sorted.txt". Submit a folder within which you need to have all your code files, README file with the compile and execution instructions, and your pre-compiled ".exe" executable files. On top of all the files, you need to mention your name as comments. All submitted code C++ files and header files must be named as "<your-name>_<sort-name>". For example, sorting.cpp" and _bubblesort.h". The zip folder should be named as "<your-name>_code.zip". For example, it will be code.zip". Please follow the "Guidelines for Software Engineering Techniques.pdf" and "Assignments and Project Style and Documentation Guidelines.pdf" made available to you in your Student Resources module for other document editing and code format guidelines.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY