Student Marks Calculator

Hi I have a question from class, this is my first attempt at Java programming:
Write a Java application program that calculates a student?s final course mark, which is comprised of a total assignment mark, mid-term exam mark, and final exam mark.
Input:
Use JOptionPane to enter the following input values;
a.     Enter a student name.
b.     Enter total assignment mark (max. 140) (an integer value)
c.     Enter mid-term exam mark (max. 60) (an integer value)
d.     Enter final exam mark (max. 85) (an integer value)
Processing:
1.     A student?s final mark is weighted as follow:
a.     Assignments are worth 15% of the final mark
b.     The mid-term is worth 40% of the final mark
c.     The final exam is worth 45% of the final mark
2.     Store the maximum mark values (140, 60, 85) as named integer constants
3.     Store the weighted values as named integer constants
4.     Find the weighted values for each of the three categories in step 2 above by using the formula:
student mark / maximum value x weighted value.
5.     Sum the three weighted results to arrive at the final student mark. Express the final mark as a double.
This is the code I did so far, but it won't work gives an err: F:\Java Programming\Term Assignments\2\StudentMarksCalc.java:46: not a statement
          (TOTAL_ASSIGNMENT_MARK / MAX_ASSIGNMENT_MARK * WEIGHTED_ASSIGNMENT
          ^
1 error
Tool completed with exit code 1
So here's the code:
import javax.swing.JOptionPane;
public class StudentMarksCalc
{ //Start StudentMarksCalc class
     public static void main(String[] args)
          // Define and initialize variables
          int STUDENT_NAME; // student name
          int TOTAL_ASSIGNMENT_MARK; //assignment mark
          int MIDTERM_EXAM_MARK; //midterm assignment mark
          int FINAL_EXAM_MARK; // final exam mark
          int MAX_ASSIGNMENT_MARK = 140; //maximum assignment mark
          int MAX_MIDTERM = 60; //maximum midterm mark
          int MAX_FINAL = 85; //maximum final mark
          int STUDENT_MARK = 0; // student mark
          int WEIGHTED_ASSIGNMENT = 0.15;
          int WEIGHTED_MIDTERM = 0.4;
          int WEIGHTED_FINAL = 0.85;
          // Get input from user
          STUDENT_NAME = JOptionPane.showInputDialog("What is "+ "your name? ");
          TOTAL_ASSIGNMENT_MARK = JOptionPane.showInputDialog("Enter your "+ "total assignments mark ");
          MIDTERM_EXAM_MARK = JOptionPane.showInputDialog("Enter your "+ "midterm exam mark ");
          FINAL_EXAM_MARK = JOptionPane.showInputDialog("Enter your "+ "final exam mark ");
          //Convert the strings (old)
          STUDENT_MARK=Double.parseDouble(inputString);
          // Convert the strings to an int
     //STUDENT_MARK= Integer.parseInt(str);
          //Calculate the weighted marks student mark / maximum value x weighted value
          (TOTAL_ASSIGNMENT_MARK / MAX_ASSIGNMENT_MARK * WEIGHTED_ASSIGNMENT
          + MIDTERM_EXAM_MARK / MAX_MIDTERM * WEIGHTED_MIDTERM
          + FINAL_EXAM_MARK / MAX_FINAL * WEIGHTED_FINAL = STUDENT_MARK;
          //Display The results
          JOptionPane.showMessageDialog(null, "Hello " + STUDENT_NAME );
// End the program.
System.exit(0);
}

It seems that you are mixing int and double values leading to 'possible loss of precision' error.
Further, in calculating the marks, the equation should be the other way around; that means that you have to transpose the STUDENT_MARK variable; like STUDENT_MARK = <calculation>.
Also, you cannot directly assign the return value from JOptionPane to an int or double because the return value is a String. It has to be like this is you are using double:
FINAL_EXAM_MARK = Double.parseDouble(JOptionPane.showInputDialog("Enter your "+ "final exam mark "));
For int, it will be like this:
FINAL_EXAM_MARK = Integer.parseInt(JOptionPane.showInputDialog("Enter your "+ "final exam mark "));
I hope this answers your question.

Similar Messages

  • How to display the status message based on student marks..

    Hi all,
    i have student table that has columns mark1,mark2,mak3...
    i want to display the student name,staus as pass or fail based on the marks.. in a single query..
    if the student score above 30 in all the subject i should display the status as pass other wise fail ( note:- status is not a column in the table)
    Thanks

    select e.student_name
          ,e.mark1
          ,e.mark2
          ,e.mark3
          ,decode(pass.flag,'Y','PASS','FAIL') status
    from   exam e
           , (select e2.student_id,'Y' flag
              from   exam e2
              where  e2.mark1 > 30
              and    e2.mark2 > 30
              and    e2.mark3 > 30) pass
    where e.student_id = pass.student_id (+);
    STUDENT_NAME      MARK1      MARK2      MARK3 STATUS
    CNAME                40         50         60 PASS  
    DNAME                60         70         80 PASS  
    ANAME                20         30         40 FAIL  
    BNAME                30         40         50 FAIL Edited by: JamesK on May 30, 2013 12:38 PM
    Edited by: JamesK on May 30, 2013 12:40 PM

  • Deletion of Data in Inventory Cube -Effect of Marker

    Hi,
    We would like to delete some OLD data from our Inventory cube,Will it effect the Marker.If yes, how  and is there any way out where we can find out where the marker has been set i.e upto what request or to which date,any table which stores the marker update or method by which  we will come to know as to where the marker is set.Suggest apart from running the Report which has non cumulative KFs.
    Scenerio.
    I have loaded data for 4 month,(say Jan,Feb,March and April ) in  Inventory cube,say each month one request so 4 requests all together. I will  compress all three OLD requests (for Jan ,Feb and March) which r OLD and I keep the latest uncompressed (April). The compression happens with Marker update only(Without the Check).we are running the report to check the change in values.
    Suppose if I delete data of Feb, Will my Marker get Effected ???
    Rgds
    SVU

    Hi SVU123,
    We would like to delete some OLD data from our Inventory cube.
    Will it effect the Marker.If yes, how and is there any way out where we can find out where the marker has been set i.e upto what request or to which date,any table which stores the marker update or method by which we will come to know as to where the marker is set.Suggest apart from running the Report which has non cumulative KFs.
    I think, this you can check in /BI0/L0IC_C03. For each plant/material (validity determining characteristic) you will have two record maintained in this table. The record with request SID = 1 will tell you when the marker was last updated for that plant/material.
    I think, all the marker values are stored as reciept cumulative key figures with 0CALDAY as 31/12/9999. Check, if this is the case in List cube/ Efact table(not sure on Efact table though).
    Deletion should not disturb the marker value if the restriction of material and 0CALDAY is given.
    This will avoid deletion of the marker value, which I assume is stored in 31/12/9999.
    Also, ensure that you are not deleting the values which have not been used in Marker calculation,(dates greater than dates when the marker was last compressed
    Suggest you to check the whole deltion in Quality or make a copy cube in production and work on repairiing it.
    Scenerio.
    I have loaded data for 4 month,(say Jan,Feb,March and April ) in Inventory cube,say each month one request so 4 requests all together. I will compress all three OLD requests (for Jan ,Feb and March) which r OLD and I keep the latest uncompressed (April). The compression happens with Marker update only(Without the Check).we are running the report to check the change in values.
    Suppose if I delete data of Feb, Will my Marker get Effected ???
    I think, it shouldn't. But I suggest you to try this before..
    Hope this helps,
    Best regards,
    Sunmit.

  • Essbase Intelligent Calculations

    Hi All,
    My understanding of Intelligent calculation is that when a cell is marked dirty then it is considered for calculation otherwise it is ignored. I have a business rule (script at the end) which no matter how many times I run it takes the same time irrespective of whether some updates have been made to the data. Am I missing something?
    Thanks,
    AD
    SET UPDATECALC ON;
    SET UPTOLOCAL OFF;
    SET AGGMISSG OFF;
    SET FRMLBOTTOMUP OFF;
    FIX("FY08")
    FIX("Actual")
    FIX("Final Submission")
    FIX(@IDESCENDANTS("Source Countries"))
    FIX(@IDESCENDANTS("Uk P"))
    FIX((@LEVMBRS("Period", 0)) AND (@IDESCENDANTS("YearTotal")))
    @IDESCENDANTS("Product Contribution");
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    FIX("FY08")
    FIX("Actual")
    FIX("Final Submission")
    FIX(@IDESCENDANTS("UK P"))
    FIX(@IDESCENDANTS("Product Contribution"))
    FIX((@LEVMBRS("Period", 0)) AND (@IDESCENDANTS("YearTotal")))
    @IDESCENDANTS("Source Countries");
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    FIX("FY08")
    FIX("Actual")
    FIX("Final Submission")
    FIX(@IDESCENDANTS("Source Countries"))
    FIX(@IDESCENDANTS("Product Contribution"))
    FIX((@LEVMBRS("Period", 0)) AND (@IDESCENDANTS("YearTotal")))
    @IDESCENDANTS("UK P");
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    FIX("FY08")
    FIX("Actual")
    FIX("Final Submission")
    FIX(@IDESCENDANTS("Source Countries"))
    FIX(@IDESCENDANTS("UK P"))
    FIX(@IDESCENDANTS("Product Contribution"))
    FIX((@LEVMBRS("Period", 0)) AND (@IDESCENDANTS("YearTotal")))
    CALC DIM("Product");
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX
    ENDFIX

    Add another set command SET CLEARUPDATESTATUS AFTER;
    Essbase marks calculated data blocks as clean, even if you are calculating a subset of your database.

  • URGENT HELP NEEDED FOR JTABLE PROBLEM!!!!!!!!!!!!!!!!!

    firstly i made a jtable to adds and deletes rows and passes the the data to the table model from some textfields. then i wanted to add a tablemoselistener method in order to change the value in the columns 1,2,3,4 and set the result of them in the column 5. when i added that portion of code the buttons that added and deleted rows had problems to function correctly..they dont work at all..can somebody have a look in my code and see wot is wrong..thanx in advance..
    below follows the code..sorry for the mesh of the code..you can use and run the code and notice the problem when you press the add button..also if you want delete the TableChanged method to see that the add button works perfect.
    * Created on 03-Aug-2005
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    * @author Administrator
    * TODO To change the template for this generated type comment go to
    * Window - Preferences - Java - Code Style - Code Templates
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.Vector;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.event.TableModelEvent;
    import javax.swing.event.TableModelListener;
    import java.io.*;
    public class NodesTable extends JFrame implements TableModelListener, ActionListener {
    JTable jt;
    DefaultTableColumnModel dtcm;
    TableColumn column[] = new TableColumn[100];
    DefaultTableModel dtm;
    JLabel Name,m1,w1,m2,w2;
    JTextField NameTF,m1TF,w1TF,m2TF,w2TF;
    String c [] ={ "Name", "Assessment1", "Weight1" , "Assessment2","Weight2 ","TotalMark"};
    float x=0,y=0,tMark=0,z = 0;
    float j=0;
    int i;
         JButton DelButton;
         JButton AddButton;
         JScrollPane scrollPane;
         JPanel mainPanel,buttonPanel;
         JFrame frame;
         Object[][] data =
              {"tami", new Float(1), new Float(1.11), new Float(1.11),new Float(1),new Float(1)},
              {"tami", new Float(1), new Float(2.22), new Float(2.22),new Float(1),new Float(1)},
              {"petros", new Float(1), new Float(3.33), new Float(3.33),new Float(1),new Float(1)},
              {"petros", new Float(1), new Float(4.44), new Float(4.44),new Float(1),new Float(1)}
    public NodesTable() {
    super("Student Marking Spreadsheet");
    this.AddNodesintoTable();
    setSize(400,250);
    setVisible(true);
    public void AddNodesintoTable(){
    // Create a vector object and load them with the data
    // to be placed on each row of the table
    dtm = new DefaultTableModel(data,c);
    dtm.addTableModelListener( this );
    jt = new JTable(dtm){
         // Returning the Class of each column will allow different
              // renderers to be used based on Class
              public Class getColumnClass(int column)
                   return getValueAt(0, column).getClass();
              // The Cost is not editable
              public boolean isCellEditable(int row, int column)
                   int modelColumn = convertColumnIndexToModel( column );
                   return (modelColumn == 5) ? false : true;
    //****************************User Input**************************
    //Add another node
    //Creating and setting the properties
    //of the panel's component (panels and textfields)
    Name = new JLabel("Name");
    Name.setForeground(Color.black);
    m1 = new JLabel("Mark1");
    m1.setForeground(Color.black);
    w1 = new JLabel("Weigth1");
    w1.setForeground(Color.black);
    m2= new JLabel("Mark2");
    m2.setForeground(Color.black);
    w2 = new JLabel("Weight2");
    w2.setForeground(Color.black);
    NameTF = new JTextField(5);
    NameTF.setText("Node");
    m1TF = new JTextField(5);
    w1TF = new JTextField(5);
    m2TF=new JTextField(5);
    w2TF=new JTextField(5);
    //creating the buttons
    JPanel buttonPanel = new JPanel();
    AddButton=new JButton("Add Row");
    DelButton=new JButton("Delete") ;
    buttonPanel.add(AddButton);
    buttonPanel.add(DelButton);
    //adding the components to the panel
    JPanel inputpanel = new JPanel();
    inputpanel.add(Name);
    inputpanel.add(NameTF);
    inputpanel.add(m1);
    inputpanel.add(m1TF);
    inputpanel.add(w1);
    inputpanel.add(w1TF);
    inputpanel.add(m2);
    inputpanel.add(m2TF);
    inputpanel.add(w2TF);
    inputpanel.add(w2);
    inputpanel.add(AddButton);
    inputpanel.add(DelButton);
    //creating the panel and setting its properties
    JPanel tablepanel = new JPanel();
    tablepanel.add(new JScrollPane(jt, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED
    , JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS));
    getContentPane().add(tablepanel, BorderLayout.CENTER);
    getContentPane().add(inputpanel, BorderLayout.SOUTH);
    //Method to add row for each new entry
    public void addRow()
    Vector r=new Vector();
    r=createBlankElement();
    dtm.addRow(r);
    jt.addNotify();
    public Vector createBlankElement()
    Vector t = new Vector();
    t.addElement((String) " ");
    t.addElement((String) " ");
    t.addElement((String) " ");
    t.addElement((String) " ");
    t.addElement((String) " ");
    return t;
    // Method to delete a row from the spreadsheet
    void deleteRow(int index)
    if(index!=-1) //At least one Row in Table
    dtm.removeRow(index);
    jt.addNotify();
    // Method that adds and deletes rows
    // from the table by pressing the
    //corresponding buttons
    public void actionPerformed(ActionEvent ae){
         Float z=new Float (m2TF.getText());
    String Name= NameTF.getText();
    Float x= new Float(m1TF.getText());
    Float y= new Float(w1TF.getText());
    Float j=new Float (w2TF.getText());
    JFileChooser jfc2 = new JFileChooser();
    String newdata[]= {Name,String.valueOf(x),String.valueOf(y),
    String.valueOf(z),String.valueOf(j)};
    Object source = ae.getSource();
    if(ae.getSource() == (JButton)AddButton)
    addRow();
    if (ae.getSource() ==(JButton) DelButton)
    deleteRow(jt.getSelectedRow());
    //method to calculate the total mark in the TotalMark column
    //that updates the values in every other column
    //It takes the values from the column 1,2,3,4
    //and changes the value in the column 5
    public void tableChanged(TableModelEvent e) {
         System.out.println(e.getSource());
         if (e.getType() == TableModelEvent.UPDATE)
              int row = e.getFirstRow();
              int column = e.getColumn();
              if (column == 1 || column == 2 ||column == 3 ||column == 4)
                   TableModel model = jt.getModel();
              float     q= ((Float)model.getValueAt(row,1)).floatValue();
              float     w= ((Float)model.getValueAt(row,2)).floatValue();
              float     t= ((Float)model.getValueAt(row,3)).floatValue();
              float     r= ((Float)model.getValueAt(row,4)).floatValue();
                   Float tMark = new Float((q*w+t*r)/(w+r) );
                   model.setValueAt(tMark, row, 5);
    // Which cells are editable.
    // It is only necessary to implement this method
    // if the table is editable
    public boolean isCellEditable(int row, int col)
    { return true; //All cells are editable
    public static void main(String[] args) {
         NodesTable t=new NodesTable();
    }

    There are too many mistakes in your program. It looks like you are new to java.
    Your add and delete row buttons are not working because you haven't registered your action listener with these buttons.
    I have modifide your code and now it works fine. Just put some validation code for the textboxes becuase it throws exception when user presses add button without entering anything.
    Here is the updated code: Do the diff and u will know my changes
    * Created on 03-Aug-2005
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    * @author Administrator
    * TODO To change the template for this generated type comment go to Window -
    * Preferences - Java - Code Style - Code Templates
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.JTextField;
    import javax.swing.event.TableModelEvent;
    import javax.swing.event.TableModelListener;
    import javax.swing.table.DefaultTableColumnModel;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableColumn;
    import javax.swing.table.TableModel;
    public class NodesTable extends JFrame implements TableModelListener,
              ActionListener {
         JTable jt;
         DefaultTableColumnModel dtcm;
         TableColumn column[] = new TableColumn[100];
         DefaultTableModel dtm;
         JLabel Name, m1, w1, m2, w2;
         JTextField NameTF, m1TF, w1TF, m2TF, w2TF;
         String c[] = { "Name", "Assessment1", "Weight1", "Assessment2", "Weight2 ",
                   "TotalMark" };
         float x = 0, y = 0, tMark = 0, z = 0;
         float j = 0;
         int i;
         JButton DelButton;
         JButton AddButton;
         JScrollPane scrollPane;
         JPanel mainPanel, buttonPanel;
         JFrame frame;
         public NodesTable() {
              super("Student Marking Spreadsheet");
              this.AddNodesintoTable();
              setSize(400, 250);
              setVisible(true);
         public void AddNodesintoTable() {
              // Create a vector object and load them with the data
              // to be placed on each row of the table
              dtm = new DefaultTableModel(c,0);
              dtm.addTableModelListener(this);
              jt = new JTable(dtm) {
                   // The Cost is not editable
                   public boolean isCellEditable(int row, int column) {
                        int modelColumn = convertColumnIndexToModel(column);
                        return (modelColumn == 5) ? false : true;
              //****************************User Input**************************
              //Add another node
              //Creating and setting the properties
              //of the panel's component (panels and textfields)
              Name = new JLabel("Name");
              Name.setForeground(Color.black);
              m1 = new JLabel("Mark1");
              m1.setForeground(Color.black);
              w1 = new JLabel("Weigth1");
              w1.setForeground(Color.black);
              m2 = new JLabel("Mark2");
              m2.setForeground(Color.black);
              w2 = new JLabel("Weight2");
              w2.setForeground(Color.black);
              NameTF = new JTextField(5);
              NameTF.setText("Node");
              m1TF = new JTextField(5);
              w1TF = new JTextField(5);
              m2TF = new JTextField(5);
              w2TF = new JTextField(5);
              //creating the buttons
              JPanel buttonPanel = new JPanel();
              AddButton = new JButton("Add Row");
              AddButton.addActionListener(this);
              DelButton = new JButton("Delete");
              DelButton.addActionListener(this);
              buttonPanel.add(AddButton);
              buttonPanel.add(DelButton);
              //adding the components to the panel
              JPanel inputpanel = new JPanel();
              inputpanel.add(Name);
              inputpanel.add(NameTF);
              inputpanel.add(m1);
              inputpanel.add(m1TF);
              inputpanel.add(w1);
              inputpanel.add(w1TF);
              inputpanel.add(m2);
              inputpanel.add(m2TF);
              inputpanel.add(w2TF);
              inputpanel.add(w2);
              inputpanel.add(AddButton);
              inputpanel.add(DelButton);
              //creating the panel and setting its properties
              JPanel tablepanel = new JPanel();
              tablepanel.add(new JScrollPane(jt,
                        JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                        JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS));
              getContentPane().add(tablepanel, BorderLayout.CENTER);
              getContentPane().add(inputpanel, BorderLayout.SOUTH);
         //Method to add row for each new entry
         public void addRow() {
              Float z = new Float(m2TF.getText());
              String Name = NameTF.getText();
              Float x = new Float(m1TF.getText());
              Float y = new Float(w1TF.getText());
              Float j = new Float(w2TF.getText());
              String newdata[] = { Name, String.valueOf(x), String.valueOf(y),
                        String.valueOf(z), String.valueOf(j) };
              dtm.addRow(newdata);
         // Method to delete a row from the spreadsheet
         void deleteRow(int index) {
              if (index != -1) //At least one Row in Table
                   dtm.removeRow(index);
                   jt.addNotify();
         // Method that adds and deletes rows
         // from the table by pressing the
         //corresponding buttons
         public void actionPerformed(ActionEvent ae) {
              Object source = ae.getSource();
              if (ae.getSource() == (JButton) AddButton) {
                   addRow();
              if (ae.getSource() == (JButton) DelButton) {
                   deleteRow(jt.getSelectedRow());
         //method to calculate the total mark in the TotalMark column
         //that updates the values in every other column
         //It takes the values from the column 1,2,3,4
         //and changes the value in the column 5
         public void tableChanged(TableModelEvent e) {
              System.out.println(e.getSource());
              //if (e.getType() == TableModelEvent.UPDATE) {
                   int row = e.getFirstRow();
                   int column = e.getColumn();
                   if (column == 1 || column == 2 || column == 3 || column == 4) {
                        TableModel model = jt.getModel();
                        float q = (new Float(model.getValueAt(row, 1).toString())).floatValue();
                        float w = (new Float(model.getValueAt(row, 2).toString())).floatValue();
                        float t = (new Float(model.getValueAt(row, 3).toString())).floatValue();
                        float r = (new Float(model.getValueAt(row, 4).toString())).floatValue();
                        Float tMark = new Float((q * w + t * r) / (w + r));
                        model.setValueAt(tMark, row, 5);
         // Which cells are editable.
         // It is only necessary to implement this method
         // if the table is editable
         public boolean isCellEditable(int row, int col) {
              return true; //All cells are editable
         public static void main(String[] args) {
              NodesTable t = new NodesTable();
    }

  • Displaying graphical representation of data in hash tables as bar chart?

    I want to be able to display results in my hash table as a bar chart i don't know how to do it could someone help me I've looked through tutorials couldn't find any information that actually helped.
    In my program it doesnt allow matching the capital and small letters
    so for instance if I already have Mike it allows for me to input mike in again so there are 2 Mikes.
    I also want to do a simple user interface the tutorial for it is not simple to understand could any one tell me how to create a simple user interface like putting a button into a place wher i want it to be.
    im not asking anyone to do it for me i just want people to show me how to do it
    thank you
    Edited by: Tek_Hedef on Dec 1, 2007 4:30 AM

    Thanks for the ideas pal but I did have a go at it but my bit of code is making it crash but i removed it now so here's what I have so far
    import java.io.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    class StudentDetails extends JFrame implements ActionListener
         private JTextField StudentNameTxt, StudentMarkTxt;
        private JButton DeleteStudentDetailsBtn, DisplayAllStudentsBtn, SearchStudentBtn, FailedStudentsBtn, PassedStudentsBtn, DistinctionStudentsBtn, AddStudentDetailsBtn, ExitBtn;
        private JPanel DisplayStudentDetailsPnl;
        private JLabel StudentNameLbl, StudentMarkLbl;
        private JTextArea DisplayResultsTxt;
        private Hashtable StudentDetailsTbl;
        private String StudentName, StudentMark;
        public static void main(String[] args)
            StudentDetails frame = new StudentDetails();
             frame.setSize(600,600);
            frame.createGUI();
            frame.setVisible(true);
        public void display(JPanel DisplayStudentDetailsPnl)
            Graphics paper = DisplayStudentDetailsPnl.getGraphics();
            paper.setColor(Color.white);
            paper.fillRect(0, 0, 500, 500);
            paper.setColor(new Color((int)(Math.random()*255),(int)(Math.random()*255),(int)(Math.random()*255) ));
        private void createGUI()
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            Container window = getContentPane();
            window.setLayout(new FlowLayout());
            StudentDetailsTbl = new Hashtable();
            StudentNameLbl = new JLabel("Student Name");
            window.add(StudentNameLbl);
            StudentNameTxt = new JTextField(15);
            window.add(StudentNameTxt);
            StudentMarkLbl = new JLabel("Student Mark");
            window.add(StudentMarkLbl);
            StudentMarkTxt = new JTextField(3);
            window.add(StudentMarkTxt);
            AddStudentDetailsBtn = new JButton("Add Student and Mark");
            window.add(AddStudentDetailsBtn);
            AddStudentDetailsBtn.addActionListener(this);
            DeleteStudentDetailsBtn = new JButton("Delete Student");
            window.add(DeleteStudentDetailsBtn);
            DeleteStudentDetailsBtn.addActionListener(this);
            DisplayAllStudentsBtn = new JButton("Display all Students and Marks");
            window.add(DisplayAllStudentsBtn);
            DisplayAllStudentsBtn.addActionListener(this);
            SearchStudentBtn = new JButton("Search Student");
            window.add(SearchStudentBtn);
            SearchStudentBtn.addActionListener(this);
            FailedStudentsBtn = new JButton("Students which Failed");
            window.add(FailedStudentsBtn);
            FailedStudentsBtn.addActionListener(this);
            PassedStudentsBtn = new JButton("Students which Passed");
            window.add(PassedStudentsBtn);
            PassedStudentsBtn.addActionListener(this);
            DistinctionStudentsBtn = new JButton("Students with Distinction");
            window.add(DistinctionStudentsBtn);
            DistinctionStudentsBtn.addActionListener(this);
            ExitBtn = new JButton("Exit");
            window.add(ExitBtn);
            ExitBtn.addActionListener(this);
            DisplayResultsTxt = new JTextArea();
            DisplayResultsTxt.setPreferredSize(new Dimension(200, 200));
            DisplayResultsTxt.setBackground(Color.white);
            window.add(DisplayResultsTxt);
            DisplayResultsTxt.enable(false);
        public void actionPerformed (ActionEvent e)
             if (e.getSource()== AddStudentDetailsBtn)
                  StudentName = StudentNameTxt.getText();
                   StudentMark = StudentMarkTxt.getText();
                  DisplayResultsTxt.setText("");
                  StudentDetailsTbl.put(StudentName, StudentMark);
                Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                String[] keys = (String[]) StudentDetailsTbl.keySet().toArray(new String[0]);       
                Arrays.sort(keys); 
                    for (String key : keys)
                         DisplayResultsTxt.append(key + " : " + StudentDetailsTbl.get(key)+ "\n");
                    StudentNameTxt.setText("");
                    StudentMarkTxt.setText("");
             if (e.getSource() == DeleteStudentDetailsBtn )
             if (StudentDetailsTbl.containsKey(StudentNameTxt.getText().trim()))
                  DisplayResultsTxt.setText("");     
                  String txt = StudentNameTxt.getText();
                Enumeration enumStudentName = StudentDetailsTbl.keys()  ;                   
                    String currentelement = (String)enumStudentName.nextElement();
                     StudentDetailsTbl.remove(txt);
                     DisplayResultsTxt.append(txt + " has been deleted");  
            if (e.getSource() == SearchStudentBtn)
            if (StudentDetailsTbl.containsKey(StudentNameTxt.getText().trim()))
                 String txt = StudentNameTxt.getText();
                 String result;
                 DisplayResultsTxt.setText("");
                 Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                   while (enumStudentName.hasMoreElements())
                        String currentelement = (String)enumStudentName.nextElement();
                    result = (StudentDetailsTbl.get(currentelement).toString());
                        if (txt.equals(currentelement))
                             DisplayResultsTxt.append(currentelement + " " + result);
                        else JOptionPane.showMessageDialog(null, "Student Name could not be identified");
            if (e.getSource() == DisplayAllStudentsBtn)
                  DisplayResultsTxt.setText("");
                 Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                while (enumStudentName.hasMoreElements())
                DisplayResultsTxt.append(enumStudentName.nextElement()+ " " + enumStudentMark.nextElement()+ "\n");
            if (e.getSource() == PassedStudentsBtn)
                 DisplayResultsTxt.setText("");
                 Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                while (enumStudentName.hasMoreElements())
                     int Mark = Integer.parseInt((String)enumStudentMark.nextElement());
                     String Name = (String)enumStudentName.nextElement();
                     if (Mark >=40)
                          DisplayResultsTxt.append(Name + " " + Mark + "\n");
            if (e.getSource() == FailedStudentsBtn)
                 DisplayResultsTxt.setText("");
                 Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                while (enumStudentName.hasMoreElements())
                     int Mark = Integer.parseInt((String)enumStudentMark.nextElement());
                     String Name = (String)enumStudentName.nextElement();
                     if (Mark <40)
                          DisplayResultsTxt.append(Name + " " + Mark + "\n");
            if (e.getSource() == DistinctionStudentsBtn)
                 DisplayResultsTxt.setText("");
                 Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                while (enumStudentName.hasMoreElements())
                     int Mark = Integer.parseInt((String)enumStudentMark.nextElement());
                     String Name = (String)enumStudentName.nextElement();
                     if (Mark >=75)
                          DisplayResultsTxt.append(Name + " " + Mark + "\n");
    }

  • Arrays of Different Data Types

    Hi, I am studing Java Development as 2 of my units (Programming Theory and Programming Practice), and I have a problem with a program which involves an array that contains two data types; int and long. The program is designed to store Student ID's and Exam Marks (1 Exam Mark per ID). The program is designed to use sorting, and the array is to be populated at the start of program execution. It compiles fine, but I get an error when the program is running as soon as you input the first value. The program is not very complex, but I need to understand how to get this fixed and why is isn't already. Any help is appreciated as this is a genuine problem. This program follows a consistent style template given to me by my tutor. The source is given below, and I appreciate any positive response.
    Thanks in advance...
    Aaron
         Name: Aaron Allport ([email protected])
         Assignment Number: 7
         Program Title/Topic: Student Marks/ID's with use of Array's
         Program Description: Using arrays and search/sort methods,
                                  write a program that keeps a record of
                                  students on a module, and allows the
                                  data to be manipulated.
         Course Title/Unit: BTEC National in Computing
    import javax.swing.JOptionPane;
    class StudentRecord
         int mark;
         long sID;
    public class Assignment7
         public static void main(String args[])
              final int numOfStudents = 11;
              String highestMark;
              String lowestMark;
              String examMark;
              long studentID = 00000000;
              String menuChoice;
              StudentRecord module[] = new StudentRecord[numOfStudents];
              inputRecords(module, numOfStudents);
              do
              menuChoice = JOptionPane.showInputDialog(null,
                   "STUDENT MODULE MARKS\n\n" +
                   "1. Find student with highest mark\n" +
                   "2. Find student with lowest mark\n" +
                   "3. Find grade for a given student\n" +
                   "4. Sort records by Student ID\n" +
                   "5. Sort records by Student Mark\n" +
                   "6. Display all records");
                        if (menuChoice.equals("1"))
                             highestMark = findHighest(module, numOfStudents);
                        else if (menuChoice.equals("2"))
                             lowestMark = findLowest(module, numOfStudents);
                        else if (menuChoice.equals("3"))
                             examMark = findGrade(module, numOfStudents, studentID);
                        else if (menuChoice.equals("4"))
                             studentIDSort(module, numOfStudents);
                             displayData(module, numOfStudents);
                        else if (menuChoice.equals("5"))
                             markSort(module, numOfStudents);
                             displayData(module, numOfStudents);
                        else if (menuChoice.equals("6"))
                             displayData(module, numOfStudents);
                   } while (menuChoice.equalsIgnoreCase("Q") == false);     
                   System.exit(0);
         public static void inputRecords(StudentRecord module[], int numOfStudents)
              int i;
              String inputMark;
              String inputStudentID;
              for (i = 1; i < numOfStudents; i++)
                   module[ i] = new StudentRecord();
                   inputStudentID = JOptionPane.showInputDialog(null,
                                       "Please enter Student ID for position " + i + ":");
                   module[ i].sID = Long.parseLong(inputStudentID);
                   inputMark = JOptionPane.showInputDialog(null,
                                       "Please enter Student Mark for position " + i + ":");
                   module[ i].mark = Integer.parseInt(inputMark);
         public static String findHighest(StudentRecord module[], int numOfStudents)
              int highStudentID;
              int j;
              StudentRecord temp = new StudentRecord();
              boolean intChange = true;
              int pass = 1;
              String outputMark;
              String outputSID;
              while((pass <= numOfStudents - 1) && (intChange))
                   intChange = false;
                   for (j = 1; j <= numOfStudents - pass; j++)
                        module[j] = new StudentRecord();
                        if(module[j].mark > module[j + 1].mark)
                             intChange = true;
                             temp.mark = module[j].mark;
                             temp.sID = module[j].sID;
                             module[j] = module[j + 1];
                             module[j + 1].mark = temp.mark;
                             module[j + 1].sID = temp.sID;
                   pass++;
              outputSID = String.valueOf(module[module.length].sID);
              outputMark = String.valueOf(module[module.length].mark);
              return (outputSID + " " + outputMark);
         public static String findLowest(StudentRecord module[], int numOfStudents)
              String outputMark;
              String outputSID;
              int j;
              StudentRecord temp = new StudentRecord();
              boolean intChange = true;
              int pass = 1;
              while((pass <= numOfStudents - 1) && (intChange))
                   intChange = false;
                   for (j = 1; j <= numOfStudents - pass; j++)
                        module[j] = new StudentRecord();
                        if(module[j].mark > module[j + 1].mark)
                             intChange = true;
                             temp.mark = module[j].mark;
                             temp.sID = module[j].sID;
                             module[j] = module[j + 1];
                             module[j + 1].mark = temp.mark;
                             module[j + 1].sID = temp.sID;
                   pass++;
              outputSID = String.valueOf(module[1].sID);
              outputMark = String.valueOf(module[1].mark);
              return (outputSID + " " + outputMark);
         public static String findGrade(StudentRecord module[], int numOfStudents, long studentID)
              String foundGrade = "";
              int i;
              String outputSID;
              String outputMark;
              for (i = 1; i <= module.length; i++)
                   module[ i] = new StudentRecord();
                   if (studentID == module[ i].sID)
                        outputSID = String.valueOf(module[ i].sID);
                        outputMark = String.valueOf(module[ i].mark);
                        foundGrade = (outputSID + " " + outputMark);
              if (foundGrade == "")
                   JOptionPane.showMessageDialog(null,
                        "No grade found for Student: " + studentID);
              return foundGrade;
         public static void studentIDSort(StudentRecord module[], int numOfStudents)
              int i;
              int j;
              StudentRecord temp = new StudentRecord();
              for (i = (module.length - 1); i >= 0; i--)
                   for (j = 1; j <= i; j++)
                        module[j] = new StudentRecord();
                        if (module[j - 1].sID > module[j].sID)
                             temp = module[j - 1];
                             module[j - 1] = module[j];
                             module[j] = temp;
         public static void markSort(StudentRecord module[], int numOfStudents)
              int i;
              int j;
              StudentRecord temp = new StudentRecord();
              for (i = (module.length - 1); i >= 0; i--)
                   for (j = 1; j <= i; j++)
                        module[j] = new StudentRecord();
                        if (module[j - 1].mark > module[j].mark)
                             temp = module[j - 1];
                             module[j - 1] = module[j];
                             module[j] = temp;
         public static void displayData(StudentRecord module[], int numOfStudents)
              String outputMessage = "";
              int i;
              for (i = 1; i <= module.length; i++)
                   module[ i] = new StudentRecord();
                   outputMessage += (module[ i].sID + " " + module[ i].mark + "\n");
              JOptionPane.showMessageDialog(null,
                   "Data Display\n" +
                   "**** *******\n\n" +
                   outputMessage,
                   "Data Display", JOptionPane.INFORMATION_MESSAGE);
    }

    Try this piece of code...... I adapted it to your program, so it starts from 1. You should pass numOfStudents - 1 as numOfStudents to don't get the notorious error =D
    if (menuChoice.equals("1"))
    findHighest(module, numOfStudents - 1);
    I added the println statement because in your prog isn't present an output routine (well, at last I didn't see it..... maybe because I'm sleepy =) )
    public static void findHighest(StudentRecord module[], int numOfStudents)
    String outputMark;
    String outputSID;
    StudentRecord retValue = new StudentRecord();
    retValue.sID = module[1].sID;
    retValue.mark = module[1].mark;
    for (int i = 2; i <= numOfStudents; i++) {
         if (module.mark > retValue.mark) {
         retValue.sID = module[i].sID;
         retValue.mark = module[i].mark;
    outputSID = String.valueOf(retValue.sID);
    outputMark = String.valueOf(retValue.mark);
    System.out.println(outputSID + " " + outputMark);
    Hope it can help you

  • Sorting not working if table linked to another table

    Got a table with student marks:
    Table 1 student
    mark
    A
    98
    B
    79
    C
    82
    if I copy/paste the marks to another table then sort (ascending, sort by B entire table), it is sorting as expected:
    Table 2 student
    Mark
    B
    79
    C
    82
    A
    98
    if instead I go in Table 2 and enter a formula in B2 to get the mark from table 1 (=Table1::B2), fill down the cells, Table 2 will not sort correctly and output this instead!!!!:
    Table 2 student
    Mark
    B
    98
    C
    79
    A
    82
    Yet another bug and it got submitted to Apple but if more users complain as well (using Provide Numbers Feedback), we might finally get Apple to release a bug-free version of Numbers that works as well as Excel for such basic tasks.

    squarebox is styled in three different places
    http://mljdesigns.com.au/Beaumaris%20North_2-2013/index-beaunps4.css line#513
    http://mljdesigns.com.au/Beaumaris%20North_2-2013/index-beaunps4.css line#623
    In the main document line#10
    I do noy know if this has anything to do with your problem as I cannot fault the position of the image.
    You may also want to have a look at line#104 of the main document where there is a stray ending division tag.

  • Significant of key field in Info cube table

    Hi,
    what is significant of key field in Info cube table?
    Best regards,
    dushyant.

    hi ,
          key figures are very important in tables, when it is in cube it act as dimensions
    for the reporting purpose see this scenario
    the table has following fields
    student no
    student name
    student attendance
    student mark
    in this scenario when we want report according to student no its normal we would get, but when we want according to attendance,marks we dont get report according to attendance and mark, so we put all those fields in key fields.
    So we could say that Key fields are the dimensions and according to this we get reports
    thank yu

  • GROUP By function in where clause

    Hi,
    I have a table which stores student marks.
    Student Table
    STD_ID STD_MARK
    1 10
    2 20
    3 5
    I want to find the student who got the the highst marks with and SQL select statement. This is what I wrote.
    SELECT STD_ID from Student where STD_MARK=MAX(STD_MARK)
    But oracle gives an error saying group function is not allowed here.
    Can u plz tell me how to get the student who has got the highst marks.
    Chamal.

    Did you get an answer as to how to return only one
    row per student?
    I have the same problem and have been spinning my
    wheels.
    select * from table
    where action_ind = 'N'
    group by employee_id
    I get 4 rows per person and all I need is any 1 for
    that employee_id.
    rjdizolwell, this is a new question... but you cannot use rownum there, use analytics instead, and partition by grouping column
    ex:
    SQL> select ename, deptno, sal from (
        select row_number() over (partition by deptno order by sal desc) r, emp.* from emp)
    where r=1;
    ENAME          DEPTNO        SAL
    KING               10       5000
    SCOTT              20       3000
    BLAKE              30       2850

  • My first java programming - Need some help please!!!

    I have to create a simple java program which i am not good at i am ok in C but my java is quite bad. The program need to define a class called Student and with a string called StudentNAme, a integer StudentID(key), An array of 8 integers called Marks that holds the students marks for 8 modules. It also says Include appropriate accessors, mutators and constructor(s) as well as a method to update the student�s marks. Anybody please help me in this question. I prefer an simple example of this program so I can learn faster, I dont even know how to declare a class.. So sorry but please help me out and thanks in advance

    I would also suggest you try using an IDE like
    eclipse (free)
    www.eclipse.org
    This will help you get a working program much faster.But please do also tell them that if they have troubles using it, they're supposed to read the IDE manual instead of posting here.

  • Help Required for Project

    I am doing IVRS for College as my Final Year Project. Here the caller can just retrieve some information(like student marks, attendance, ....). Came to know that java.sound should be used but unable to know how!. Can anyone plz gimme a rough idea of how to go about!

    [url http://forum.java.sun.com/thread.jspa?forumID=513&threadID=450768]Check this thread out.

  • How to read files from the menu prompt

    Hi all the experts here, help me plz
    this is the menu
    R - Read a batch of student marks from a file
    D - Display a table of student results
    Q - Quit from the program
    when user press R the program has to read a file. The default file name is results1.txt
    but my teacher is gonna change the file name when she tests it.
    so i can't put the fixed file name. i have to read the file name from the command
    prompt
    The user will type the file name and i just have to read that file..but..its hard for the
    biginner...THX guys

    help me guys plz im really stuck man
         public char promptMenu()
              System.out.println ("R - Read a batch of student marks from a file");
              System.out.println ("D - Display a table of student results");
              System.out.println ("Q - Quit from the program");
              char answer = Keyboard.readChar();
              return answer;
    after user press 'R'
    then i have to read a file whatever the user enters..

  • Can't  get Java 6 to work correctly

    I am probably in the wrong place here, and for that I apologize. We use a program at our school called Power School. In order to enter student marks, one accesses a page which is generated by Java. Since I purchased this new computer, I have been unable to access the gradebook.

    Paul1955 wrote:
    I am probably in the wrong place here, and for that I apologize. Yep, wrong place.
    We use a program at our school called Power School. In order to enter student marks, one accesses a page which is generated by Java. Since I purchased this new computer, I have been unable to access the gradebook.You'd best contact: your school and possibly the makers of the program. I'd start with the school.
    Best of luck.

  • Can't get Java page to run

    I am probably in the wrong place here, and for that I apologize. We use a program at our school called Power School which is on-line. In order to enter student marks, one accesses a page which is generated by Java. Since I purchased this new computer, I have been unable to access the gradebook. For a while, I was getting an Run Time error, so I installed the Run Time Environment. Then a Big Math error appeared after I finished the installation. So I reinstalled Jave (JRE - 6 u 11) and now I am getting the error about connection shown below. No one at the school can figure it out or get the program running. Can anybody help me, out there?
    Here are the details of the error. It says "Encountered Connection Error, see your adminsitrator" I can get on-line just fine, and my administrator has no idea what the problem is and so cannot fix it. Any advice would be greatly appreciated.
    com.pearson.powerschool.sdk.common.SDKRemoteException:java.net.SocketException: Unknown proxy type : HTTP
    at com.pearson.powerschool.sdk.system.HttpInvokeInvocationHandler.invoke(HttpInvokeInvocationHandler.java:51)
    at $Proxy1.getSchools(Unknown Source)
    at com.pearson.powerschool.gradebook.Main.login(Main.java:358)
    at com.pearson.powerschool.gradebook.Main.startUI(Main.java:91)
    at com.pearson.powerschool.gradebook.Main.access$000(Main.java:36)
    at com.pearson.powerschool.gradebook.Main$1.run(Main.java:124)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at com.pearson.powerschool.gradebook.CustomEventQueue.dispatchEvent(CustomEventQueue.java:19)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Caused By:java.net.SocketException:Unknown proxy type : HTTP
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139)
    at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124)
    at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
    at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
    at org.meno.remoting.httpinvoke.client.HTTPInvokeProxyFactory.invoke(HTTPInvokeProxyFactory.java:145)
    at org.meno.remoting.httpinvoke.client.HTTPInvokeProxyFactory.access$000(HTTPInvokeProxyFactory.java:23)
    at org.meno.remoting.httpinvoke.client.HTTPInvokeProxyFactory$1.invoke(HTTPInvokeProxyFactory.java:68)
    at $Proxy1.getSchools(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.pearson.powerschool.sdk.system.HttpInvokeInvocationHandler.invoke(HttpInvokeInvocationHandler.java:40)
    at $Proxy1.getSchools(Unknown Source)
    at com.pearson.powerschool.gradebook.Main.login(Main.java:358)
    at com.pearson.powerschool.gradebook.Main.startUI(Main.java:91)
    at com.pearson.powerschool.gradebook.Main.access$000(Main.java:36)
    at com.pearson.powerschool.gradebook.Main$1.run(Main.java:124)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at com.pearson.powerschool.gradebook.CustomEventQueue.dispatchEvent(CustomEventQueue.java:19)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    Looks like a configuration problem to me. Perhaps there's some place where you set up the options which tell the program how to connect to the Internet (because it looks like that's what it's trying to do). If so, browse through there until you find some settings involving "proxy" or something like that. Find somebody else who is using the program and see what they have for those settings.
    Or call the support line for the product, if there is such a thing?
    Edit: I see the product comes from [http://www.powerschool.com/]. There's a Contact Us link on that page. Actually two of them.

Maybe you are looking for

  • Posting date problem

    Dear cons    I made the goods receipt on 16.10.2007. I made the goods issue by mistake on 01.10.2007( instead of 01.11.2007). but the system accecpts it. so when I saw the stock on posting date(T-code mb5b) the system gives wrong information. How can

  • Help required with login form using applet

    this is the code I'm working on. it does not show any errors but it does not successfully authenticate the login either. please help public class Loginex extends JApplet implements ActionListener      public JPanel p;      public JLabel l1,l2;      p

  • Problem in Standby

    Hi., We are facing the following error in our standby database 8.1.7.4 SVRMGR> SVRMGR> ORA-00283: recovery session canceled due to errors ORA-00368: checksum error in redo log block ORA-00353: log corruption near block 566772 change 1684887738171 tim

  • N8-00 Symbian ANNA

    I have had to do a full and complte reset of my phone and it is back to the original, as supplied, firmware. I would like to get it back to running teh last version of ANNA   and not Belle. Any pointers on where I can find and download from. Thanks

  • Final cut 5.1.2 and mac pro crashes when rendering

    i have just switched to the new mac pro and have all the new and latest updates and i'm running the final cut crossgrade.when i select a sequence to be rendered and select render all and both it gets to about 50% and final cut crashes.is anyone havin