登录
首页 » Java » Java

Java

于 2020-07-01 发布 文件大小:1KB
0 209
下载积分: 1 下载次数: 1

代码说明:

  设计模式一(单子、工厂、策略模式)练习 1. 假设现在要设计一个贩卖各类书籍的电子商务网站的购物车系统。对所有的教材类图书 实行每本一元的折扣;对连环画类图书提供每本7%的促销折扣;而对非教材类的计算机图书有3%的折扣;对其余书没有折扣。使用策略模式、工厂模式、单子模式进行设计(Design Mode 1 (List, Factory, Strategy Mode) Exercise 1. Suppose we are going to design a shopping cart system for e-commerce websites that sell all kinds of books. All textbook books are discounted at one yuan per book; comic books are discounted at 7% per book; computer books are discounted at 3% for non-textbook books; and other books are discounted at no rate. Design using strategy mode, factory mode and single mode)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • split_words
    分词程序,正向最大匹配法,JAVA语言。核心思想是从句子最左端开始,单字节扫描匹配,直至句末(Segmentation procedure, forward maximum matching, JAVA language. Core idea is to start from the leftmost sentence, single-byte scan match until end of the sentence)
    2013-11-04 19:29:54下载
    积分:1
  • KeyFactoryTestDSA
    Shows a list of bug reports currently in /sdcard/bugreports.
    2013-11-21 23:46:40下载
    积分:1
  • ArabicStemmerCode_2
    stemmer for Arabic words/texts
    2013-06-20 02:26:07下载
    积分:1
  • Student-Study
    spring 学习,包括bean,dao,bean的注入,解析,xml文件的解析(Spring learning, including bean, dao, bean injection, analysis, xml file analysis)
    2017-04-11 15:50:56下载
    积分:1
  • DirectByteBuffer
    DirectByteBuffer extends BaseByteBuffer implements DirectBuffer.
    2014-02-18 12:46:44下载
    积分:1
  • tomsun28-bootshiro-master
    说明:  基于springboot2+ shiro+jwt的真正rest api资源无状态认证权限管理框架,开发人员无需关注权限问题,后端开发完api,前端页面配置即可(Based on the real rest API resource stateless authentication permission management framework of spring boot 2 + Shiro + jwt, developers do not need to pay attention to permission issues. after the API is developed, the front-end page configuration can be completed.)
    2020-06-19 11:40:02下载
    积分:1
  • BlockComboBox
    利用Swing组件在弹出式菜单项间画分隔线(Drawing split line in Popumenu by java swing.)
    2001-01-20 11:53:29下载
    积分:1
  • struts-prj3
    应用于Java初学者,用来对开发感兴趣,提高代码认知。(Applied to Java beginners to be interested in development and improve code awareness.)
    2018-04-14 16:43:35下载
    积分:1
  • pwo_solution_manual1
    Solution Manual for Programming with Objects c++ and java Programming with Objects: A Comparative Presentation of Object Oriented Programmming(Solution Manual for Programming with Objects c++ And java Programming with Objects: A Comparative Presentation of Object Oriented Programmming)
    2008-04-30 11:52:54下载
    积分:1
  • Guessnumber
    猜数字游戏 游戏说明: 1、游戏开始,电脑随机产生一个数字不重复的四位数。 2、将您猜的数点击OK按钮提交。 3、电脑会将您提交的数与它自动产生的数进行比较,结果显示成"*A*B"。A代表位置正确数字也正确,B代表数字 正确但位置不正确,比如:"2A2B"表示您有2个数字的位置正确且数值也正确,除此以外,您还猜对了2个数字 ,但位置不对。 4、您共有10次机会,在10次内,如果结果为“4A0B”,游戏成功。如果10次里您都没有猜对游戏失败。(Guessnumber: 1, games started, the computer randomly generated a number of non-repetition of the four-digit. 2, would you guess the number of clicks the OK button to submit. 3, the computer will take you to submit a few with it automatically generated a number of comparison, the result is displayed as* A* B . A representative of the location of the correct figure is also correct, B representative of the number of correct but the location is incorrect, such as: 2A2B that you have a two-digit numerical position is correct and also the right, in addition, you guessed it two figures, but wrong location. 4, your opportunity for a total of 10 times in 10 times, if the results of 4A0B , the game successfully. 10 years if you do not have to guess the failure of the game.)
    2021-03-22 08:19:17下载
    积分:1
  • 696516资源总数
  • 106428会员总数
  • 7今日下载