Find Jobs
Hire Freelancers

C++ Program - Easy

$10-30 USD

进行中
已发布超过 6 年前

$10-30 USD

货到付款
Instructions: To write a program that will calculate change for a sales purchase. The program should prompt for a sales price. Validate that the data entered is a number greater than 0. If the data entered is incorrect, display an error message and end the program. Next, prompt the user for the amount that the customer will pay to the cashier. Validate that this value is greater than or equal to the sales price. If it is not, display an error message and end the program. If the entry is correct, your program must calculate the amount of change to return to the user. Next, calculate what bills and coins that the the cashier needs to return to the customer. The fewest number of paper bills and coins should be returned. You can make change in many different combinations, however, the only correct implementation is the one that returns the fewest paper bills and coins. Display the number of each of the bills and coins. Here is a sample run of the program: Enter in a sales amount: $20.38 Enter in the amount the customer pays: $30.00 The change due back is $9.62 You should give the customer this change: 0 $100 bills 0 $50 bills 0 $20 bills 0 $10 bills 1 $5 bills 4 $1 bills 1 Half Dollars 0 Quarters 1 Dimes 0 Nickels 2 Pennies Because of the way arithmetic works with float variables, storing the monetary values as floats may cause some problems. For example, if you had a float variable that held 1.29 to represent $1.29 and you subtracted the .05 from it (to represent giving back a nickel) you would think that you would be left with exactly 1.24. Unfortunately, the computer might store that value or it might store 1.2399999 or 1.2400001 instead of exactly 1.24. These very small inconsistencies can cause a problem calculating the number of pennies to return. This needs to be done in the C++ programming language. Project due date is 9:00pm CST
项目 ID: 15262474

关于此项目

12提案
远程项目
活跃7 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
12威客以平均价$34 USD来参与此工作竞价
用户头像
.....................................................................................................................................
$138 USD 在1天之内
4.9 (38条评论)
6.5
6.5
用户头像
Dear Sir/Madam I've excellent C and C++ programming skills and knowledge. I can provide an efficient, perfect, well documented development of your Java project according to 100% accuracy and requirements, with dedicated support. Thanks Farah Saif >>>>>>>>>>>>>>> Solution within couple of hours <<<<<<<<<<<<<<<<<<
$30 USD 在1天之内
5.0 (180条评论)
6.3
6.3
用户头像
Hi, I can help you on this project. Thank you. Relevant Skills and Experience Hi, I can help you on this project. Thank you. Proposed Milestones $40 USD - Start and finish the work
$40 USD 在1天之内
5.0 (54条评论)
5.7
5.7
用户头像
I m software engineer. I have read the description and I would like to work for you. For further details please inbox me. Thank you Relevant Skills and Experience C++ Proposed Milestones $30 USD - Milestone
$30 USD 在1天之内
5.0 (34条评论)
5.5
5.5
用户头像
Hello, i am expert in java/c/c++ and i can deliver any task in least time and least payments. Pm me for further details. Thank You! Stay tuned, I'm still working on this proposal.
$30 USD 在1天之内
4.9 (19条评论)
4.1
4.1
用户头像
I am an experienced C++ programmer. I will do your project. Feel free to contact me for further discussion. Regards, Moeen Ahmed Relevant Skills and Experience C++ Algorithms Proposed Milestones $20 USD - project How much time do you have? You only mentioned time.
$20 USD 在1天之内
4.6 (5条评论)
3.3
3.3
用户头像
i have read all description. can deliver it to you before 9pm cst thanks!! Relevant Skills and Experience c++ Proposed Milestones $15 USD - c++ change codnning looking forward to get some response
$15 USD 在1天之内
5.0 (15条评论)
3.3
3.3
用户头像
Hello dylanswirk. .I can help you We have experience in this Software Architecture, Shell Script, Software Development, App Designer, Programming I will save your time and my time, do this project fast as possible and the cost i bidded was reasonable If you want a good and fast service, please text me via inbox Relevant Skills and Experience Software Architecture, Shell Script, Software Development, App Designer, Programming Proposed Milestones $20 USD - for starting project We can Discuss custom Milestones
$23 USD 在2天之内
0.0 (0条评论)
0.0
0.0
用户头像
A proposal has not yet been provided
$15 USD 在2天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
Oak Creek, United States
5.0
30
付款方式已验证
会员自4月 27, 2015起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。