Come in. Sit down. Blaze up. Chill out.
About this Entry
Posted by: Savethiskid

Visit Savethiskid's Xanga Site

Original: 10/14/2004 8:48 PM
Views: 13
Comments: 1
eProps: 2

Read Comments
Post a Comment
Back to Your Xanga Site


Who gave the eProps?
2 eProps!2 eProps! 2 eProps from:
SarahDeEtte

Thursday, October 14, 2004

 uuuum, I havent been writing much poetry. Just writting code that noone will ever use. Like this one, it changes a number grade to a letter grade.

public class Quiz
{
  public Quiz() {
    lGrade = null;
    nGrade = 0;
}
 
  public Quiz(int nGrade) {
    int i = 0;
    if (nGrade >= 90) {lGrade = "A"; i = 90;}
    if (nGrade >= 80 && nGrade <= 89) {lGrade = "B"; i = 80;}
    if (nGrade >= 70 && nGrade <= 79) {lGrade = "C"; i = 70;}
    if (nGrade <= 69) {lGrade = "F";}
    i = nGrade - i;
    if (i >= 7 && i <= 10) {lGrade = lGrade + "+";}
    if (i <= 3) {lGrade = lGrade + "-";}
   
    this.lGrade = lGrade;
    this.nGrade = nGrade;
  }
 
 
 
  public String toString() {
    return nGrade + ", " + lGrade;
  }
   
  private String lGrade;
  private int nGrade;
}

....profound
 Posted 10/14/2004 8:48 PM - 13 Views - 2 eProps - 1 Comment

Give eProps or Post a Comment

1 Comment

Visit SarahDeEtte's Xanga Site!
at least you added something, and hey, someone, somewhere might use that. In fact it might be one of the clues I left myself in order to regain my memory and save the wolrd from almost certain distruction... I know, I'm special...
Posted 10/14/2004 9:31 PM by SarahDeEtte - reply


Choose Identity
(?)
 
Give eProps (?)
Post a Comment
Add Link | Preview HTML comment help 
  • Say it with Minis! (?)



Back to Savethiskid's Xanga Site!
Note: your comment will appear in Savethiskid's local time zone:
GMT -05:00 (Eastern Standard - US, Canada)
The Cam