CSE 5322软件设计模式


CSE 5322 002/970: SOFTWARE DESIGN PATTERNS
October 4, 2023
Homework 2, 15%
Due: 10/25/2023 11:59PM
1 Introduction
This homework assignment requires the student to design a desktop application for adding items to, and deleting
items from, a collection as well as displaying the result using a table. In addition, the application must support
undo and redo operations. When the application is launched, it shows a window with an empty table as well
as the Add, Delete, Undo and Redo buttons at the bottom of the window. When the Add button is clicked, an
item with a unique ID and some dummy text content is added to the table. If the table is not empty, the user
can select a row and click the Delete button to delete the selected row. The user can click the Undo or Redo
button to undo or redo the last operation, and the table is updated accordingly.
This individual homework assignment consists of two parts:
1. Solving the assignment work items and submitting your solution on Canvas by the deadline. Absolutely
no late submission will be accepted. (3%)
2. Taking the multiple-choice test on the homework in class after the submission deadline. (12%)
2 What To Do and Submit
As stated above, this individual assignment consists of two parts.
2.1 Part 1. Solve and Submit (3%)
This individual homework assignment requires the student to do and submit the following equally-weighted
items:
1. Construct an expanded use case for the Update Table use case of the application; you can assume that
this application has only one use case.
2. For each nontrivial step of the expanded use case, write a scenario to describe how objects interact with
each other to process the actor request. The scenario must apply the controller pattern and the command
pattern.
3. Convert the scenarios to scenario tables.
4. Convert the scenario tables to informal sequence diagrams. Show the patterns applied using UML note
or UML stereotype.
5. Convert the informal sequence diagrams to design sequence diagrams. Show the patterns applied using
UML note or UML stereotype.
6. Derive a design class diagram from the design sequence diagrams. Show the patterns applied using UML
note or UML stereotype.
7. Implement your design in Java. Compile and run your code. Test run and produce screen shots to show
that all of the four buttons work correctly.
1
2.2 How To Submit
Compress your design document, source code, and screen shots into one .zip or .rar file, name the file as follows,
and submit it on Canvas:
Lastname Firstname CSE4361 F23 HW2.zip, or
Lastname Firstname CSE4361 F23 HW2.rar
Additional submission instructions may be announced by the TA.
2.3 Part 2. Take Homework 2 Test (12%)
Taking the multiple-choice test on the homework in class on October 26, 2023. You will have 80 minutes to
complete the test. It will take place during the last 80 minutes of the session.
Be sure to bring a #2 pencil to the test. We will not provide pencils.
WX:codehelp

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值