Sponsored Links


Results 1 to 3 of 3

Thread: Pay Less and get solution of Any assimnt 100% guarantee.

  1. #1

    18 Pay Less and get solution of Any assimnt 100% guarantee.

    Sponsored Links1



  2. #2
    Junior Member
    Join Date
    Jul 2014
    Posts
    2
    Solution required for Assignment #4, CS304 Spring 2014

    Sponsored Links

  3. #3
    Senior Member
    Join Date
    Oct 2012
    Posts
    323
    class Transport
    {
    private:
    float Weight,Speed;
    string Capacity;
    public:
    void Load()
    {
    cout"\nGoods are loaded successfully\n";
    }
    void Unload()
    {
    cout"Goods are Unloaded successfully\n";
    }
    virtual void Ship(){} OR virtual void Ship()=0;

    };

    class Land_Transport ublic Transport
    {
    private:
    string Transportation_Mode;
    string Vehicle_Type;
    public:
    void Ship()
    {
    cout"In land transport, shipping is done via Truck";
    }
    };

    class Air_Transport ublic Transport
    {
    private:
    string Aircraft_Type;
    string Airline_Name;
    public:
    void Ship()
    {
    cout"\nIn air transport, shipping is done via air cargo\n\n";
    }
    };

    int main(int argc, char *argv[])
    {
    char choice;
    while(1)
    {
    cout"\n\nDo you want to transport your goods? <Press Y for YES, & N for NO>\n\n";
    cout"*************************************\n\n";
    choice = getch();
    if(choice == 'y' || choice == 'Y')
    {
    Menu();
    }
    cout"\nThank You for using this Program...";
    }

    }

    void Menu()
    {
    Transport *ptr=NULL;

    char tpt;

    cout"Press 'L' or 'l' to use Land Transport Service\n\n";
    cout"Press 'A' or 'a' to use Air Transport Service\n";
    cout"*************************************\n";
    tpt = getche();
    if(tpt == 'A' or tpt == 'a')
    {
    ptr=new Air_Transport();
    ptr->Ship();
    }

    if(tpt == 'L' or tpt == 'l')
    {
    ptr=new Land_Transport();
    ptr->Ship();
    }
    getch();
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pay for assignment solution guarantee.
    By Xpert in forum Bid for virtual university assignments
    Replies: 5
    Last Post: 07-21-2014, 02:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft