Search Results

Search: Posts Made By: UniverseCloud
6,956
Posted By UniverseCloud
What are the commands for this ?
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:

If the user...
29,121
Posted By UniverseCloud
OMG! i should have known.. thank you!
OMG! i should have known.. thank you!
29,121
Posted By UniverseCloud
now its doing this, lets say name is abc, grade...
now its doing this, lets say name is abc, grade is 76

it would print abc 76 F not abc 76 C

if [ $grade -ge 50 ] || [ $grade -lt 60 ]; then
echo "$name $grade F"
elif [ $grade -ge 60 ] || [...
29,121
Posted By UniverseCloud
@jgt The grades are weird but thats how the...
@jgt The grades are weird but thats how the exercise is given, haha.

Thank you guys!

P.S So after i added the spaces i am still getting this error "grades.sh: line 6: [: missing `]'"

if [...
29,121
Posted By UniverseCloud
Grades exercise
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:

Write a...
914
Posted By UniverseCloud
It is an exercise. "Write a shell script...
It is an exercise.

"Write a shell script program that will input a name and a mark between 0 and 100. The program then displays the name, the mark, and a letter grade for the mark, as per the...
914
Posted By UniverseCloud
Error received
I have a program that i need to get done that gets the person's name and his grade then prints it in this order "name-grade-gradeletter" so i wrote this code:

#!/bin/bash
while :; do
read -p...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 05:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy