文件名称:Lab5
介绍说明--下载内容均来自于网络,请自行研究使用
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