From 82a06af8d471cd81a9e1edc94784b96d13d91284 Mon Sep 17 00:00:00 2001 From: BrennonAry Date: Fri, 24 Oct 2025 13:11:01 -0400 Subject: [PATCH 1/3] BrennonAry - New Commands Added a temperature command from Brennon Ary --- 05-grade.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/05-grade.sh b/05-grade.sh index c148449..09fa11c 100644 --- a/05-grade.sh +++ b/05-grade.sh @@ -19,3 +19,18 @@ 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 + + +echo "What is the temperature like today?" +echo "Please give a numeric answer." +read temp + +if [ "$temp" -ge 70 ]; then + echo "It's pretty hot today!" +elif [ "$temp" -ge 60 ]; then + echo "It's a fine day." +elif [ "$temp" -ge 40 ]; then + echo "It's pretty chilly." +else + echo "You might want to bring a jacket..." +fi \ No newline at end of file From 7dcfb942470ceaad7e1e3539549a5c1e072e5d7c Mon Sep 17 00:00:00 2001 From: BrennonAry Date: Fri, 24 Oct 2025 13:40:01 -0400 Subject: [PATCH 2/3] Update 05-grade in new branch --- 05-grade.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/05-grade.sh b/05-grade.sh index c148449..5b5b65c 100644 --- a/05-grade.sh +++ b/05-grade.sh @@ -19,3 +19,20 @@ 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 + + +# In Brennon Branch + +echo "What is the temperature like today?" +echo "Please give a numeric answer." +read temp + +if [ "$temp" -ge 70 ]; then + echo "It's pretty hot today!" +elif [ "$temp" -ge 60 ]; then + echo "It's a fine day." +elif [ "$temp" -ge 40 ]; then + echo "It's pretty chilly." +else + echo "You might want to bring a jacket..." +fi \ No newline at end of file From df321f6628399780dbfec4f2853ae56357e2ef07 Mon Sep 17 00:00:00 2001 From: BrennonAry Date: Fri, 24 Oct 2025 13:46:32 -0400 Subject: [PATCH 3/3] Update-05 --- 05-grade.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/05-grade.sh b/05-grade.sh index 5b5b65c..09fa11c 100644 --- a/05-grade.sh +++ b/05-grade.sh @@ -21,8 +21,6 @@ fi # everything else -# In Brennon Branch - echo "What is the temperature like today?" echo "Please give a numeric answer." read temp