View more random threads:
- MTH603 Assignment 2 Solution Spring 2010 May 9
- MGT401 Financial Accounting Assignments No:2 Solution...
- MGT301 Principles of Marketing GDB NO.1 Solution Due date...
- CS201_3rd_Assignment
- MGMT623 Leadership & Team Management Assignment 1...
- CS502 Fundamentals of Algorithms Assignment No. 01 Graded...
- CS502 Fundamentals of Algorithms Assignment No 3 Spring...
- S501 Advance Computer Architecture Assignments No. 2...
- Cost & Management Accounting (Mgt 402) Assignment No. 1...
- FIN-611 Advanced Financial Accounting assignment No 01 3rd...
CS506 Web Design and Development Assignment No. 01 Discussion 20th November 2014
Lectures Covered: This assignment covers Lecture # 1-5
Uploading instructions
Your submission must include:
All the source code (.java files) and other necessary files to compile and run your program.
Place both files (StudentRecord and TestStudentRecord) in a Zip file and Upload it on VULMS.
Note: Use Notepad or Notepad++ for coding and JDK package for java source code compilation and running (A video tutorial of JDK installation and configuration is given in course download section)
Objective
The objective of this assignment is
To give you some practice exercise of Classes and Objects. And how to compile and run java programs.
Problem Statement:
You are required to write a java program which stores and display the Student information.
Detailed Description:
Your program should have following two classes.
StudentRecord
TestStudentRecord
Following is the detail of StudentRecord class
ٰIn “StudentRecord” class, it should have the following data members:
Sponsored Links
Student ID
Course ID
Course Name
StudentRecord class must have the following member methods:
Parameterized constructor
Setter methods
Getter methods
Print method
Parameterized constructor: It should take three String parameters named as (Student Id, Course Id and Course Name) and initializes the data members of StudentRecord class by using the setter methods. In Student Id you have to store your VUID.
Following is the detail of member method of “StudentRecord” class.
Setter methods: There must be a setter method for each data member of a class
Getter methods: There must be a getter method for each data member of class
Print method: It should display the values of each data member of class by calling getter methods.
Following is the detail of TestStudentRecord class
“TestStudentRecord” class contain the main method, within main () method, create an object of StudentRecord class by using the parameterized constructor, and pass it the three string parameters i.e. (student id, course id and course name). In Student id you must store your own VUID.
At the end, call the Print() method which will display the values of student id, course id and course name by calling the getter methods.
Sample Output:
20141110_195333.jpg
There are currently 1 users browsing this thread. (0 members and 1 guests)