School/College

Awaiting my grade for my Comp Sci exam. I think I got around an 85 - 95 hopefully. Got 2 100's and a 97 on my Linear Algebra exams. Next week I have Linear Algebra and Physics exam. Physics exam I'm not that much worried about which is ironic due to me can't standing Physics.

Luigidenne3DSGCN said:
Yoshidude1 said:
I have to write a book about poetry.  :-\
Hm. That kind of assignment seems quite popular considering my entire close family made books, each with their own unique quirks.

Girl bye lol
 
I did my comp sci project which had so much code. I got 100% too :D
Code:
package proj3;

/**
 * <p>Title: The Question Class</p>
 * 
 * <p>Description: This class will generate 2 random numbers as well as an operator.
 * If addition, both operands will get values that are dependent upon the operator chosen.
 * There are additional methods that will return the value of the operands, return the character
 * of the operator. It will systematically calculate the numerical sentence and can also display
 * the value of that sentence.</p>
 * 
 * @author William Hudson
 */

public class Question 
{
    //instance variables
    private int operand1;
    private int operand2;
    private char operator;
    
    /**
     * default Question constructor
     * gets called when an object of the Question Class is instantiated sending nothing
     * as an argument. It determines the two operands and the operator to use.
     */
    public Question() 
    {
        int addOrSub;
        addOrSub = (int) (Math.random() * 2);
        if (addOrSub == 0)
        {
            operator = '+';
            operand1 = (int) (Math.random() * 13);
            operand2 = (int) (Math.random() * 13);
        }
        else
        {
            operator = '-';
            operand1 = (int) (Math.random() * 7 + 6);
            operand2 = (int) (Math.random() * (operand1 + 1));
        }        
    }
    
    /**
     * getOperand1 Method - returns what's stored in the instance variable operand1
     * @return an integer that was stored in the instance variable operand1
     */
    public int getOperand1()
    {
        return operand1;
    }

    /**
     * getOperand2 Method - returns what's stored in the instance variable operand2
     * @return an integer that was stored in the instance variable operand2
     */
    public int getOperand2()
    {
        return operand2;
    }
    
    /**
     * getOperator Method - returns what's stored in the instance variable operator
     * @return a character that was stored in the instance variable operator
     */
    public char getOperator()
    {
        return operator;
    }
    
    /**
     * toString Method - returns what's stored in the instance variable operand1
     * @return a reference to the String that contains the value of the two operands and the
     * character + or - for the operator
     */
    public String toString()
    {
        String str = new String(operand1 + " " + operator + " " + operand2 + " =");
        return str;
    }
    
    /**
     * determineAnswer Method - returns the value of the numerical equation that's stored
     * in the declarative variable equal
     * @return an integer that was stored in the declarative variable equal
     */
    public int determineAnswer()
    {
        int equal;
        if (operator == '+')
        {
            equal = operand1 + operand2;
            return equal;
        }
        else
        {
            equal = operand1 - operand2;
            return equal;
        }
    }
}
 
Did I mention I had drop out of college before? I think I did, but yeah, last week I made a new college application. This time, if I'm accepted and all, I'll be studying Architecture. 3 fantastic years in college. I really hope I'm taken, because if not, I'll be a lost soul... I mean, idk what else I could do. I have already thought about the construction domain, though I don't really have the physical ability for that, well, at least not now.
 
So after an 8 month break from college, I will finally go back August 25 and I'm kinda happy. For starters, I had to drop college back in december due to some problems, I've been home since then and today got an answer from college and I'll go back, finally. This time, I'm returning to my first plan, I'm going to study architecture and I'm excited. Really hoping it will work this time. For a 3 years of college... yay.

oh yay 4k posts
 
Back
Top