1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

c++ someone plz reply

Discussion in 'C++' started by ricflair, Jan 4, 2011.

Thread Status:
Not open for further replies.
  1. ricflair

    ricflair New Member

    Joined:
    Jan 3, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    im basically suppose to create a car rental programme...ive done some of it but stuck on a particular area...i think i need to send u my coding so u can try to assist me ...im stuck on this particular area

    main.cpp
    #include "Customer.h"
    #include "Car.h"
    #include "Invoice.h"


    void main()
    {
    Invoice Order;
    Order.ProcessOrder();
    Order.ShowOrder();
    };
    The idea is that the clerk should be able to ask the customer for the starting date to rent the car and the project date of the end of lease. Of course, you (the programmer) must calculate the number of days, find out if the date range falls on a week-end or on a week days. If the date range is more than 5 days, the rate should be lower than that of 5 days, which should be lower than the rate for 3 days; in fact the rate should even be lower if the customer wants the car for 20 days or more, which would apply a (low) monthly rate.
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    shabbir likes this.
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    Thread closed with an infraction.
     
Thread Status:
Not open for further replies.

Share This Page