The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Software Development

    Discussion in 'Alienware' started by irishhenshin, May 13, 2009.

  1. irishhenshin

    irishhenshin Notebook Consultant

    Reputations:
    117
    Messages:
    215
    Likes Received:
    0
    Trophy Points:
    30
    Eeek....studying for my Sdev exam tomorrow. I've been studying for the last 6 hours and If I have to learn the puesdo code to another sorting algorithm I'm gonna go insane!!

    Anyways...just wondering does anyone else here in the Alienware forum study or studied computer languages?
     
  2. findvikas

    findvikas Notebook Deity

    Reputations:
    272
    Messages:
    1,184
    Likes Received:
    1
    Trophy Points:
    56
    Best of luck for the exam... I studied computer languages... or maybe that's how I speak now.
     
  3. DenverESullivan

    DenverESullivan Notebook Consultant

    Reputations:
    365
    Messages:
    283
    Likes Received:
    0
    Trophy Points:
    30
    irishhenshin,

    Best of luck on your exam....

    I too began my IT career as a programmer/analyst. I know it seems hard, but in reality it's no different than learning a regular 'foreign' language.

    I actually ended up in the hospital twice before my exams due to anxiety attacks. I actually thought I was going to die.... In my mind I made the exams way harder than the actual exam ended up being.

    I'm sure you'll do fine.... By now you actually know the material it's just a matter of recall.

    Good luck :)

    - Denver
     
  4. The_Moo™

    The_Moo™ Here we go again.....

    Reputations:
    3,973
    Messages:
    13,930
    Likes Received:
    0
    Trophy Points:
    455
    lol this may get moved i unno

    we do have a programming and home work help

    i can't code ... i just cant sit still so i do computer repair ...hardware wise wayyyy better to me :)
     
  5. FirecatF7

    FirecatF7 Notebook Consultant

    Reputations:
    84
    Messages:
    129
    Likes Received:
    0
    Trophy Points:
    30
    Java....lol Main Class of a 3 Class Program

    package assign6;


    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.util.Scanner;

    public class Main {


    public static void main(String[] args) throws FileNotFoundException {
    final String fileName = "src/assign6/list.txt";
    Scanner myFile = new Scanner(new FileReader(fileName));
    Scanner myFile2 = new Scanner(new FileReader(fileName));
    Client listOfNames = null;
    Client listBackwards = null;
    Client list2 = null;

    String fName;
    String lName;
    int id;

    myFile.nextLine();

    while (myFile.hasNext()){
    fName = myFile.next();
    lName = myFile.next();
    id = myFile.nextInt();

    if(listOfNames == null)
    listOfNames = new Client(fName, lName, id);
    else
    listOfNames.add(fName, lName, id);

    }
    myFile.close();
    System.out.println("***Original Data***");
    listOfNames.print_List();

    listBackwards = listOfNames;
    listBackwards.reverse();
    System.out.println("------------------------");
    System.out.println("***Reverse Data***");
    listBackwards.print_List();
    System.out.println("------------------------");
    System.out.println("***Forward Data***");

    while (myFile2.hasNext()){
    fName = myFile2.next();
    lName = myFile2.next();
    id = myFile2.nextInt();

    if(list2 == null)
    list2 = new Client(fName, lName, id);
    else
    list2.add(fName, lName, id);

    }
    myFile2.close();

    list2.print_List();

    }


    }
     
  6. FirecatF7

    FirecatF7 Notebook Consultant

    Reputations:
    84
    Messages:
    129
    Likes Received:
    0
    Trophy Points:
    30
    Another Working with Linked Lists and Bounded Lists. Again, main class only of a 4 class double interface Java program....

    /**
    *Assignment 4:
    *Description: CSIS 337 Assignment #5
    *@author Alex Petersen
    *@email [email protected]
    *@date October 29, 2008
    *@team Myself
    */
    package a4;


    import java.util.Scanner;
    import java.io.FileReader;
    import java.io.FileNotFoundException;
    import java.io.FileWriter;
    import java.io.IOException;

    public class MainClass {

    /** main method; This is where it all starts.
    * @param args
    * @throws CloneNotSupportedException
    */
    public static void main(String[] args) throws FileNotFoundException, IOException, CloneNotSupportedException {
    final String pathName = "src/a4/";
    final String fileName = pathName + "MyData.txt";
    Scanner myFile = new Scanner(new FileReader(fileName));

    MyLinkedList<DataRecord> original_list = new MyLinkedList<DataRecord>();

    /**
    * Read from the input file and store in a list
    */
    while (myFile.hasNext()){
    int count = 0;
    int id = myFile.nextInt();
    String name = myFile.nextLine();
    DataRecord d = new DataRecord(name, id);
    original_list.add(count, d );
    count++;
    }
    myFile.close(); //close the input file

    /**
    * Now make a list that is sorted based on the strings in the data records.
    * Use selection sort
    */
    MyLinkedList<DataRecord> sorted_list = (MyLinkedList<DataRecord>) original_list.copy();
    // Sorting Alphabetically

    /** for (int i=0; i<sorted_list.size(); i++){
    // Find the minimum item of the list
    DataRecord mindata = sorted_list.get(i);
    int min = i;
    for (int j=i; j<sorted_list.size()-2; j++){
    // get the jth data records and compare with current min
    DataRecord jdata = sorted_list.get(j);
    String minstr = mindata.getName();
    String jstr = jdata.getName();

    if (minstr.compareTo(jstr) > 0){
    // New minimum found -- so update
    mindata = jdata;
    min = j;
    }
    }
    if (min != i){
    // Swap the ith and (min)th elements
    DataRecord idata = sorted_list.get(i);
    sorted_list.remove(i);
    sorted_list.add(i, mindata);
    sorted_list.remove(min);
    sorted_list.add(min, idata);
    }
    }
    */
    /**
    * Security check: we will try to change an element in the list.
    *
    * If the list class is designed well, any changes we make here should
    * not affect things stored in the list.
    *
    */
    FileWriter out = new FileWriter("src/a4/My-Sorted-Data.txt");
    for (int k=0; k<sorted_list.size()-2; k++){
    //System.out.printf(" %s %d%n", sorted_list.get(k).getName(), sorted_list.get(k).getID() );
    out.write( sorted_list.get(k).getID() + "");
    out.write( sorted_list.get(k).getName() + "\n");

    }

    out.close();

    BoundedList<DataRecord> sorted_list2 = new BoundedList<DataRecord>();

    final String pathName2 = "src/a4/";
    final String fileName2 = pathName2 + "My-Sorted-Data.txt";
    Scanner myFile2 = new Scanner(new FileReader(fileName2));

    while (myFile2.hasNext()){
    int id = myFile2.nextInt();
    String name = myFile2.nextLine();
    DataRecord d = new DataRecord(name, id);
    sorted_list2.add( d );
    }
    myFile.close();



    for (int i=0; i<sorted_list2.size()-2; i = i + 1){
    DataRecord x = sorted_list2.get(i);
    x.setID(x.getID()+100);
    }


    System.out.println("----Original data---------");
    for (int i=0; i<original_list.size()-2; i++){
    System.out.printf(" %s %d%n", original_list.get(i).getName(), original_list.get(i).getID() );
    }
    System.out.println("--------------------------");
    System.out.println("------Sorted data---------");

    for (int i=0; i<sorted_list.size()-2; i++){
    System.out.printf(" %s %d%n", sorted_list.get(i).getName(), sorted_list.get(i).getID() );
    }
    System.out.println("--------------------------");

    System.out.println("------Sorted data + 100---------");
    for (int i=0; i<sorted_list2.size()-2; i++){
    System.out.printf(" %s %d%n", sorted_list2.get(i).getName(), sorted_list2.get(i).getID() );
    }
    //Filewriter
    System.out.println("--------------------------");

    System.out.println("------Sorted File + 100---------");

    FileWriter sortedPlus = new FileWriter("src/a4/My-Sorted-Data2.txt");

    for (int f=0; f<sorted_list2.size()-2; f++){
    System.out.printf(" %s %d%n", sorted_list2.get(f).getName(), sorted_list2.get(f).getID() );

    sortedPlus.write( sorted_list2.get(f).getName() + " ");
    sortedPlus.write( sorted_list2.get(f).getID() + "\n");


    }
    sortedPlus.close();

    }
    }
     
  7. irishhenshin

    irishhenshin Notebook Consultant

    Reputations:
    117
    Messages:
    215
    Likes Received:
    0
    Trophy Points:
    30
    Hehe thats actually how I used to feel about them Denver!! I found though, if I drew diagrams along with how I was trying to explain things, it made everything so much easier! At this stage now at the end of my degree I've done Html, Xhtml, Css, C#, .Net, Asp.net, Java, Sql and C++!

    MR.Moo thats similar to me expect I just have no idea whats happening with the hardware...so I'm prone to the software side of things :)

    Thanks for the code FirecatF7, Java is one of my favourite languages.

    I finished up a project in C# this year but I think I'll be moving in Web and Server Development...as much as I like straight programming with languages like C++ and Java, I don't think I could handle it at industry level!
     
  8. Snowm0bile

    Snowm0bile Starcraftologist

    Reputations:
    265
    Messages:
    1,142
    Likes Received:
    0
    Trophy Points:
    55
    Yeah good luck with that. I think Id blow up if I tried to learn another language.

    But that definitely is not a language, its like dubya tee eff!!!!!!!!!!
     
  9. Rob41

    Rob41 Team Pirate Control

    Reputations:
    896
    Messages:
    2,491
    Likes Received:
    1
    Trophy Points:
    56

    Kinda reminds me of when I was in high school learning DOS. We used to make a series of X's that would form a smiley face on the paper from a pinwheel printer. That was pretty high tech. back then. lol