Find Jobs
Hire Freelancers

C++ Program Computing a Speeding Ticket

$10-30 USD

已完成
已发布超过 9 年前

$10-30 USD

货到付款
Computing the fine for a speeding ticket Students will write an application to calculate speeding ticket fines for any number infractions. For each ticket, the input to this program will be the following (1) actual speed, (2) speed limit, (3) whether the offense occurred in a work zone, in a residential district, or not and (4) the court fees. The court fees are the same through the run, it is asked to the user only once. The output should show the total amount for the ticket. Once one total fine has been computed, the user should be given the choice of processing another ticket or quit. Speeding Fine: $5 per mile over speed limit plus Court Fees Speeding Highway Work Zone Fine: $6 per mile over speed limit plus Court Fees Speeding in a Residential District Fine: $7 per mile over speed limit plus $200 plus Court Fees Here is a typical session for this program: Enter court fees: 62 Enter the type of speeding offense (1 for regular, 2 for highway, 3 for residential): 1 Enter the speed limit: 25 Enter the vehicle speed: 35 The total fine is $112 Enter 1 to enter another ticket or 0 to quit this fine calculator: 1 Enter the type of speeding offense (1 for regular, 2 for highway, 3 for residential): 3 Enter the speed limit: 55 Enter the vehicle speed: 65 The total fine is $332 Enter 1 to enter another ticket or 0 to quit this fine calculator: 0 Good bye. The program needs to be structured using a class named FineCalculator that is in charge of computing the fine. The class declaration follows (no changes are allowed for this class definition): class FineCalculator { public: FineCalculator(int courtFees); int getFine(int zone, int speedLimit, int actualSpeed) const; private: int _courtFees; }; The getFine member function must not do any input or output, the only thing it does is computing the fine corresponding to the different parameters.
项目 ID: 6569680

关于此项目

8提案
远程项目
活跃10 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Hello. It is easy thing and it can be done in few hours ..............................................
$15 USD 在1天之内
4.9 (326条评论)
6.4
6.4
8威客以平均价$23 USD来参与此工作竞价
用户头像
Hello I am expert C++ developer and interested in this project. I have checked the details of assignment and I will complete it perfectly. I will strictly follow the class definition. Please communicate to discuss further. Regards Anshu
$30 USD 在1天之内
4.8 (129条评论)
6.1
6.1
用户头像
I'm a fourth year student studying computer science at the university of technology, jamaica. I have gone through all the basic programming courses required for my course so the program you require to be written should be a breeze
$15 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
A proposal has not yet been provided
$25 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
A proposal has not yet been provided
$25 USD 在1天之内
0.0 (0条评论)
2.9
2.9
用户头像
A proposal has not yet been provided
$25 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
I'm an Electrical Engineering student and I have studied 3 C++ Programming courses i.e. Programming Fundamentals, Classes & Structures and Data Structures. I have also worked for many projects as freelancer in my University and local software houses. My programming is very concise, understandable and easily modifiable. I will try to give my best input for this project. Contact me for any further details about this work.
$20 USD 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

KOREA, REPUBLIC OF的国旗
APO, Korea, Republic of
5.0
3
付款方式已验证
会员自7月 27, 2014起

客户认证

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