

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Generic Example (This is an example of the assignment I would give in class): for i in seq 1 10;do echo “Hello World.” done GRADE D : Changing only the text in from the template assignment: Example: for i in seq 1 10;do echo “Greetings, Earthling!” done GRADE C : Changing the text and some variables: Example: for j in seq 1 100;do echo “Says alien $j: Greetings, Earthling!” done GRADE B : Changing the structure of the program by using different looping techniques, procedures, variables in such as way that demonstrates some fundamental programming knowledge. Some innovation is included that improves upon the original. Example: let a= while [ $a –lt 11]; do echo “My Hulking power grows $a times!” let a+= done
GRADE A : Designing a program from scratch that demonstrates competency in fundamental programming issues and innovative or entertaining thought. This is a fun, exceptional program that incorporates techniques such as good commenting, error checking, readability, and accessibility. Also, it incorporates basic procedures, variables, loops, user input, mathematics, and creativity found in all programming languages, bash shell scripting included. Example: #! /bin/bash
inputs an answer
hulk(){ echo “Hulk smash!” } spidey(){ echo “My spidey senses are tingling!” } batman(){ echo “I have bat-like super-skills!” }
while [ -z $ans ]; do #While $ans is greater than zero length echo “Do you like Hulk, Spiderman, Batman, or some other wannabe?” read ans done case $ans in [hH]|[hH]ulk )hulk;; # The [] lets you specify different characters [sS]|[sS]piderman )spidey;; [bB]|[bB]batman )batman;;