object orientated task

Ads
 

object orientated task

Write a class - Student. Student class consists of student data. For this purpose, you must fulfill the following methods (note - fields of the objects should be marked as private). Student class: Constructors:

Construct Student object with name and id as parameters. Student(String name, long id) Copy Constructor: constructs Student object with Student(Student st) Student object as a parameter. Methods: Method name Operation Return Type String getName() Returns student name long getId() Returns student id Returns student grade in a course with number course as follows: 1- Introduction to Programming 2- Introduction to Management 3- Data Structures 4- Foundations of Economic Theory int getGrade(int course) 5- Introduction to Mathematics It is recommended to write tester to present all the methods of the class and to check that they actually work. Submission Guidelines: 1. Write the program in class named Student.java 2. The classes are bagged in a zip or rar file single, called Ex3.zip or Ex3.rar. 3. The exercise should be submitted not after 5/10/2018 until 23:59 If the student does not have a specific course grade, the method returns -1 Sets the name of the student assuming that the received input string input is void setName(String name) right input. Sets the student's identification number, you can assume that the input of the void setId(long id) ID card is correctly received, ie right input Assigns the grade of the student course (according to the above key). setGrade(int course, int void grade) Assigns the student's grades in his courses. You can enter grades in the way void setGrades() you want, or by receiving grades from the user within the system. double getAverage() Returns the student average. Gets student object and decides if this is the same student.

equals(Student student)

boolean Returns a string containing the students data as follows: Name: Muhammad Shareef ID: 123456789 Grades: Introduction to Programming ΓΆβ?¬β?? 85, Introduction to Management ΓΆβ?¬β?? 85, Data Structures ΓΆβ?¬β?? no grade, Introduction to Economics ΓΆβ?¬β?? 85, Introduction to Mathematics ΓΆβ?¬β?? no grade String to pleas help , thank you ;

View Answers

Ads









Related Tutorials/Questions & Answers:
task
Java task scheduling
Java task scheduling  What is a task?s priority and how is it used in scheduling
Advertisements
Java task scheduling
Java task scheduling  What is a task?s priority and how is it used in scheduling
object
object  is it possible to create object in the same class..?.   Yes, you can. class CreateObject { CreateObject(){ System.out.println("I have an object."); } public static void main(String[] args
Java Timer Task
Java Timer Task  How to assign a task in java at specified date & time (with seconds) using threads
task 2 - Java Beginners
task 2  Write a time server that follows the time protocol outlined in RFC 868. When a client connects, the server sends a 4-byte, big-endian, unsigned integer specifying the number of seconds that have passed since 12:00 A.M.
task 1 - Java Beginners
task 1  Please write a Java client that send a small letters string to a Java server which convert it to uppercase letters and send it back to the client. Please submit both the client and server programs  Hi Friend
Solving task 1 by 1 from bundle of task data
Solving task 1 by 1 from bundle of task data  Hello and namaste guys... of row.row means task.in each task, there will be an information like userid, Taskid, user_input i have to use the information for eash task to solve the task
How to disable task manager using java
How to disable task manager using java  How to disable task manager using java
Task Tag Decorator
Task Tag Decorator         In large projects there are a lot of task tags like TODO, FIXME, etc. and Eclipse provides only plain list of all these task tags which I
object of object class
object of object class  what do u mean by "object of object class
Task manager enable and disable thru java
Task manager enable and disable thru java  I would like to know, how to enable and disable task manager using java. Kindly, please Let me know
Version of ca.weblite>mirah-ant-task dependency
List of Version of ca.weblite>mirah-ant-task dependency
Scheduling a Timer Task
Scheduling a Timer Task       In this section, you can learn how to schedule a timer task to run.... This program asks you for the way of performing the task whether at the certain
Object
Object       An object...). In an object, variables store values for later use and methods are the unit... are the basic units of the object-oriented programming. Objects are the part of our day
Task Scheduling in JAVA
Task Scheduling in JAVA       In some applications some task need to run periodically... requirement. This is example given below to schedule a simple task to display
A small programming task, plz respond at the ealiest..
A small programming task, plz respond at the ealiest..  Hi Guys ,small task to you all... sam seeks your help to know the longest run possible with the given peaks
Maven Dependency mirah-ant-task >> 1.0
You should include the dependency code given in this page to add Maven Dependency of ca.weblite >> mirah-ant-task version1.0 in your project
Maven Dependency mirah-ant-task >> 1.0.1
You should include the dependency code given in this page to add Maven Dependency of ca.weblite >> mirah-ant-task version1.0.1 in your project
object creation
object creation  when will java object is created? is it at runtime or compiletime
Object Oriented
Object Oriented  C++ is Purely object oriented or not .Then why java called purely object oriented
Object reference not set to an instance of an object
Object reference not set to an instance of an object  Object reference not set to an instance of an object
Session Object
Session Object  Why do we require Session Object?  Hello.... The session object is used by the developers to store and retrieve user's related data such as login details. The javax.servlet.http.HttpSession object
Need for Marketing Management Task
Management Task helps the management of companies in achieving the results... should be given focus during fixing a Marketing Management Task, many more topics
ArrayList object
ArrayList object  i have am ArrayList object it containg data base records in it, now i want to display this ArrayList object data in my jsp programe, plz help me
object as argument
object as argument  what happens when we pass a object into a method???if java is pass by value how does this makes a difference.....pllzzz give me more clarification on why we pass objects in a margument
Java object
Java object  Which class should you use to obtain design information about an object
Object Creations
Object Creations  String a[][]=new String[10][20]; The above line how many objects are created
Java object
Java object  What is mutable object and immutable object?  An Immutable object is a kind of object whose state cannot be modified after it is created. This is as opposed to a mutable object, which can be modified
Session Object
Session Object   What is the Max amount of information that can be saved in a Session Object ?   There is no such limit on the amount of information that can be saved in a Session Object. The only limit is the Session
object array
object array  Hi i have array that is object[] obj= { new string("hi"), new vector().add(10), new hashmap().setkey()} display(obj); display(object{[] obj) {} Now my question is what is the string length and how to retrieve

Ads