Home Man
Search
Today's Posts
Register

Students must use and complete the template provided. If you do not use the template your post may be deleted! Special homework rules apply here.

Grades exercise

Login to Reply

 
Thread Tools Search this Thread
# 8  
Old 04-15-2018
OMG! i should have known.. thank you!
# 9  
Old 04-16-2018
Any idea on how to proceed with the (more elegant?) case method?
# 10  
Old 04-16-2018
The problem in the case options you have defined is probably that it will be matching a regular (textual) expression, not a numeric range. Consider the characters that your variable is range than the value.


Does that help? A good case statement can make a wonderful replacement to if...then...elif...elif...elif...fi or lots of separate and confusing if statements. Just as good programming technique, your should follow this though and I would expect you would to get a better mark if you can crack it.



Robin
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
UNIX Exercise stew UNIX for Dummies Questions & Answers 1 03-13-2014 09:11 AM
A very tough exercise googlevn Shell Programming and Scripting 1 12-23-2010 03:58 AM
Help with this exercise bunkercrazy Homework & Coursework Questions 1 01-23-2010 10:00 PM
Trouble with part of an exercise Phass Shell Programming and Scripting 4 07-26-2009 08:58 AM
Reading 5 Students names and grades using while loop???? dlbomber1 Shell Programming and Scripting 1 11-26-2007 01:46 AM
[question] hard exercise, help needed EnioMarques UNIX for Dummies Questions & Answers 2 09-20-2007 10:22 PM
[question] trouble with an 'exercise' EnioMarques UNIX for Dummies Questions & Answers 6 09-17-2007 09:02 AM


All times are GMT -4. The time now is 09:47 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password