Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello World Become familiar with RePy. This assignment is meant to help you become familiar with RePy, how to run RePy programs and understand the

"Hello World"

 Become familiar with RePy.

This assignment is meant to help you become familiar with RePy, how to run RePy programs and understand the basic functionality of RePy. This will be helpful for when you start Part 1 and 2 of the main lab assignments. 


 

In this assignment we are going to work with an existing text file that contains Sarah Josepha Hale's poem 'Mary had a little lamb'. We will be reading the file, outputting specific characters from the file, changing a word in the file, and appending to the file. 

 

Open up the ISBUbuntu VM and navigate to the RUNNABLE folder within repy_v2 (awesomestudent@awesomestudent-ISP:~/repy_v2/RUNNABLE$ ). There is a file there called story.txt, open it and take a read. When done, close the file.

image

There is a file named "gettingstartedmonitor.r2py", feel free to open it and take a look. This is a bare-bones function pass-through reference monitor, it has no real security features and is only to be used for this specific assignment. A deeper look into a reference monitor that you will be working on happens in the Programming Lab Part 1 assignment.

 

You can also find a file named "myapplication.r2py", this is the file you will be working with, open it. The default text editor will suffice for this assignment, and to be honest the other assignments as well although vscode has been installed on the virtual machine and might offer an easier platform.

image

Right now the program will not work because M,P,PPP,Q,R,S,T,U,V,W,X,Y,Z are just placeholders for you to insert code.

image
If you open up story.txt after the program has run, it should look like this:
imageimage

aw Recent Starred Home Desktop Documents Downloads Music Pictures B Videos Trash + Other Locations Name Home Desktop story.txt e strace.py etab_completer.py tcprelayaffix.r2py tcp_relay_common_lib.r2py tcp_time.r2py testfile.txt testfile.txt.b e testportfiller.py e textops.py time.r2py time_interface.r2py e tracebackrepy.py =udpcentralizedadvertise.r2py uniqueid.r2py urllib.r2py urlparse.r2py e virtual_namespace.py win_cpu_nanny.py RUNNABLE e windows_api.py Open 1 Mary had a little lamb, 2 Its fleece was white as snow; 3 And everywhere that Mary went story.txt -/Desktop/RUNNABLE 4 The lamb was sure to go. 5 It followed her to school one day, 6 which was against the rule; 7 It made the children laugh and play 8 To see a lamb at school. 9 And so the teacher turned it out, 10 But still it lingered near, 11 And watted patiently about 12 Till Mary did appear. 13 Why does the lamb love Mary so? 14 The eager children cry; 15 Why, Mary loves the lamb, you know, 16 The teacher did reply. Plain Text - a Tab Width: 8 88 Size 7.6 kB 9.4 kB Save = Modified Star 22 Sep 2020 22 Sep 2020 Ln 9, Col 34 INS "story.txt" selected (459 bytes)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Sure lets walk through filling in the placeholders and understanding the functionality of the given script 1 Open the file The placeholder P should be ... 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

Principles Of Database Management The Practical Guide To Storing Managing And Analyzing Big And Small Data

Authors: Wilfried Lemahieu, Seppe Vanden Broucke, Bart Baesens

1st Edition

1107186129, 9781107186125

More Books

Students also viewed these Algorithms questions

Question

Graph one period of each function. y = 4 cos x

Answered: 1 week ago