Voting System

Voting System

Project: Voting System

Submitted by: Mian Raybal Akhtar

 

 

INTRODUCTION

This project is about the voting system and the scenario dealing with the voting system. This project deals with how a person can vote to the candidate and how the voting system occurs. This project also keeps the record of voter like gender, voter ID, name etc and also the record of candidate.

 

CLASSES

Person

In this class we have used the concept of inheritance as the candidate class and voter class are child classes so they can access the methods of parent class.

Candidate

In this class the information about the candidate is gathered like candidate`s name, gender and the party of the candidate.

Voter

This class is used to gather the information about the voter. Voter`s name, gender and voter`s ID is entered by the user.

Voting machine

This class is used to manipulate and print the result that which is winner and how many votes he\she gained. This class has crucial role in whole system

Main

This class uses the methods of all classes by creating their projects

 

WORKING

First of all we will make the object of candidate class then voter class by giving the required information after then create the object of seat class.

Then we will create the object of voting machine class and will add voters and candidates after giving the information. Then after the voting is done result will be printed.

 

CONCLUSION

This project is about the voting it allows the voter to vote and it keeps the record of candidate and voter. Some candidates use different type of flowers and gifts near or in Election Day.

OBJECT DIAGRAM

voting

 

 

Hotel Management

Download Here: Hotel Management

Hotel Managemen

Author: HAMZA AMIN

Roll No: 018-BSCS-13

Section: C

Introduction:

This program bokks rooms in the hotel. There is a main class named UseHotel which has following main options.

  • Rooms
  • Payment Section
  •  Show rooms
  •  Exit

Further if you want to know about the rooms, select the room option. By pressing the rooms button, three types of rooms will appear along with their characteristics and for the booking of room you can go back to the main menu and choose the payment method. In the Payment method, there are three types of rooms along with their charges and their names. And if you want to book any of the room, all you have to do is to select the room you want to boo and then there will be a message for you to enter the required charges for the required room. Show rooms will tell you about the number of rooms booked. And when you will enter the exact charges there will be a message for you that your room is booked and if you enter less than or greater than the required room rent there will be a message “Invalid Amount” and the program will automatically go the main menu. And if you want to exit from the main menu you can easily move out by entering the exit Button

Class Diagram

Hotel Management

Person Information

  • Download here: Person Information
  • Author: Sawail Khan
  • Data of Students and Teacher

    This program is designed for storing the data of Students and Teachers it can used in many institutions for storing the information, it contains the following classes:

    1. Go
    2. Contact Info.
    3. Person
    4. Teacher
    5. Students

    There is the project diagram of this project

    357

Bank Accounts

  • Download Here: Bank Accounts
  • Author: Azeem Malik
  •  

     

    Project Proposal

     

     

    Submitted to: Sir Imran Rafique

    Submitted by: Azeem Nabi Malik

    Roll No: 354-BSCS-2013

    Section: (C)

    Group: 2nd

     


     

    Project Proposal

    Banking System

    Overview:-

    I made this project using the concepts of a bank .

    Classes Involved:-

    Following classes are involved in this assignment.

    • Account
    • Current Account
    • Savings Account
    • Menu

     

    Class Account :

    It is the parent class of Current Account and Savings Account. It consists of data members amount, accNo ,inputBalance, outputBalance. Its Constructor initializes the the amount and account number of the user.

                    Methods :

    1. getAmmount();
    2. getAccNo();

     

    getAmmount() returns  the amount and getAccNo(); returns the account number.

    Class Current Account :

    Current Account extends Account.

    Contains a data member of tax and initializes it in its constructor.

    Methods:

    It contains the following methods

    1. taxDeduction();
    2. inputAmmount();
    3. drawAmmount();

    taxDeduction deducts the tax as per the bank policy of the percentage of tax on the current account .

    inputAmmount enters the amount into the bank account .

    drawAmmount draws the desired amount from the account

    Class Fixed Account:

    It extends Account and and has two new data members noOfMonths and interest . It initializes the number of months and the percentage of interest on the number of months for which the account has been fixed . The interest is calculated in the constructor.

                    Methods:

    1. inputAmmount();
    2. drawAmmount();

     

    inputAmmount enters the amount into the fixed account .

    drawAmmount draws the desired amount from the account .

    Menu:

    This class runs the program using the previous classes. It consists of the main method. It shows a menu from which you can select weather to create a fixed account or a current account or Draw money from a fixed or current account.

    It asks the account number and the amount to enter in the account and returns the amount.

  • Project Diagram

354

 

University Record

Project : Access to university records.

 

Submitted to : Sir Imran Rafique

 

Submitted by: Fahad Ali

 

Roll number: 351–BSCS-2013

 

Section : C

 

 

Introduction

 

 

This project is about the system of the university. It deals with the records of the university that if the university have to enroll a student or to hire a teacher then it should be added to the records of the university. This project keeps the record of all students and assigns a roll number to all students so they can be accessed by their rolll number afterwards.

 

Classes

 

 

There are total four classes as following:

  1. UniversityMembers.
  2. Students.
  3. Teachers.
  4. AccessRecordOfUniversity.

 

UniversityMembers Class:

          In this class there is a mutator that sets the post in the university and a method displaypost that displays the post in the university. In this class mechanism of inheritance is used so that the child classes (students and teachers) can access the methods of this class.

 

Students Class:

          In this class information of students is gathered and then displayed by the method named display and it can access the setpost method of the class named UniversityMembers as it is its child class.

 

Teachers Class:

         in this class information is gathered of the teachers to be hired for the university like name, experience,qualifications and all the names of the teachers are stored in an array named teachers to be accessed afterwards. This class can also access the methods used in the parent class UniversityMembers.

 

AccessRecordOfUniversity Class:

        In this class objects of all classes have been created two hasmaps are created in which the forst one have integer as key and value as the whole class students , this will keep the all record of students and assign them a roll number and the second hasmap is used to store the whole class teachers and assign a number for them for the record. When this class will run it will show a menu which actually access the other classes and we can store values in other classes by this class.

 

 

 

Working

 

Directly from the class AccessRecordOfUniversity we create an object or run through main a menu will be shown in which we have to choose an option and give the required information whether to enter the post in the university or to enroll a student or to hire a teacher. After giving the information it will be stored for to access it afterwards.

 

Conclusion

 

 

This project is about the university records and from only one class AccessRecordOfUniversity we can access all other classes and store values in the methods of all other classes.

 

Object Diagram

351

 

Student Data

Download Here: Student Data

Author: Tabinda Shahid

 

 

Project Proposal

 

 

Submitted to: Sir Imran Rafique

Submitted by: Tabinda Shahid

Roll No: 345-BSCS-2013

Section: (C)

Group: 2nd

 


 

Project Proposal

Registration System for Teacher & Students

Overview:-

I made this project using the concepts of Registration system.

Classes Involved:-

Following classes are involved in this assignment.

 

Abstract class Person:-

This class is made for the purpose to be extended or inherited. All the other will extend this class to use its functionality. This class contains four protected variables.

Fields:-

  • Ø name : String
  • Ø email : String
  • Ø bloodgroup : String
  • Ø e : lifeevent
  • Ø p : Person

These are protected variables and can be used directly by the other classes that extend Person class.But person class just using LifeEvent class and LifeEvent is separate class which is not extend person class.

Methods:-

  • Ø getName : String
  • Ø getEmail : String
  • Ø getBloodgroup : String
  • Ø getEvent : LifeEvent
  • Ø abstract printDetail() : void

All the methods are accessors(getters) and mutators(setters) for the fields except abstract method.

Class Teacher:-

This class extends Abstract class person. This class has an extra field called private float pay that is used to get pay of teacher person. And also class has an extra field called private float id that is used to get id of teacher person. Also includes getters and setters for this field. This class implements the abstract methods printDetail() and withdraw methods of the super class. There is a constructor public Teacher(String email, String name, String blood ,float balance, int id ) that give  the detail of teacher.

 

Class Student:-

This class extends Abstract class person. This class has an extra field called private float roll that is used to get pay of teacher person. And also class has an extra field called private float gpa that is used to get roll number & gpa of students. Also includes getters and setters for this field. This class implements the abstract methods printDetail() and withdraw methods of the super class. There is a constructor public Student(String email, String name, String blood ,float gpa, int id ) that give  the detail of student.

LifeEvent:-

This class is related to the  person’s event with date. This class has an field called private String date that is used to get date of  event and also class has an field called private String event that is used for person event detail. Also includes getters and setters for this field. This class is used for enter event detail about person teacher or students. It is having one input method.

Main:-

 

This class uses the other classes to interact with the user. This class has only two public and five private member functions.

  • Ø Public Static main() : Our program starts here

In which main() & start() method called.

  • Ø Public Main() : Having arrayList  of person Type
  • Ø Public start () : void
  • Ø public  start() : void
  • Ø private register() : void
  • Ø private menu() : String
  • Ø private  print() : void
  • Ø private addLifeEvent() : void

Project Diagram

project diagram

Universal Remote

OOP Lab Project

 

 

Name: Abdur Rahman Khan

Roll No.: 333-BSCS-13

Section: C

 

 

 

Remotes

Overview:

This program is about the manufacturing and use of the AC remotes and DVD remotes. In this program, we will first manufacture the required remote and then we will use the different functions of that manufactured remote.

Classes:

acremote:

The class acremote has 4 fields. 1) temperatureup 2) temperaturedown 3) fan 4) temperature. This class gets the value of the functions of acremote and the performs them.

dvdremote:

The class dvdremote has 3 fields. 1) volume 2) track 3) tracknum. In this class, there are different methods which set the different functions of the dvdremote which we can use later after manufacturing.

manufacturingofremote:

In this class, we can manufacture either acremote or dvdremote. If we don’t manufacture the remote, then we cant use it.

remote:

This class has 2 fields. 1) state and 2) signal. Both of these fields are of Boolean type. To manufacture either of the remote, both of these fields are required in the remote. Without these, we cannot manufacture any remote because these are the basic requirements of remote.

remoteaccess:

In this class, we can access the remote. We can manufacture either of the remote and then use different functions of the remote in this class.

Project Diagram:

333

 

Hotel Manegment

Project Proposal

 

 

Submitted to: Sir Imran Rafique

Submitted by: Muhammad Bilal Nawazish

Roll No: 309-BSCS-2013

Section: (C)

Group: 1st

 

 

 

 

 

 

 

Introduction:

The project is designed to know that how the information or the records of the guests are stored and manipulated. Through the use of project one can store the record of the guest and can made the list of the guests that have checked in. The project mainly consist of  Guest class having three sub classes as Government guest, VIP guest and Normal guest and a main class i-e Application  to run the program and the main methods are present in it.

Working:

The program can be run by making the object of the application class and calling the start option. A screen with two different menus, one for the guest and the other for the manager can be seen. The guest menu include options to add guest, display the information about the hotel and the third option to exit the menu whereas the manager can add the information, view the list of the guests and thirdly can exit the menu. From the guest menu, the guest can check-in providing the information that is required by the program such as the type of the guest i-e either it’s VIP, government or economy. By selecting one of the above options you would enter in another class and would be treated as by the services provided by the hotel management. The government guests would get a discount, VIP guests would be ask for the extra luxurious services and the economy guests would be asked the common services provided by every hotel. After completing the form you will be displayed your receipt and the total amount in rupees. Now using the same procedure multiple guests can enter their information and the manager can have the record on each and every guest. The program can be closed by selecting the (Q)uit option from the menu.

Classes involved:

Abstract class Guest:

This class is made for the purpose to be extended or inherited. All the other will extend this class to use its functionality. This class contains four protected variables.

Fields:

  • name
  • cnic
  • address
  • noOfBeds
  • noOfNights

These are protected variables and can be used directly by the other classes that extend Guest class. The rest classes make use of this class.

Methods:

  • getName()
  • getCNIC()
  • getAddress()

Class GovernmentGuest:

The class may include:

  • post
  • discount

Class VIPGuest:

The class may include:

  • cinema
  • golf
  • swimmingPool

Class NormalGuest:

The class may does not have any specific characteristics or any other fields.

Class Application:

The class contains all the methods that can be used to run and execute the program. It contains every procedure that is used to run the program.

Project Diagram:

Project diagram

 

University Staff Information

University Staff Information

Jawad Hassan

303-BSCS-2013

Section: C

Submitted to: Sir Imran Rafique

 

 

. Introduction: The “University Staff Information “project has been designed to exactly replicate a working University which contain all the necessary information of staff of a department of university. Like real university it stores a department its head, staff and basic information about staff and head.

. Mechanics: The project diagram presents above illustrates the design structures of how this project modules interact with each other. Class teachers the fundamentals of types of teachers like Regular or Contract base. Department contains the info of staff of dept. and head of dept. calculate pay is an interface which calculate the salary of staff.

. Features: The most noteworthy point in the project is how a dept. deals with the staff, their salary and its head.

.How to Operate: Invoke “ Executor’s ” main method and it will display its main menu. Drive through the given option to add a teacher or Head of a dept.

.Conclusion: The Project can easily be incorporated in real world universities as a working system if modified to some degree. Users can operate the university data by this easy interface provided in this project.

Project Diagram

303

 

General Store Bill

General Store Bill

This project depicts a grocery store billing system. A customer can choose between a number of things that are provided by the store. He is allowed to add things to his cart and select the quantity he wants. The price is given with the list of the things. The application then calculates the total  and prints the bill. The user can also check the purchases while purchasing. The following classes with their functionalities are as

Customer class :

This class is abstract class and is used as parent class.

Preffered and NotPreferred class :

These classes inherit from the abstract class Customer and implements the abstract methods of the Customer class.

Product class :

This class keeps track of the product id, name and price. The products available are given in this class.

Purchase Class :

This class keeps track of the items that the user selected and calculates the total of the user.

 

        

 

 

Project Diagram:

24