Highlights
Q1: Masking the letter in a word from the input file. Consider an input file consisting of bunch of words in a new line with word length ranging between 2 and above. Write a code to mask all the letters after first four letters in each word with # symbol as shown in example below.
Example:
Input: ISSStudentsAreBest
Output: ISSS
Q2: Consider an input file with information about a person name and his/her date of birth. Generate an output file with same person name and his/her age.
Example:
Input file: <name of person> <date in “dd/mm/yyyy” format>
Output file: <name of person> <age>
Q3: Consider a file with a paragraph of words. (Total: 20M) Print all words in the file which satisfy following conditions:
Word starts with ‘s’ and is not follow by ‘a’.
Word starts with ‘w’ and is followed by ‘h’
Word starts with ‘t’ and is followed by ‘h’
Word starts with ‘a’ and is not followed by ‘n’ Example:
Input: A File with a paragraph text Output:
Words - start with ‘s’ and is not follow by ‘a’
………
Word starts with ‘w’ and is followed by ‘h’
………
Word starts with ‘t’ and is followed by ‘h’
………
Word starts with ‘a’ and is not followed by ‘n’
………
Q4: Build a Search Engine on input files.
Input: Consider a .txt file with bunch of sentences separated by a line break. We provide a search word as an input to search against the available .txt file.
Output: By reading the input, the code should run against these sentences and return the search score (term frequency) against each of these sentences.
Term frequency = No. of Occurrence of a given word/ Length of sentence.
Address this question by following these steps:
Remove the noise words from the input TXT files using the supplied stopwords.txt
Calculate term frequency using the input search keyword against the input TXT file which is free from noise words
Print the sentence_withnostopwords, <search score> in Output.txt file
Q5: Write a shell script to print files and their sizes as per below criteria:
Write a shell script to print all directories and files present in a folder.
The directories should be printed after sorting based no. of files in the directory (descending)
The files should be printed in descending order based on its size.
Script should consider all the files and directories recursively and not just the files which are immediately inside the folder.
Example:
Input: Say for a folder with structure:
.
??? 1.txt (250 mb)
??? dir_1
? ??? 1_1.txt (1 mb)
? ??? dir_1.1
? ??? 1_1_1.txt (10mb)
??? dir_2
??? 1_2.txt (15 mb)
Output:
$bash script.sh > Directories:
> dir_1, 2 file(s)
> dir_1.1, 1 file(s)
> dir_2, 1 file(s)
>
> Files:
> 1.txt
> 1_2.txt
> 1_1_1.txt
> 1_1.txt
Q6: Managing Personal Contact Book.
Write a shell script to manage your personal contact book which will keep record of your contact details. Follow the below instructions to write the shell script.
Input: contacts.csv is the input file with fields fname (FirstName), lname (LastName), mobile (Mobile Number), Office (CompanyName).
This contacts.csv will be updated after every insert, delete and edit. No command other than display all, or search and display should print anything on the terminal.
No command other than display all, or search and display should print anything on the terminal.
The output for ‘search and display’ and ‘display all’ should be coma separated words in the same sequence as the format of the csv.
The commands should be as follows
Insert Contact
Edit Contact
Display all Contacts
Search and Display
Delete Contact
The system should run based on flag-based command line arguments. A flag –C would be used to first specify the command (which would be one of ‘insert’, ‘edit’, ’display’, ‘search’, ‘delete’) The flags for each command are as follows:
Insert o -f for entering first name o -l for entering last name o -n for entering contact number o -o for entering company name
Edit contact o -k give the first name of the contact to be edited (assume no 2 contacts have same first name)
-f for entering updated first name o -l for entering updated last name o -n for entering updated contact number o -o for entering updated company name
Display all contacts o -a to sort in ascending order of first name o -d to sort in descending order of first name
Search and display o -c for entering the column on which it is to be searched (has to be one of first name, last name or number) o -v for the search value of that column
Delete contact o -c for entering the column on which it is to be searched (has to be one of first name, last name or number)
-v for the search value of that column of the record to be deleted Please note that you do not have to worry about any validation checks and the only valid input (both flags and values) would be provided while testing.
This IT Assignment has been solved by our IT 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
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.