Sydney NSW 2074, Australia


Computing Skills Assignment Help

Matlab Assignment Help

Assessment 2 Software Application Ruby Project

Assessment 2 Software Application Ruby Project
A company often needs to retrieve documents on its hard drive based on those documents containing words or phrases. It thus needs a system that allows the user to enter the required phrase or word and to then find the document/s containing that phrase and to print them to screen. The type of documents that need to be accessed are 1. Text 2. Word (.doc or.docx) 3. Pdf To shorten the search path, the user would also enter the root directory where the search begins. An example of the Ruby Rails implementation is shown below This Assessment contain HURDLE TASK – Question Answer session for all phases– the task that must be passed in order to pass the whole assessment or phases of assessment. The project is to be delivered in several phases: Phase 1 (5 marks – due week 6) Write Ruby code and answer following questions. Upload rb files (with comments) on Moodle: Q1. Create a text file named Story.txt, type the following statements into the file and save it: Once upon a time, there was a little boy who went on a great adventure. Unfortunately, nothing happened. The End Next, create a Ruby program named StoryCheck.rband add the program logic needed to perform the following tasks:  Verify that the fileexists.  If the file does not exist, display an errormessage.  If the file exists, read it and test whether it contains the phrase “a littleboy”  If it does display the contents of the text file otherwise display phrase notfound. Q2. Create a Ruby program file named DirChecker.rband add the program logic needed to perform the following tasks:  Prompt the user to type the path and name of a folder whose contents will bedisplayed.  Capture and analyze user input to determine whether the specified folderexists.  Tell the user whether or not the folderexists.  If the folder exists, prompt the user to press Enter in order to view the folder’s contents.  If the folder does not exist, display an errormessage. Phase 2 (5 marks – due week 7) In phase 2, an initial prototype is required. This prototype will 1. Request two user inputs - a term/word/phrase and a directory from the user throughcommand prompt. 2. Search for user input term/word/phrase in all text documents (.txt) in the specified directory and sub- directories (user inputdirectory). 3. Output the list of names of the documents containing the user given term/word/phrase and portion of content of the text document. You can add information like total number of documents containing the term/phrase or total number of occurrence of the term/phrase in a specificdocument. 4. Display the appropriate message/information, if there is no match found for the given term/word/phrase in all text documents in the givendirectory. 5. Require no fancy user interface. User input will be provided through command prompt .Itcan be implemented entirely in Ruby withoutrails. 6. Implemented by using classes, objects, methods andconstructor. This phase extends phase 2 by adding the capacity to search term/word/phrase in word documents and pdf documents as well as text documents. Please note, Ruby gems are required to implement Phase 3 (i.e. download from https://rubygems.org/, installing the gem, using ‘require’ in code and calling the appropriate method of the gem ). Hint: Read the related gem documentation to identify the parameters and output of different methods provided by the gem. Add appropriate comments e.g Name, Student ID, functionality of a variable, brief explanation of logic This prototype will then be transported to a rails framework with a user interface similar to the example below. 1. The user will provide the input through web page in rails. Web page should contain two text fields (1. Word/phrase and 2. Root directory) and a search button in an HTMLform. 2. Search results will be display on web page (same or different) aswell. 3. In this phase for every match found, the filename including the full path will be printed to the browser and a portion of content of the document will be printed into a text-area (these will be added dynamically according to the number of matchesfound). 4. Add appropriate comments e.gName, Student ID, functionality of a variable, brief explanation of logic



  • Number of views:
  • PRICE :
    AU$ 120.00
Security Code  
Urgent Assignment Help

Our Top Experts

Karen Betty

Holding a PhD degree in Finance, Dr. John Adams is experienced in assisting students who are in dire need...

55 - Completed Orders

Daphne Lip

Canada, Toronto I have acquired my degree from Campion College at the University of Regina Occuption/Desi...

52 - Completed Orders

Mr Roberto Tuzii

Even since I was a student in Italy I had a passion for languages, in fact I love teaching Italian, and I...

102 - Completed Orders

Harsh Gupta

To work with an organization where I can optimally utilize my knowledge and skills for meeting challenges...

109 - Completed Orders


JOB OBJECTIVE Seeking entry level assignments in Marketing & Business Development with an organization...

202 - Completed Orders


Current work profile Project manager- The Researchers Hub (2nd Jan 2016 to presently working) Researc...

20 - Completed Orders

Tan Kumar Ali

Sales Assistant, Mito Marina Assigned to the Stationery dept – assisted in merchandising, stock taking...

100 - Completed Orders

Wesenu Irko

Personal Profile Dedicated and highly experienced private chauffeur. High energy, hardworking, punctua...

200 - Completed Orders

Lizzy Darley

I'm Lizzy, full time education specialist in English, Essay Writing, Economics and Maths. Having Assi...

109 - Completed Orders


HSC PREPARATION I specialise in English coaching programs for HSC students. My personalised and results-...

202 - Completed Orders