Giter Site home page Giter Site logo

a4-cs102a-2022spring's Introduction

Hello, I'm YeeTone WANG, a software code farmer

YeeTone Wang will be a PhD student at the Department of Computer Science in ANU, whose supervisor is Prof. Xiaoyu SUN. He is a member of [iSparkLab]. His research is mainly focus on Software Engineering and Automated Testing.

yeetone

Languages and Tools:

c cplusplus csharp java opencv postgresql python

yeetone

 yeetone

yeetone

Research Area:

  • WebAssembly
  • Software Automated Testing
  • JVM and its Implementation
  • Web Browsers

a4-cs102a-2022spring's People

Contributors

lance-azrael avatar qwertyuiop41 avatar xiye2333333 avatar yeetone avatar yidatao avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

a4-cs102a-2022spring's Issues

增加Online Store题目中的用户退货机制,用户钱包机制,以及商店收入统计机制

这部分的设计思路来源与21秋季学期的OOAD课程project中的评分要点:
OOAD SUSTech Store 评分细则
基础需求

  1. 可以发布商品和求购商品
  2. 用户可以进行商品买卖
  3. 用户可以根据商品信息检索商品
  4. 平台提供实时聊天交流途径
  5. 集成通知系统
  6. 提供支付途径
    高级需求
  7. 支持认证鉴权
  8. 信誉系统
  9. 结合校园生活设计
  10. 跑腿代购模块或者api store模块

Online Store题目修改意见by YeeTone WANG and Yida TAO

【修改】
SortBy枚举类的相关功能的bonus取消,变为基本分。
修改函数签名:
Product类修改为:

public boolean setRatings(int rating);

Customer类修改为:

public boolean rateProduct(Product product, int rating);

【收入统计】
Store类中增加Field:

private float income;

增加Method:

public float getIncome();
public boolean setIncome(float income);

其中setIncome方法需要检查传入的参数是否为负数。

【退货与钱包】
Customer类中增加Field:

private float wallet;

增加Method(基础):

public boolean setWallet(float wallet);

其中setWallet方法需要检查传入参数是否为负数;purchaseProduct方法中需要检查wallet的数值足够购买product。

增加Method(Bonus):

public boolean refundProduct(Product product); 

注意refundProduct需要检查传入的参数是否存在与已购买列表中,成功则将商品退还给Store,并更新store的income,customer的wallet,以及shoppingCart和shoppingStores。另外如果有purchaseTime,则也需要重置purchaseTime。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.