Computer problems,Computer help
*AX SOFT>>>Programming & Design

I need serious help with Java!?


I have got to write a piece of java code for a flow chart , i have no idea where to start, if you can help me i can pay you!!

its for my uni coursework!

can i email it to you so you can see what it is, thank you sooo much :)

Flow charts for programming are usually a graphical representation of objects. (Sorry about the spacing problems, it seems I can't give you cleaner code with indentions and what not - ignore the ` and . symbols in the graph).

________ ` ` ` `________
| Person | <---- | Student |
------------- . . . . -------------

In my graph, the arrow with dashes in it means an "is a" relationship. This means that "Student" extends Person. Depending on your flow chart, you will have multiple symbols for different meanings. Here is a programming implementation of my example:

public class Person{
int age;
String name;
boolean gender; //0 for girl, 1 for boy
public Person(int a, String n, boolean g)
{
age = a;
name = n;
gender = g;
}
public String getName()
{
return name;
}
}

public class Student extends Person{
double GPA;
public Student(int a, String n, boolean g, double grade)
{
age = a;
name = n;
gender = g;
GPA = grade;
}
public getGPA()
{
return GPA;
}
}




The whole point of extending objects is to build onto them. Let me show you an example

Student billy = new Student(15, "Billy Jones", true, 3.4);
Student sally = new Student(14, "Sally Genkins", false, 4.0);

System.out.println( billy.getName() ); //Prints out "Billy Jones"
System.out.println( billy.getGPA() ); //Prints out "3.4"
System.out.println( sally.getName() ); //Prints out "Sally Genkins"
System.out.println( sally.getGPA() ); //Prints out "4.0"



You see? The student object can use all of the methods defined in the person object, as well as all of the methods defined in itself. However, a person object would not be able to use the getGPA() method since person does not build onto student.

Person james = new Person(34, "James Fletcher", true);
System.out.println( james.getName() ); //Prints out "James Fletcher"
//System.out.println( james.getGPA() ); //Results in an error, won't compile

no need of pay me i can help u but it depends up on ur flow chat ...

kiththe java he tenu

Have you tried asking your professor or TA? I always found my professors happily willing to help, or at least guide you in the right direction. I mean, that is what they are there for...

email it to me!!

If you are still stuck with your project assignment, you may contact a java expert live at website like http://oktutorial.com/ .

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • I'm having problems making a calculator with Javascript?

    If you want to you can copy and paste your code into an email and i can try and help you out

    ...
  • What about CSS file size?

    30KB is pretty large. Try to separate your stylesheets into sections, and only make the browser call them when it's needed (e.g., only call the "search" stylesheet when a user perfo...

  • How do i do this in ms word?(#ing the pages?)?

    Go to Insert, and Page Numbering. Another window will come up and you pick how you want the pages numbered. At the bottom, top, right hand side or left.

    ...
  • I'm looking for the website that help me to learn better abuot c++...?

    just check these link i google c++ tutorials and results:442,000

    ...
  • Graphic Designers: Illustrator VS In Design?!?

    Hey! You are mastering the graphic design tri-fecta. The rule i go by is Illustrator for cartoons/illustrations/vecter work, photoshop for photos/web/multi combo documents, and indesign for text la...

  • How to check if PHP was installed properly?

    First, how exactly did you install these? Did you use the MSI installers? If so, that should have configured everything for you properly. Also, I notice that you didn't get Apache from the ...

  • Write a SUB procedure in QBasic?

    public sub Dollar(quarter as int, dime as int, nickel as int, penny as int, Dollars as single) Dollars = (quarter * 25) + (dime * 10) + (nickel * 5) + penny dollars = dollars /100 end sub

    ...
  • How can I get started with programming?

    Alright, fresh blood. God I miss those days when I was reading through all of the beginner books and tutorials to figure out how to program. Personally I started out with python (See links below)...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster