Select one of the on-line compilers below:
The compilers will automatically provide the "HELLO WORLD" script, run the script, verify output, then modify the script as follows:
print("hello world")
print("Were gonna build a dog park")
.png
file.Video demonstration of above exercise https://engrmediacast.ttu.edu/mediasite/mymediasite/presentations/a865e7aa98e94388ad2d9db56672f8861d
The CoCalc environment is a recomended environment for this course.
The URL is https://cocalc.com/
You will need an account; to obtain an account you will provide your name and email. Their server will send you a message, so use an email you can easily access. Once you have an account select Sign In.
Video demonstrating login and initial set-up for this lab: https://engrmediacast.ttu.edu/mediasite/mymediasite/presentations/e6f31bdb661d4197bde4b2eddb51a8c91d
The cell below contains the classic "first program" of many languages.
The script input is quite simple, we instruct the computer to print the literal string "hello world" to standard input/output device which is the console. Here our jupyter interface intercepts to output stream and embeds it into this document.
print("hello world")
Now we try changing the contents of the literal string (everything between the quotes is the literal. I'll try with something elaborate like:
Were gonna build a dog park, the best one ever - and the cats are gonna pay for it!
print("Were gonna build a dog park, the best one ever - and the cats are gonna pay for it!")
The graphics are not quite cut-and-paste as in MS Word, or Libre Office. In Markdown, the files must exist, and be in same directory (or you provide a local path), and you insert them using $$\texttt{![](filename.png)}$$
Now insert the screen capture you made earlier by
Video demonstration of above exercise https://engrmediacast.ttu.edu/mediasite/mymediasite/presentations/3bdd0fdfd4f646648a7706522291f5711d
Here is the image
For this laboratory, once you have sucessfully run a CoCalc notebook, export as .html, download the .html file, and submit it to Blackboard (or Moodle)