Contact


1 Reviews for "Contact"

  1. 1. Design a program for a hotel with 10 rooms using code which is similar to the code given below. Start by checking the code below works.



    Once the basic code runs, then put the code that ‘Views All rooms’ and ‘Adds customer to room’, into separate procedures, and test it works.



    Then add a menu system, which allow the user to choose what they want to select. Enter an ‘A’ to add a customer to a room, and a ‘V’ to view all rooms. (To do a menu see the ‘arith’ program in the notes about ‘Ifs’ from last semester – or see the ‘arith’ program code which is towards the start of the code examples [link is on the videos web page]) When an ‘A’ is pressed it should do the Add procedure, or a ‘V’ should do the View procedure.



    One by one, add extra procedures to do each of the following. The user should be able to choose from the menu what the program does.

    E: Display Empty rooms,

    D: Delete customer from room,

    F: Find room from customer name,

    S: Store program data in to file,

    L: Load program data from file.

    O: View rooms Ordered alphabetically by name.



    2. Create a second version of the program using hotel room array of structs and/or objects.

    Note: Both solutions should be C++ console applications (not windows).


    i need this solution to be done.

    ReplyDelete