# convert this code to GUI

ayie
convert this code to GUI
1 Answer(s)      5 years and 11 months ago
Posted in : Java Beginners
import java.util.Scanner;
double totalMarks;

public void setTotalMarks(double totalMarks) {
this.totalMarks = totalMarks; //"this" keyword refer to current instance of the method on which it is use
}

public double getTotalMarks() {
}

this.grade = grade;//"this" keyword refer to current instance of the method on which it is use
}

}

public static void main(String[] args) {
Scanner input = new Scanner(System.in);

System.out.print("Enter number of students in class: ");
int num = input.nextInt();

for (int a = 0; a < data.length; a++) {
System.out.print("Enter student programming marks: ");

double marks = input.nextDouble();
data[a].setTotalMarks(marks);

if (marks < 40) {
}

if (marks >= 40 && marks <= 44) {
}

if (marks >= 45 && marks <= 49) {
}

if (marks >= 50 && marks <= 54) {
}

if (marks >= 55 && marks <= 59) {
}

if (marks >= 60 && marks <= 64) {
}

if (marks >= 65 && marks <= 69) {
}

if (marks >= 70 && marks <= 74) {
}

if (marks >= 75 && marks <= 79) {
}

if (marks >= 80 && marks <= 84) {
}

if (marks >= 85 && marks <= 100)
}

for (int a = 0; a < num; a++) {
if (i.equals("A+")) {
}
if (i.equals("A")) {
}
if (i.equals("D")) {
}
if (i.equals("E")) {
}
}
System.out.println("Student that getting A and A+ grade: "

System.out.println("Student that getting D and E grade: "
}
}

November 9, 2011 at 11:16 AM

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
double totalMarks;

public void setTotalMarks(double totalMarks) {
this.totalMarks = totalMarks;
}

public double getTotalMarks() {
}

}

}

public static void main(String[] args) {
JLabel lab=new JLabel("Enter number of students in class: ");
final JTextField text=new JTextField(20);

JButton b=new JButton("Find");
lab.setBounds(10,10,150,20);
text.setBounds(180,10,100,20);
b.setBounds(180,40,100,20);

JFrame f=new JFrame();
f.setLayout(null);
f.setSize(300,100);
f.setVisible(true);
public void actionPerformed(ActionEvent e){

int num = Integer.parseInt(text.getText());
for (int a = 0; a < data.length; a++) {
String input=JOptionPane.showInputDialog(null,"Enter student programming marks: ");

double marks = Double.parseDouble(input);
data[a].setTotalMarks(marks);

if (marks < 40){
}

if (marks >= 40 && marks <= 44) {
}

if (marks >= 45 && marks <= 49) {
}

if (marks >= 50 && marks <= 54) {
}

if (marks >= 55 && marks <= 59) {
}

if (marks >= 60 && marks <= 64) {
}

if (marks >= 65 && marks <= 69) {
}

if (marks >= 70 && marks <= 74) {
}

if (marks >= 75 && marks <= 79) {
}

if (marks >= 80 && marks <= 84) {
}

if (marks >= 85 && marks <= 100)
}

for (int a = 0; a < num; a++) {
if (i.equals("A+")) {
}
if (i.equals("A")) {
}
if (i.equals("D")) {
}
if (i.equals("E")) {
}
}

}
});
}
}

Convert the code to GUI
How to Convert the code to GUI   How to convert a code into GUI
Convert the code to GUI
Convert the code   How to convert a code to GUI look alike
Convert the code to GUI
Is it possible to convert a code into GUI  Is it possible to convert a code into GUI
Convert the code to GUI
Java Code to GUI   can any one convert My code to GUI code
Convert the code to GUI
GUI code  GUI code
Convert the code to GUI
GUI Example  GUI Example code to learn
Convert the code to GUI
GUI Application example  GUI Application example
Convert the code to GUI
Java GUI Class Example  Java GUI Class Example
Convert the code to GUI
GUI Java JSP application  GUI Java JSP application
Convert the code to GUI
GUI Application Development   GUI Application Development
Convert the code to GUI
Write a GUI Application  best way to write a GUI based application
Convert the code to GUI
Java and GUI application Example  Java and GUI application Example
Convert the code to GUI
How to create GUI application in Java   How to create GUI application in Java
Convert the code to GUI ??
Convert the code to GUI ??  hi >> can anyone help me to conver this code to GUI ?? /** * @(#)RegistorClass.java * *. * @author...("*** Invalid operation code ***"); halt= true; // break
Convert the code to GUI
Convert the code to GUI   can any one convert My code to GUI code...: System.out.println("*** Invalid operation code... ??? System.out.println(); } } `print("code sample");` thanks
HOW TO CONVERT THIS CODE INTO GUI
HOW TO CONVERT THIS CODE INTO GUI   System.out.println("\n\t UGANDA CHRISTIAN UNIVERSITY\n"); System.out.println("\n\tFACULTY OF SCIENCE AND TECHNOLOGY\n"); System.out.println("\n BACHELOR OF SCIENCE IN COMPUTER
Convert the code to GUI
GUI example for beginners  GUI example for beginners  sory ,, I will posted my code again import java.util.Scanner; public class...; default: System.out.println("*** Invalid operation code
convert this code to GUI
convert this code to GUI  hello.. this is my code.. import java.util.Scanner; public class StudentGrade { double totalMarks; String grade; public void setTotalMarks(double totalMarks) { this.totalMarks
convert this code to GUI
convert this code to GUI  hello.. this is my code.. import java.util.Scanner; public class StudentGrade { double totalMarks; String grade; public void setTotalMarks(double totalMarks) { this.totalMarks
convert this code to GUI
convert this code to GUI  hello.. this is my code.. import java.util.Scanner; public class StudentGrade { double totalMarks; String grade; public void setTotalMarks(double totalMarks) { this.totalMarks
convert this code to GUI
convert this code to GUI  import java.util.Scanner; public class StudentGrade { double totalMarks; String grade; public void setTotalMarks(double totalMarks) { this.totalMarks = totalMarks; //"this" keyword
convert this code to GUI
convert this code to GUI  import java.util.Scanner; public class StudentGrade { double totalMarks; String grade; public void setTotalMarks(double totalMarks) { this.totalMarks = totalMarks; //"this" keyword
convert this code to GUI
convert this code to GUI  import java.util.Scanner; public class StudentGrade { double totalMarks; String grade; public void setTotalMarks(double totalMarks) { this.totalMarks = totalMarks; //"this" keyword
convert this code to GUI
convert this code to GUI  import java.util.Scanner; public class StudentGrade { double totalMarks; String grade; public void setTotalMarks(double totalMarks) { this.totalMarks = totalMarks; //"this" keyword
convert this code to GUI
convert this code to GUI  import java.util.Scanner; public class StudentGrade { double totalMarks; String grade; public void setTotalMarks(double totalMarks) { this.totalMarks = totalMarks; //"this" keyword
convert this code to GUI
convert this code to GUI  import java.util.Scanner; public class StudentGrade { double totalMarks; String grade; public void setTotalMarks(double totalMarks) { this.totalMarks = totalMarks; //"this" keyword
convert this code to GUI
convert this code to GUI  import java.util.Scanner; public class StudentGrade { double totalMarks; String grade; public void setTotalMarks(double totalMarks) { this.totalMarks = totalMarks; //"this" keyword
convert this code to GUI
convert this code to GUI  import java.util.*; class Author{ public String name; public BookList<Book>books=new BookList<Book>(); public Author(){ } public boolean equals(Object node){ return name.equals
convert this code to GUI
convert this code to GUI  import java.util.*; class Author{ public String name; public BookList<Book>books=new BookList<Book>(); public Author(){ } public boolean equals(Object node){ return name.equals
Convert this code to GUI - Java Beginners
); } }  hi friend, We have convert your code into GUI...Convert this code to GUI  I have written this.i need to convert the following code to GUI:- import java.awt.*; import java.applet.*; import
How to convert this Java code into GUI?
How to convert this Java code into GUI?   import java.util.Scanner; public class StudentMarks { double totalMarks; String grade; public void setTotalMarks(double totalMarks) { this.totalMarks = totalMarks