Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

docs.google.com CodeFolo Lab Test 3: Load and Sort - Google Docs CSCI 221 FA17 - Lab Test 3: Load and Sort This is an individual

image text in transcribed

docs.google.com CodeFolo Lab Test 3: Load and Sort - Google Docs CSCI 221 FA17 - Lab Test 3: Load and Sort This is an individual assignment that needs to be completed and turmed in by 11:59pm tonight (Friday 128/2017). Make sure it compiles before you submit it. For this lab test, write aC+program that will: Ask the user which ile they want to open up. (10 Points) o There are two test fves avalable... Then open up the file and read all of the words into a string array (30 Points) o For the most points use a priming read sentinel loop Then print how many words were read (before printing the list of words) (10 Paints) Then print out the list of words in the order they were read in. (20 Pownts) o Print them out alogether as show below with a space between then Then sort the ist of words and then print them out again sorted. (30 Points) See sides here-Sort code is on slide # 33 o Put the words into an array and use the agori shown in the sides. BONUS: (Up to 50 Bonus Lab Points) Calculate and print how many words start with each leter of the alphabet o Use an array 1o keep track of counts for each letter. Only print the stats for letters that begin words (dont print the ones with zeros) You can submit the bonus part late... Just email me to let me know if I need to regrade . Last time to submit is the night of the final. See the example: which file do you want to open? 11st1.txt File opened There were 12 words read Here are the words unsorted: carbon outlet efflux effort negotiation goal clearance rich release rhythn rescue twist Here are the words sorted: carbon clearance efflux effort goal negotiation outlet release rescue rhytha rich twist BONUS: Here are how nany words started with each letter: LETTER: COUNT C:2 E:2 R :4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security XI Status And Prospects

Authors: T.Y. Lin, Shelly Qian

1st Edition

0412820900, 978-0412820908

Students also viewed these Databases questions

Question

4. What assets do you have?

Answered: 1 week ago