Lab2_StoreManagementSystem1.pdf - CST8132 Object-Oriented...

This preview shows page 1 - 2 out of 3 pages.

CST8132 Object-Oriented Programming Lab 2: Store Management System I Due Date: Week 3 – in own lab hours Marks: 10 marks (worth 4% of term mark) Demo: Demo your code and output to your lab professor during your own lab hours. Recommended Reading: Chapter 9 of Deitel and Deitel, Java How to Program book Exercise In the next few labs, we will create a few classes to represent a Store Management system. A store has employees and customers in their system. In this lab, we are creating only the Employee class. Each employee has attributes like first name, last name, email, phone number, employee number and a salary (salary will be calculated based on different factors which depends on whether they are regular or on contract). More classes like Customer, different types of employee classes etc. will be added later. As the first step, you need to create the following classes: Employee class Instance variables: employeeNumber (int), firstName (String), lastName (String), emailId (String), phoneNumber (long), salary (double)

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture