Open Side Menu Go to the Top
Register
omg omg omg 143 (mayo is gayo) omg omg omg 143 (mayo is gayo)

03-19-2013 , 08:39 PM
Quote:
Originally Posted by nham
the mayo, she will certainly be interested in more intercourse now that you're a war hero
Yeah well she's in Tennessee so fml.
03-19-2013 , 08:40 PM
. Design and implement a stringed musical instrument class using the following guidelines:

a. Data fields for your instrument should include number of strings, an array of string names representing string names (e.g. E,A,D,G), and boolean fields to determine if the instrument is tuned, and if the instrument is currently playing. You are welcome to add additional data fields if you like.

b. A constructor method that set the tuned and currently playing fields to false.

c. Other methods 1) to tune the instrument, 2) to start the instrument playing, and 3) to stop the instrument from playing.

d. Other methods as you see fit (Add at least one unique method).

2. Create a UML class diagram using a diagram tool (e.g. PPT, Visio) of your choice. Prepare the diagrams and place them in a word document along with a brief description of your class.








What is this I don't even.
03-19-2013 , 08:55 PM
Code:
public class JamesKinneyp3 
{
        public static void main(String[] args) throws Exception 
        {
 
 
            java.io.File file = new java.io.File("JamesKinneyp3tst.txt");
 
            //check to see if file already exists
            if (file.exists())
            {
                System.out.println("File already exists");
                System.exit(0);
            }
 
            //create a file
            java.io.PrintWriter output = new java.io.PrintWriter(file);
 
            //declare violin object
            Violin violin1 = new Violin();
 
            //write test results to file
            output.println(violin1.playViolin());
            output.println(violin1.stopPlaying());
            output.println(violin1.tuneViolin());
        } 
 
 
 
class Violin 
 {
     boolean isTuned; //Violin starts off not tuned
     boolean isPlaying; //Violin is not playing at start
 
     //array for Violin strings
     char [] violinStrings = {'E','A','D','G'};
 
     //default Violin object
     public Violin()
     {
         isTuned = false;
         isPlaying = false;
         System.out.println("The violin is not playing, and it is not tuned.");
     }
 
     public Violin(boolean T, boolean P)
     {
         isTuned = T;
         isPlaying = P;
     }
 
     public boolean playViolin()
     {
        System.out.println("The violin is playing!");
        return isPlaying = true;
     }
 
     public boolean stopPlaying()
     {
         System.out.println("The violin has stopped playing.");
         return isPlaying = false;
     }
 
     public boolean tuneViolin()
     {
         System.out.println("The violin is being tuned!");
         return isTuned = true;
     }
 
 }
 
}
03-19-2013 , 09:03 PM
isn't that java tho
03-19-2013 , 09:06 PM
fml i can't believe I spent all that time and wrote it in the wrong language. Also, I keep getting an error: No enclosing instance of type JamesKinneyp3 is accessible. Must qualify the allocation with an enclosing instance of type JamesKinneyp3 (e.g. x.new A() where x is an instance of JamesKinneyp3).
03-19-2013 , 09:11 PM
well you have 2 classes in the same file and you didn't import anything or something
03-19-2013 , 09:16 PM
Fact: First program I ever wrote was done on something like this:


03-19-2013 , 09:19 PM
u wot m8 :|
03-19-2013 , 09:19 PM
Quote:
Originally Posted by gregorio
Fact: First program I ever wrote was done on something like this:


I wrote a program one time for a class i took when i was 18and it was in visual basic but it was dumb and i had to drop the class became the programming got hard.
03-19-2013 , 09:20 PM
Quote:
Originally Posted by nham
u wot m8 :|
.
03-19-2013 , 09:21 PM
hi gregorio
03-19-2013 , 09:21 PM
abe have you ever thinking about doing something cool? like what?
03-19-2013 , 09:22 PM
you guys are such ****ing nerds.
03-19-2013 , 09:23 PM
Quote:
Originally Posted by thedinergetsby
you guys are such ****ing nerds.
imnot a nerd im actually a violent cow murderer now.
03-19-2013 , 09:23 PM
I dont blame my mom for this I guess i was just born naturally sick that way.
03-19-2013 , 09:24 PM
Quote:
Originally Posted by spaceman Bryce
hi gregorio
Hullo
03-19-2013 , 09:24 PM
Quote:
Originally Posted by Mayo
Yeah well she's in Tennessee so fml.
I know you're studying computers and stuff, but Tennessee is actually right next to Kentucky.
03-19-2013 , 09:25 PM
Quote:
Originally Posted by gregorio
Hullo
hi i tried to write programs sometime but I cant really do it unless its like hello world or something
03-19-2013 , 09:26 PM
AAAAAAAAAEEEEEEEEEEEBBBBBBBBBB
03-19-2013 , 09:27 PM
Quote:
Originally Posted by fredd-bird
I know you're studying computers and stuff, but Tennessee is actually right next to Kentucky.
I think mayo is fromthe same town as william sledd
03-19-2013 , 09:29 PM
im trying toget my mom to buy yeast form costco became she has a costco memebrship but she doesnt do it so i dont have yeast.
03-19-2013 , 09:29 PM
yeast is really cheap at costco and i dont have a memebrshio
03-19-2013 , 09:30 PM
kentucky is the second most white trash state I have been to
03-19-2013 , 09:31 PM
Quote:
Originally Posted by spaceman Bryce
yeast is really cheap at costco and i dont have a memebrshio
thats great bryce no one gives a ****.
03-19-2013 , 09:32 PM
Quote:
Originally Posted by spaceman Bryce
thats great bryce no one gives a ****.
why wouldyou write that to yourself

      
m