Taximeter

Hi
First of all I'm very new to c++ and I'm want to write a program that works like a taximeter. First you put in a time in hh:mm and then a end time in hh:mm(24clock). Then you take the difference and multiply it buy the minute price. So for example,
01.30
02.02
Time in taxi 32 minutes.
32*4(price per minute) = 128 dollar

Hello markusfurst,

You have a good start. You will wan to look into http://www.cplusplus.com/reference/chrono/ for dealing with time. And when you get your time input and figure the total time I would put that in a function that returns the amount of time spent.

When your code does not work, post it back here for help.

Hope that helps,

Andy
Topic archived. No new replies allowed.