Urgenthomework logo
UrgentHomeWork
Live chat

Loading..

Java is an object-oriented programming (OOP) language, one of the most known language for programming, used all over the world for fast and succesfull result in building applications.For this assignment we were hired by Bright-Future College to build a program for registering new students, providing all information needed and full acces for managing when needed.

I`ve started this project by creating a public class for Student as seen in image bellow. For this I used a number of strings for providing details needed for registration (name, date of birth, address, telephone, email, course) Because these details are confidential, and because the class is public, I had to call them private. In this way only authorized person can view the details.

Answer:

Object Oriented programming is the programming language model which is organized around the objects instead of the actions. Besides this the programming language is oriented around the data instead of the logic. This is the program which has been viewed as the logical procedure which is associated with taking data inputs which is followed by the processing of the data and lastly is associated with the producing the final data output.

While doing the programming I understood the fact that the major programming challenge is the way in which in the logic is being written and not the way by which it is being defined. The things that needs to be taken care of includes the objects which needs to be manipulated instead of the logic which needs to be manipulated.


The first step in order to proceed with the programming included the identification of the objects which I need to manipulate and how these objects are interrelated. This process of identification is known a data modelling. After identification of the objects I moved towards generalization of the class of the objects. This helped me in defining the type of data that would be contained and any of the logical sequence which is capable of manipulating this.

I have used the Java which is an OOP or object-oriented language for doing the task provided to me. The main purpose of doing the programming includes the building of a program so as to register the new students along with providing the students with the opportunity of getting all the information that they require. Besides this the programming is also aimed at providing full access so as to manage the information whenever needed.

In the beginning, I was associated with identification of all the objects and once I was done with this task, I proceeded towards the creation a public class for the students. The public class is used because this is the method which can be used by any of the class present in the package and this the main requirement of Bright-Future College. In the public class I made use of various strings like the name of the student, surname of the student, date of birth, contact details, telephone number, e-mail and the course that is required and all these strings are called as public. By making these strings private, the details inputted by the students can be accessed by the authorized personals only so as to view the details. Below is the screen shot of the public class that I have created.

After this creation, I moved towards the creation of two new public classes. This public classes would be utilized for two purposes. One class for enrollment purpose and the another one which would be utilized by the students so as to select the course that they desire. This is a special method of class which runs when a java runtime is invoked and is made to pass through the class files as one of the parameters. Two classes have been provided below which I have created.

After creation of the public classes for enrollment and selection of courses I tested the entire programming so as to check if it worked well or not. After checking the entire program, I moved towards the creation of the fee payment class. This is the most challenging task amongst all the other class creation. The main reason lying behind the usage of the float is that for the fees a more precision is needed. In order to create the fee payment class, I was associated with the usage of “Float” variable along with the float value, float quantity, and the float total. The pay fee class as created by me have been provided below

The programming code that I have used in order to create the pay fee class have been provided below.

public class Pay_Fees

          private int id;

    private String name;

    private float quantity;

    private float value;

    private float total;

    public Pay_Fees(int id, String name, float quantity, float value, float total)

        this.id = id;

        this.name = name;

        this.quantity = quantity;

        this.value = value;

        this.total = total

    public int getId()

        return id;  

    public void setId(int id)

        this.id = id;

 public float getQuantity()

        return quantity;

    public void setQuantity(float quantity)

        this.quantity = quantity    

    public String getName()

        return name;

    public void setName(String name)

        this.name = name;

public float getValue()

        return value

    public void setValue(float value)

        this.value = value

    public float getTotal()

        return total

    public void setTotal(float total)

        this.total = total;

Float variable is the term which is used for the purpose of defining the variables by making use of the fractional value. The numbers which are created by making use of the float variable declaration would be consisting of digits in both the sides of the decimal point. I have utilized the float variable as this helps in representing decimal values of up to 7 digits.

After completion of creating the classes I moved on towards the testing process. For testing the programming, I Inputted all the required details in the application. After the input I found that all the things worked according to the requirements. One by one the details popped up, firstly the program asked for the name of the student “Enter Student Name”. this was followed by the message “Enter Student Birth date”, where the birth data need to be inserted. After this the details of the students are required so the messages “Enter Student Address”,

followed by “Enter Student phone” and “Enter Student E-mail”. After all this are inputted correct the option for selecting the course appears with the message “Enter Course”. Once all this is done properly the page moves towards the payment of fees. Besides these options are also provided so as to see specific details. The major including of the options are “enroll student”, “pay fees”, “list students on a course”, “change course”, View student profile”, Remove student from the course”, “Management reporting” and lastly “exit”.

Copyright © 2009-2023 UrgentHomework.com, All right reserved.