Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What are the command lines needed for this in C++ on a linux system 5. The problem you need to solve for this lab assignment

What are the command lines needed for this in C++ on a linux system image text in transcribed
5. The problem you need to solve for this lab assignment is: (1) to sort all the buildings from UkY_buildings.txt you downloaded from step 3, in Lexicographical order (dictionary order) by building names. (2) to search from the sorted file in step(1) and find all the buildings, which start with "C" and the coordinates shown in the map are in the range of D5 to D7 (including D5 D6 and D7), and print them (with line numbers from the sorted file to an output file, named Lab2output.txt. (3) to search from the sorted file in step(1) and find all the buildings which contain "ball" as part of the building name (Ignore case distinctions) and the coordinates shown in the map ne either B5 to B7. or G4 or 14, and print (append) them (with line numbers from the sorted file), at the end of the same output file, named Lab2output.txt. The following is the sample output of Laboutput.txt: 85: CRMS Building 0108 D7 89: Center for Robotics and Manufacturing Systems 1on Chem. Physins Rus Shelter 0392 16 0108 D7 5. The problem you need to solve for this lab assignment is: (1) to sort all the buildings from UkY_buildings.txt you downloaded from step 3, in Lexicographical order (dictionary order) by building names. (2) to search from the sorted file in step(1) and find all the buildings, which start with "C" and the coordinates shown in the map are in the range of D5 to D7 (including D5 D6 and D7), and print them (with line numbers from the sorted file to an output file, named Lab2output.txt. (3) to search from the sorted file in step(1) and find all the buildings which contain "ball" as part of the building name (Ignore case distinctions) and the coordinates shown in the map ne either B5 to B7. or G4 or 14, and print (append) them (with line numbers from the sorted file), at the end of the same output file, named Lab2output.txt. The following is the sample output of Laboutput.txt: 85: CRMS Building 0108 D7 89: Center for Robotics and Manufacturing Systems 1on Chem. Physins Rus Shelter 0392 16 0108 D7

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_2

Step: 3

blur-text-image_3

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

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions