搜索资源列表
EITHT_COIN
- 包括八个硬币关于假币的算法,是c和java版的对比实现-including eight coins counterfeit money on the algorithm is c and java version of the contrast achieve
dutu
- 自己做的小程序,关于那个悖论算法的,就是抛硬币的算法,很简单,不过很有趣,可以证实一下数学观点,有两个参数,一个是赌的次数,另一个是赌本。 -own small procedures on the paradox that the algorithm is throwing coins algorithm is very simple. But it is interesting, can confirm this mathematical perspective, there are tw
Java
- 用java语言实现了EM算法在抛硬币实验中的应用-It has implemented the EM algorithm in tossing the coins
TOSS
- 编写一个模拟硬币的applet.每次用户按下“Toss”按钮,程序投掷一个硬币。统计硬币各面出现的次数,并显示结果。程序应该调用不带任何参数的独立方法flip,如果是硬币正面,则方法返回“true” 如果硬币背面,则方法返回“false”.-Write a simulated coin applet. Each time the user presses the " Toss" button, the program throws a coin. Statistics coin
zhaolingqian
- 找零钱算法,当前有面值分别为2角5分,1角,5分,1分的硬币,请给出找n分钱的最佳方案-Algorithm to find small change, we have before us a face value of 2, c. 5 min, 1 pt, 5 hours, 1 minute coins, please give n cents to find the best solution
java
- 基于java的自动售货机,可自动分辨硬币,选择饮料-Java-based vending machine, can automatically distinguish coins, choice of beverage
MVC_CarGoat
- MontyHall,java代码实现 模拟Monty Hall 猜谜游戏,该游戏来源于电视节目“Let’s Make a Deal”, 游戏规则如下:游戏中设有三扇门,其中一扇门后是一辆汽车,另外两扇门后各有一头山羊。游戏参与者首先选择其中一扇门,然后,节目主持人将另外两扇门中藏有山羊的那扇打开(由于有两头山羊,不管游戏参与者如何选择,节目主持人总是可以打开一扇藏有山羊的门),并给游戏参与者一次改选的机会,这样,游戏参与者实际上有三种不同的选择方式: 维持原先的选择不变。 随
java2
- 编写一个整钱兑零程序,该程序能够将用double类型表达的钱数兑换成相应的硬币,要求精确到分。(硬币的面值有1元、5角、1角、5分、2分、1分,如果输入:12.53,结果应该为:12(1元),1(5角),1(2分),1(1分))。-we
G.C
- java 可视化实现硬币找零算法,学习java基础知识必备-java visualization of coins through irregular algorithms, essential to learn the basics of java
minimumC
- JAVA实现动态规划找最少硬币数,内有详细注释
Exchange-Test
- 用Javascr ipt实现的找零钱示例,可以规定单价,数量,支付款项,程序可以得出找零,不同面值的纸币和硬币的个数。-It is a program which is realized using Javascr ipt. This program can calculate the change of different kinds of money.
moneyarr
- 计算一元钱硬币有多少种表达方式。例如,可以使用1元钱完成,也可以使用两个5角完成。这里可供选择的货币单位从1分到1元。编写程序计算出每一种组合方式。-Calculate the number of species of a dollar coin the expression. For example, you can use a dollar to complete, you can use to complete two five corner. Here alternative monet
SaleMachine
- 售货机,只能头五角的硬币或一元的硬币,若投入五角,售货机有饮料,则可取,否则显示已经售完-Vending machines, only the first Pentagon coins or a dollar coin, if the input Pentagon, vending machines with drinks, is desirable, otherwise the show has sold out
yiyuanqian
- 计算一元钱硬币有多少种表达方式。例如,可以使用1元钱完成,也可以使用两个5角完成。这里可供选择的货币单位从1分到1元。编写程序计算出每一种组合方式。-Calculate a dollar coin how many kinds of expression. For example, you can use a dollar to complete, you can use two 50 cents to complete. This choice of currency units assign
CoinsChange
- 硬币找零问题 动态规划算法 JAVA源代码-Coin change for the dynamic programming algorithm for Java source code
card_seller2
- 自动售邮票机:(a)机器能自动识别硬币金额,最大为一元,最小为一角。购票者可选择的邮票面值有一元和五角两种,每次只能售出一枚邮票; (b)购票时先选择邮票面值后投币,当投入的硬币总金额达到或超过邮票面值时,机器应发出指示并拒收继续投入的硬币; (c)购票者投币后,按动确认键,机器将发出邮票和找零硬币,若所投金额不足,则发出欠资指示。在欠资情况下,购票者可以继续投币购票,也可按取消键,则机器将退出所投入的全部金额; -there is a slot machine, you can
problem4
- 从键盘上输入一件商品价格(0.01-5.00元)。如果支付5元,给出一种找零方案,使得所找纸币及硬币的个数最少。例如,输入物品价格1.68元,给出找零方案2元1张,1元1张,2角1个,1角1个,2分1个。(可找币种类包括所有发行的纸币和硬币)。-Input from the keyboard on a commodity price ($ 0.01-5.00). If you pay $ 5, gives a change for the program, so that at least th
monnaie
- 关于一个硬币找零的java小程序 programme dynamique-About a coin change the java applet programme dynamique
bukepai
- 1.写一个程序提示用户键入某一货币数量(以分为单位),该程序应计算出如何用最少量的1元,50分,10分和1分硬币得到该数目。如195分最少可以用一个1元硬币,1个50分硬币,4个10分硬币和5个1分硬币组成。 注意:可以不用数组。 2.写一个程序可以对两个字符串进行测试,得知第一个字符串是否包含在第二个字符串中。如字符串”PEN”包含在字符串“INDEPENDENT”中。 可以利用字符串类的方法 boolean regionMatches(int toffset, String
VendingMachine
- swing实现的自动售货机,面板功能包括:多种硬币按钮模拟投币,选择商品进行交易,确认取货并找零,取消按钮取回已投硬币。售货机内物品数量以及硬币数量可修改-swing to achieve a vending machine, the panel features include: a variety of simulated coin coin button, select commodities trading, confirm pick up and give change, cancel