Write a program to accomplish the following tasks:
1. Generate arbitrary number of random integer numbers between [0-100]
2. Save or load the numbers from/to a text file based on user option
3. Search the generated list for an arbitrary number entered by a user
4. Use Linear and Binary search algorithms based on a user option
5. Computes CPU time used by either search algorithm
6. Use menu-based interaction with the user
ddm
0
Newbie Poster
Recommended Answers
Jump to PostThis is my work but I believe I did it wrong
1 {
2 int rNumb[50];
3 input (rNumb);
4 output (rNumb);
5 }6 int input (int x[])
7 {
8 int i = 0;
9 srand(time(0));
10 for(int i=0; i<50; i++)
11 x = rand()%100+1;
12 return x;
…
All 4 Replies
ddm
0
Newbie Poster
zeroliken
79
Nearly a Posting Virtuoso
ravenous
266
Posting Pro in Training
ddm
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.