Simple Program
$10-15 USD
Paid on delivery
Its a simple c++ program, with two functions. it will calculate toll and report the entry and exit and display the total time of travel
## Deliverables
Rent A Coder requirements notice: As originally posted, this bid request does not have complete details. Should a dispute arise and this project go into arbitration "as is", the contract's vagueness might cause it to be interpreted against you, even though you were acting in good-faith. So for your protection, if you are interested in this project, please work-out and document the requirements onsite.
calculate_toll function will return a dollar amount or failure(-1 or 0)? arguments are two integers entry and exit point and a boolean peak indicator
? return -1 if entry point or exit point not in range of 1-8 inclusive
return 0 if entry point and exit point are same. if everything is fine calculate and return the toll.
function report_volume will give a report volume(both entry and exit point) at each exit on the autoroute.
Main program will obtain all necessary input data, validate data caluculate and display time elapsed and calculate? and display toll. this process will repeat for fixed number of times of your choice.
? exit designation number miles
? HDG? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 1? ? ? ? ? ? ? ? ? 0
? PKT? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 2? ? ? ? ? ? ? ? 31
? WES? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3? ? ? ? ? ? ? ? 48
? WOO? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 4? ? ? ? ? ? ? ? 64
? HTW? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 5? ? ? ? ? ? ? ? 77
? IAD? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 6? ? ? ? ? ? ? ? 107
? CTR? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 7? ? ? ? ? ? ? ? 120
? STA? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 8? ? ? ? ? ? ? ? 138
TOLL SCHEDULE
.65 for each exit between 1 and 5 inclusive
.75 for each exit between 5 and 8
10% discount for those traveling from between 1 and 8 or 2 and 8
10%surcharge for those traveling entering on exits 3,4,5 or 6 and leaving on 3,4,5, or 6 during peak times 0650-0900 and 1600-1850
example for time 1350 actually means 1:30
## Platform
program will run on microsoft .net and should be written in simle c++ for windows xp
Project ID: #3677904