华南农业大学面向对象实验

Online shopping system(在线购物系统)

                                                                      实验一

1. Problem Statement

     With the development of smart phones and the popularization of the Internet, peoples lives are becoming more and more convenient. As a programmer, now you need to develop an online shopping system. The new system can be accessed through the network of mobile phones and computers, while the new system will allow customers to synchronize their shopping cart information with computers and mobile phones, and allow customers to reserve the latest products to be released.

      Customers can find the products they need according to the key or item attribute categories. They can freely choose the quantity and color of the goods and add them to their shopping carts, and can view other customers' evaluation of the products.

     Tencent will open the payment interface of WeChat because of the cooperation relationship between Tencent and its customers. This system supports the completion of online payment via WeChat.

     After the customer completes the order, the system will automatically generate the order number and automatically notify the workers to pack and express the company.

     After receiving the item, the customer can post his opinions and pictures of the product. At the same time, the system can perform machine learning according to the customer's buying habits and conduct product recommendation appropriately.

     The system allows customers to register members and discounts on the products purchased by the members. Discounts can also be made on specific festivals.

随着智能手机的发展和互联网的普及,人民的生活越来越便利。作为一个程序员,现在你需要开发一个在线购物系统。新的系统可以通过手机和电脑的网络进行访问,同时新的系统将允许客户在电脑和手机同步自己购物车的信息,并且允许客户预约将要的发布的最新的产品。

      顾客可以按关键或者物品属性类来查找自己需要的商品,可以自由得选择商品的数量和颜色并把他们加入到自己的购物车,并且可以查看其他客户对商品的评价。

     由于客户与腾讯存在合作关系,腾讯将开放微信的支付接口,本系统支持通过微信实现在线支付完成下单。

     在顾客完成下单后,系统将自动生成订单号,并自动通知工人进行打包和快递公司。

     顾客收到物品后可以发表自己对商品的看法和图片。同时系统可以根据顾客的购买习惯进行机器学习,适当的进行商品推荐。

     系统允许顾客注册会员,并对会员购买的商品进行打折,也可以在特定节日对商品进行打折。

 

2.Domain Activity(业务领域活动图





3. Glossary

3.1 Introduction

This document is used to define terminology specific to the problem domain, explaining terms, which may be unfamiliar to the reader of the use-case descriptions or other project documents.  Often, this document can be used as an informal data dictionary, capturing data definitions so that use-case descriptions and other project documents can focus on what the system must do with the information.

      本文档用于定义特定于问题域的术语,解释术语,读者可能不熟悉用例描述或其他项目文档。通常,该文档可以用作非正式的数据字典,捕获数据定义,以便用例描述和其他项目文档可以关注系统必须对信息做什么。

3.2 Definitions(定义)

   2.1  customer(顾客)

       A person who wants to buy goods in this system

一个想在本系统购买商品的人。

   2.2 commodity (商品)

Items sold in this store

      本商店销售的物品

   2.3 shopping cat (购物车)

      Where customer goods are stored

      存放顾客商品的地方

   2.4 Orders (订单)

The statistical table of things purchased by the customer includes the number of products,the purchase price and date, and the order number.     

 顾客购买的东西的统计表,包括商品数量,购买价钱和日期,以及订单号。

   2.5 Employee(内部员工)

      Store staff responsible for packing and delivering merchandise

商店聘请的负责打包和配送商品的工作人员

2.6 user(用户)

 People registered in this system and using this system.

在本系统注册,并且使用本系统的人

   2.7Express employee(快递员工)

       A employee responsible for transporting goods and sending goods to customers' homes.

      负责运送商品,把商品送到客户的家里的公司。

 

 

4.Domain Class Diagram(领域类图)


 


                                                                

                                                                               实验二

1.User Case Diagram 



2. Table template description表模板描述

 1)用况名:搜索商品

      简述:用户通过输入商品的名字进行对应的商品查找

      参与者:用户

      包含:类似商品查找

      扩展:无

      继承&#

实验5学生成绩分析程序 实验类型:综合性 实验目的:综合运用Java语言和面向对象技术开发一个小型软件系统 实验内容: 1. 已经提供的原始数据:班级成绩单文件 该文件为文本文件,存储某个班的所有学生某门课程的成绩。 例如:2012级计算机科学与技术8班-面向对象程序设计.txt 文件中每行存储一个学生的成绩,包括:学号、姓名和成绩,中间用英文逗号分隔。 说明:学号和姓名是字符串,成绩使用整数。 例如“2012级计算机科学与技术8班-面向对象程序设计.txt”文件中存放该班学生面向对象程序设计的考试成绩。内容为: 201230740801,赵一,68 201230740802,钱二,82 201230740803,孙三,58 201230740804,李四,62 201230740805,冯五,73 …… 2. 实验要求: (1) 程序使用图形用户界面。 (2) 文件操作与数据统计功能 <1> 打开上面给出的文本文件,将其中的成绩数据加载到内存。 <2> 把内存中的成绩数据另存为格式相同的另一个文本文件。 <3> 把内存中的成绩数据另存为一个二进制的对象文件。 <4> 打开已经保存的二进制的对象文件,将其中的成绩数据加载到内存。 <5> 统计分析已经加载到内存的班级的成绩,包括:最高分、最低分、平均分、各成绩等级的人数和百分比。 说明:该部分界面参见图1,黄色注释框标出的是完成本部分功能需要的界面。 (3) 图形统计功能 <1> 对加载到内存的成绩单进行“柱形图”分析 <2> 对加载到内存的成绩单进行“饼图”分析 说明:该部分界面参见图2,图1红注释框标出的是完成本部分功能需要的按钮。图形使用Java的Graphics对象绘制,不得使用第三方类库。 (4) 查询排序功能 <1> 在“查询输入框”输入“学号、姓名或成绩”的全部或部分,成绩列表中只显示包括输入数据的成绩项目。 <2> 点击表格的“列标题”,可以自动按该列排序,2次点击可以切换“升序”和“降序”。 说明:图1黑色注释框指出的是查询界面的位置。提示:JTabel的RowSorter。 提交要求: 1. 打包为可以执行的JAR文档,其中要包含源程序文件。 2.实验报告,简要说明程序的设计思路,不要贴代码,不超过5页(含封面)WORD文档,扩展名为.DOC。 成绩评定说明: 1. 前4个实验随堂练习的平均成绩占实验课最终成绩的70%。 2. 综合性实验满分100分,占实验课最终成绩的70%。 3. 综合性实验评分细则 (1) 完成实验要求的前2项,75分----80分 (2) 完成实验要求的前4项,85分----90分 (3) 完成实验要求全部4项,95分----100分 说明:确定分数段后,根据完成的程序结构、运行效率、界面美观等给出具体分数。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值