For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > February 2005 > Big newbie to this...please help!









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Big newbie to this...please help!
GregS

2005-02-22, 4:48 pm

- I'm wondering if anyone can help me get off to the right start with this issue:

- I'm supposed to write a complete program in Perl that calculates the letter grade corresponding to the numerical grade and displays the current numerical grade and corresponding letter grade. The grading criteria is as follows:
A 88-100
B 80-87
C 67-79
D 60-66
F <60

#this is what I have so far

$A=88-100
$B=80-87
$C=67-79
$D=60-66
$F=<60

- I think I can do all of the if-then-else statements but I know the ranges on the numerical scores (example: 88-100) cannot use the - (minus sign), so what do I need to use??

- Thanks!
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com