Find Jobs
Hire Freelancers

C++ LEL

$30-250 USD

已完成
已发布大约 14 年前

$30-250 USD

货到付款
In LEL, the tax treatment of earned income is different from the tax treatment of unearned income such as capital gains, interest and dividends. For earned income, there is a "standard deduction-earned" of 1000 LELn Dollars (LE$). Earned income above that amount is taxed at 25%. For unearned income, there is a "standard deduction-unearned" of 2000 LE$. Unearned income above that amount is taxed at 20%. The task is to write a program to compute the tax to be paid by a taxpayer, given the taxpayer's amount of earned income and amount of unearned income. The program will use a function to compute tax on an amount, given the amount, the deduction, and the rate. The function will be called twice: once for earned income and once for unearned income. Before proceeding further, you should construct some test data by doing some tax computations manually. That way, you will be sure that you understand the tax computation procedure. Here are some cases to use. After you have computed the tax in these cases manually, check your work against the correct answers in the right (Tax) column. Be sure you understand how each number in the Tax column was computed! Then work out a couple of additional test cases of your own. Test Case No. Earned Income (LE$) Unearned Income (LE$) Tax (LE$) 1 500 1500 0 2 500 2500 100 3 1500 1500 125 4 1500 2500 225 5 1740 2250 235 6 437 2250 50 7 1760 100 190 As in previous assignments, you will start with an Assignment Template, which you can find attached as Assignment4Template.cpp. In that file, you will see that most of the program has been written for you. You will fill in the missing parts, compile the program, and test it using the test data above. Missing parts are indicated by ?????. One final note: It should not be necessary for you to change anything in the template other than the ????'s. If you do feel an overwhelming urge to change anything else, please post a note in this week's conference explaining why you feel that urge, and let's discuss it!
项目 ID: 664598

关于此项目

3提案
远程项目
活跃14 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
can do it on your terms as previous one
$30 USD 在2天之内
5.0 (3条评论)
2.5
2.5
3威客以平均价$30 USD来参与此工作竞价
用户头像
Please check PMB, thanks.
$30 USD 在1天之内
5.0 (27条评论)
4.2
4.2
用户头像
Easy task.
$30 USD 在0天之内
5.0 (8条评论)
3.9
3.9

关于客户

UNITED STATES的国旗
Columbia, United States
3.9
3
会员自4月 4, 2010起

客户认证

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