BIT246: Object Oriented RAD - Software Application - Engineering Assignment Help

Download Solution Order New Solution
Assignment Task :

1. Question 1 – Search in text(.txt) files 

Create a Ruby program file named Phase2Q11234.rb (1234 should replace by your student ID) and add the program logic needed to perform the following tasks: 

1. Request two user inputs in text form- a term (or a word or a phrase) and a folder path(or directory path) from the user through command prompt. For example, a user inputs word “Ruby” and “C:\ 

 

2. Search for user input term in all text documents (.txt) in the user given directory and sub-directories 

(user input directory). Use glob method – Write in comments in program why to use glob 

3. Search the user input term with case-insensitive i.e. For user input = Ruby will return the list of file that contains the word with any combination of uppercase or lowercase character e.g. Ruby, ruby, rubY or rUby. 

4. Output the list of names of the text files containing the user given term and portion of content of each text file. You can add information like total number of documents containing the user given word or total number of occurrences of the user given word in a specific text file. 

5. Display the appropriate message/information, if there is no match found for the given term/word/phrase in all text documents in the given directory. 

6. This phase does not require any fancy user interface. User input will be provided through command prompt. 

7. Develop program in Ruby to implement above functionality by using classes, attributes, methods, objects, and constructor. (Sample class is given on Moodle – Phase 2 Plan.doc) 

8. Add appropriate comments e.g. Name, Student ID, functionality of a variable, brief explanation of logic 

 

This Engineering Assignment has been solved by our Engineering Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.