1. Reads in a file of words (unsorted) ... This is a file you create, use at least 10 words, must be a .txt file. 2. Pro

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

1. Reads in a file of words (unsorted) ... This is a file you create, use at least 10 words, must be a .txt file. 2. Pro

Post by answerhappygod »

1 Reads In A File Of Words Unsorted This Is A File You Create Use At Least 10 Words Must Be A Txt File 2 Pro 1
1 Reads In A File Of Words Unsorted This Is A File You Create Use At Least 10 Words Must Be A Txt File 2 Pro 1 (366.76 KiB) Viewed 53 times
1. Reads in a file of words (unsorted) ... This is a file you create, use at least 10 words, must be a .txt file. 2. Prompt for and read a word from the user (This one should be on the list) 3. Prompt for and read a second word from the user (This one should NOT be on the list). 4. Search the unsorted list for the first word. 1. Record and report: the number of compares (if's) 1. and the time it took to find the word (time.h - clock function) 2. Record and report the number of compares (1f's) 1. and the time it took to find the second word. 5. Sort the array of words into alpha order (Rock Sort) 6. Repeat step 4 using a top-down search (Use the same two words from the previous search {Point 4}) 7. Repeat step 4 using the binary search 8. Submit your totally amazing multi-search program. I'll use my own list of words so you don't need to share that.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply