BEST代写-线上编程学术专家

Best代写-最专业靠谱代写IT | CS | 留学生作业 | 编程代写Java | Python |C/C++ | PHP | Matlab | Assignment Project Homework代写

编程代写|159.234 OBJECT-ORIENTED PROGRAMMING Assignment 3 S1, 2023

编程代写|159.234 OBJECT-ORIENTED PROGRAMMING Assignment 3 S1, 2023

这是一篇来自新西兰S1 2023的关于加强Java OOP的核心概念(抽象、封装、继承和多态性)、集合框架和泛型、异常处理、输入和输出流,以及使用Swing的GUI的编程代写

 

  1. System Description (Overview of Problem)

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

  1. 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)

  1. 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

  1. 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)

  1. 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

 

系统描述(问题概述)

你被要求用 Java 编写一个程序来模拟一个计算机商店的管理系统

要完成的任务:

a) 使用系统生成的 GUI 的屏幕截图创建一个叙述性的分步故事板,以演示计算机商店管理系统所需的功能(请参阅本文档末尾的示例;您可以使用其格式来展示您的 工作)

您的 Java 代码应该:

b) 使用 Java Input 将提供的测试数据 (computers.txt) 导入您的系统

c) 使用提供的用户名和密码将五名员工添加到计算机商店的系统中——三名销售人员和两名经理(此功能应具有设计有应用核心 OOP 概念的适当继承层次结构的类)

d) 实现上面系统描述中指定的所有功能(对于此作业,您不需要在管理员更新/添加/删除记录后更新 computers.txt 文件,您只需要更新 GUI 以显示更改)

设计和实施指南

注意:您将因正确性、完整性、无代码重复和清晰的屏幕输出而获得荣誉。

此外,我们将使用以下 OOP 和一般软件实施指南对您的程序进行评分:

1)封装设计与实现——修饰符的正确使用

a.私有/受保护/公共

b. 必须在适当的时候使用 getters 和/或 setters

2)继承设计与实现

a.合理的类层次结构

b. 基类和派生类中适当的数据字段分离

c. 基类和派生类中的适当方法分离/重载/覆盖

d.正确使用基类和派生类的构造函数

3)多态与实现

a. 尽可能编写以基类为目标的通用代码

b.在派生类中适当使用重写来实现多态

4) 信息存储与实现

a.使用Hash Map等Java集合类存储信息

5)异常处理

a.当应用程序发生错误时抛出异常对象(例如,当输入了一条无效数据时)

b.使用“try/catch/finally”或“try/catch”块来处理异常

6) 使用 Java Swing 来实现你的 GUI

其他规格

完成此任务时,您必须遵循以下三个规范:

1) 在你的程序中放置适当的注释——例如:

/** 解释程序文件在做什么。 . . */

// 解释程序的一部分/方法在做什么……

2) 不要为“computers.txt”添加任何文件路径(测试代码时将其直接放在项目文件夹中)

3) 不要在 .java 文件的开头添加您自己的包名称(此要求仅用于标记目的)

提交要求:

1) 您的故事板为 PDF 文件

2)你所有的.java文件(源代码)

3) 将所有文件(PDF 文件和 .java 文件)压缩在一起并作为单个文件提交到 Stream

bestdaixie

评论已关闭。