联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> Java编程Java编程

日期:2023-06-10 02:38

159.234 OBJECT-ORIENTED PROGRAMMING

System Description (Overview of Problem)

You are asked to write a program in Java to simulate a computer store’s management system


Tasks to complete:

a) Create a narrative step-by-step storyboard using screenshots of your system-generated GUIs to demonstrate required functions of the computer store’s management system (please refer to a sample at the end of this document; you can use its format to present your work)


Your Java code should:


b) Import the provided test data (computers.txt) to your system using Java Input


c) Add five staff to the computer store’s system—three salespersons and two managers—using usernames and passwords provided (this function should have classes designed with an appropriate inheritance hierarchy that applies core OOP concepts)


d) Realize all functions specified in the system description above (for this assignment, you are NOT required to update computers.txt file after a manager update/add/delete records, you only need to update the GUI to show the change)


Design and Implementation Guidelines

Note: You will receive credit for correctness, completeness, no code duplication, and clear on-screen outputs.


Also, we will grade your program using the following OOP and general software implementation guidelines:


1) Encapsulation design and implementation—proper use of modifiers


a.Private/Protected/Public


b.Must make use of getters and/or setters wherever appropriate


2) Inheritance design and implementation


a.Reasonable class hierarchies


b.Proper data fields separation in base and derived classes


c.Proper methods separation/overloading/overriding in base and derived classes


d.Proper use of base and derived class constructors


3) Polymorphism and implementation


a.Write generic code that targets the base class whenever possible


b.Appropriate use of overriding in derived classes to realize polymorphism


4) Information store and implementation


a.Use Hash Map and other Java collection class(es) to store information


5) Exception handling


a.Throw an exception object when an application error occurs (e.g., when an invalid piece of data is entered)


b.Use “try/catch/finally” or “try/catch” block to handle the exception


6) Use Java Swing to implement your GUI


Other Specifications

You must follow the next three specifications when completing this assignment:


1) Place appropriate comments in your program—e.g.:


/** explain what the program file is doing . . . */


// explain what a part/method of the program is doing…


2) DO NOT add any file path for ‘computers.txt’ (put it directly in your project folder when you test your code)


3) DO NOT add your own package name(s) to the beginning of your .java files (this requirement is only for marking purpose)


Submission Requirements:

1) Your storyboard as a PDF file


2) All your .java files (source codes)


3) Zip all your files (PDF file and .java files) together and submit as a single file to Stream


版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp