EEEE1038讲解、Electronic Engineering辅导、讲解JAVA/c++程序设计
- 首页 >> Java编程Department of Electrical & Electronic Engineering
University of Nottingham, China Campus
COMPUTER AIDED ENGINEERING
EEEE1038
COURSEWORK
Deadline: 6:00pm, Monday, 14th January, 2018
Submission Type: Moodle
2018/2019
Design a check-out system for the Walmart supermarket. The stock of the
current season is listed below:
Category Item Description Item Code Unit Price
Food
Chicken 00310 35.00
Pork 00311 20.50
Beef 00322 45.00
Fish 00323 40.00
Clothing
Walmart T Shirt 00510 75.00
Walmart Trousers 00511 120.00
Walmart Coat 00512 100.00
Walmart Jumper 00513 85.00
Stationary
Mug 00710 15.50
Fry Pan 00711 200.00
Bowl 00712 25.00
Dish 00713 25.00
Upon starting the program, display a welcome screen like this:
***********************************************
* WALMART NINGBO ZHEJIANG CN *
* Scan the item code or manually type the code ID *
* Type F to finish *
***********************************************
Show the prompt Item Code: to allow the cashier to enter a barcode
number. One entry per line. For each code entry, the system will search
the database and locate the item name and its price. If no match can be
found, then display an error message: This item code does not exist!
Try again! The entry process will keep repeating until the cashier types F
to finish.
Once the entry finishes, display a receipt that shows a greeting, a shopping
list, and the total cost. The order of the items on the receipt should be in
the same order of the original item entry process. An example receipt can
be like this:
_____________________________________
THANK YOU FOR VISITING US!
_____________________________________
Here is your receipt:
Item Code Price
Dish 00713 25.00
Beef 00322 45.00
Bowl 00712 25.00
Walmart Jumper 00513 85.00
Walmart T Shirt 00510 75.00
_____________________________________
TOTAL COST: 255.00
After printing the receipt, use Cash Received: message to allow for the
entry of cash. Then use Change Given: message to indicate the change
from the cash received.
When the transaction finishes, display a message of Next customer?
(Y/N). If Y is entered, then restart the system from the beginning with the
welcome screen. If N is entered, then exit the system.
Assessment Criteria
The technical construction of the application system in this coursework can
be broken down into the following components:
Component Weighting
Stock Database 10%
Welcome Screen 10%
Cashier Entry and search 40%
Receipt Print 20%
Cash and Change 10%
Next Customer 10%
Total 100%
Based on the principles of effective and efficient software engineering
practice, each component above will be assessed using the criteria as
shown below:
Component Weighting
Completion of the Task 50%
Data Type Usage and Memory Efficiency 10%
Program Structure (Algorithm) 10%
User-Friendly Interface 10%
Satisfaction of System Requirement 10%
Comments 10%
Total 100%