Today's Posts

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-16-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.

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 10:11 AM
A very tough exercise googlevn Shell Programming and Scripting 1 12-23-2010 04:58 AM
Help with this exercise bunkercrazy Homework & Coursework Questions 1 01-23-2010 11:00 PM
Trouble with part of an exercise Phass Shell Programming and Scripting 4 07-26-2009 09:58 AM
Reading 5 Students names and grades using while loop???? dlbomber1 Shell Programming and Scripting 1 11-26-2007 02:46 AM
[question] hard exercise, help needed EnioMarques UNIX for Dummies Questions & Answers 2 09-20-2007 11:22 PM
[question] trouble with an 'exercise' EnioMarques UNIX for Dummies Questions & Answers 6 09-17-2007 10:02 AM

All times are GMT -4. The time now is 10:01 AM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
Show Password