diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..888862f5 Binary files /dev/null and b/.DS_Store differ diff --git a/05-grade.sh b/05-grade.sh index c148449a..21895db7 100644 --- a/05-grade.sh +++ b/05-grade.sh @@ -19,3 +19,19 @@ fi # that prints "it's cold" if the temperature is < 40 # it's chilly if < 60, it's okay if < 70 and, it's hot for # everything else + + + +temperature=$(weather -t | awk '/Temperature/{print $2}') + + +if ((temperature < 40)); then + echo "It's cold" +elif ((temperature < 60)); then + echo "It's chilly" +elif ((temperature < 70)); then + echo "It's okay" +else + echo "It's hot" +fi + diff --git a/Muhammad Marenah/Muhammad Marenah.sh b/Muhammad Marenah/Muhammad Marenah.sh new file mode 100644 index 00000000..a4aea9b3 --- /dev/null +++ b/Muhammad Marenah/Muhammad Marenah.sh @@ -0,0 +1,13 @@ +# Print my name +echo "Muhammad" + +# Print a nice message +echo "Good Day" + +# Use a while loop to count +counter=1 +while [ $counter -le 5 ] +do + echo "Count: $counter" + ((counter++)) +done \ No newline at end of file diff --git a/Screenshot of 2 branches.png b/Screenshot of 2 branches.png new file mode 100644 index 00000000..f56fe88c Binary files /dev/null and b/Screenshot of 2 branches.png differ diff --git a/Screenshot of branches 2.png b/Screenshot of branches 2.png new file mode 100644 index 00000000..6e433182 Binary files /dev/null and b/Screenshot of branches 2.png differ