文件名称:Lab5
-
所属分类:
- 标签属性:
- 上传时间:2014-11-10
-
文件大小:131.14kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
1) Write a program that tells what coins to give out for any amount of change 1 cent to 99 cents. For example if 86 cents is entered the output will be: 86 cents can be given as 3 quarter(s), 1 dime(s) and 1 penny(s).
Coins to be used: 25 cents > one quarter. 10 cents > 1 dime. 1 cent 1 penny.
If you like u can use nickel and half dollar. (Optional)
Validate the input so the user’s entry is not less than 0 or greater than 99.
Use functions with any algorithm you like.
-1) Write a program that tells what coins to give out for any amount of change 1 cent to 99 cents. For example if 86 cents is entered the output will be: 86 cents can be given as 3 quarter(s), 1 dime(s) and 1 penny(s).
Coins to be used: 25 cents > one quarter. 10 cents > 1 dime. 1 cent 1 penny.
If you like u can use nickel and half dollar. (Optional)
Validate the input so the user’s entry is not less than 0 or greater than 99.
Use functions with any algorithm you like.
Coins to be used: 25 cents > one quarter. 10 cents > 1 dime. 1 cent 1 penny.
If you like u can use nickel and half dollar. (Optional)
Validate the input so the user’s entry is not less than 0 or greater than 99.
Use functions with any algorithm you like.
-1) Write a program that tells what coins to give out for any amount of change 1 cent to 99 cents. For example if 86 cents is entered the output will be: 86 cents can be given as 3 quarter(s), 1 dime(s) and 1 penny(s).
Coins to be used: 25 cents > one quarter. 10 cents > 1 dime. 1 cent 1 penny.
If you like u can use nickel and half dollar. (Optional)
Validate the input so the user’s entry is not less than 0 or greater than 99.
Use functions with any algorithm you like.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Lab5.docx
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.