Description
1) Lorem Ipsum is simply dummy text of the printing and typesetting industry, however sometimes
you need to find the one piece of useful information in a sea of randomness. Write a program that
reads in the following file:
(https://raw.githubusercontent.com/cosc1047w18/course/master/Lab5/lorem.txt) and looks for the
word “pizza” (without quotes). When it finds the word it should print a message saying which line it
found it at
2) Write a program that will take an input file which contains users and their favourite colours
(https://raw.githubusercontent.com/cosc1047w18/course/master/Lab5/namecolours.txt)
based on the input file it will find all of the users who have the favourite colour “Red”.
It will then create a file called output.txt which will resemble the following:
The following users like red:
Jim
Jen
Kelly
Adam
***Bonus fun challenging question that will be worth no points/marks but might help you on a future
assignment/quiz/test
Extend the program in question two to handle all the colours in the list, for example
The following users like blue:
Mike
Neil
James
Joe
The following users like red:
Jim
Jen
Kelly
Adam
The following users like Purple
…