Like Tree7Likes
  • 3 Post By stahta01
  • 2 Post By rags_to_riches
  • 2 Post By Adak

Please help!!

This is a discussion on Please help!! within the C Programming forums, part of the General Programming Boards category; Guys i know you are all genious, im just learning c and not too skilled! please provide a solution to ...

  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    1

    Please help!!

    Guys i know you are all genious, im just learning c and not too skilled! please provide a solution to the problem below: do a flowchart and psuedocode along with the actual code and send it to my email <<snipped>>

    i need it by the end of the week march 16th

    thanks!!



    The Humbrah Night Club Ltd. requires asystem that is capable of forecasting how much
    money they generate based on the typesof customers that come to their establishment
    each week. Their system will be basedaround Little's Law which determines the average
    number of people who are in the NightClub at any time; by knowing how long the average
    person stays in the Night Club and howmany persons arrive at the Night Club within a
    specific time.


    The Humbrah Night Club Ltd. asks thatyou Design (Pseudocode) and then build a “C
    Source Code Solution” that allowsthem to determine the number of persons who visit
    the Night Club in 1 Day using aMenu-Driven System: -
    1. Your Menu will provide three (3)possible options to the user: -
    • 'A': Enter Customer Data
    • 'B': Display Money Earned Info
    • 'X': Exit Out Of The System


    2. The user must be Prompted to Enteronly one (1) of the three Options provided
    above.


    3. If the user selects 'A' then thesystem allows the user to enter the Average
    Number of Persons who come to the NightClub in 1 Hour; and enter the Average
    Number of Minutes that a Person staysin the Night Club.


    4. Validation must now force the userto enter the correct value before moving on with
    the rest of the system. That is; if theuser enters any Invalid Data then the system
    must keep on asking the user for thevalid information until they enter it correctly.


    5. After entering the data correctly,the system must continue by showing the menu
    again for the user to make anotherchoice.


    6. If the user selects 'B' then thesystem will display the Number of Persons and the
    Total Earned Per Day for Humbrah.


    7. After displaying the information tothe user, the system must continue by showing
    the menu again for the user to makeanother choice.


    8. If the user selects 'X' then thesystem will exit after displaying an appropriate and
    polite message to the user.


    9. BONUS: Make the Menu-Driven systemwork based on both lower and upper case
    characters for 'A', 'B' and 'C'. Makethe system validate for incorrect menu options
    and give an appropriate messagewhenever they are invalid.


    SAMPLE EXECUTION #1: -
    WELCOME TO THE HUMBRAH Night ClubSYSTEM
    [A] ENTER CUSTOMER DATA
    [B] DISPLAY EARN STATISTICS
    [X] EXIT THE SYSTEM
    ENTER A CHOICE [A|B|X]: g_
    ERROR: The only options provided bythis system are [A|B|X].
    WELCOME TO THE HUMBRAH Night ClubSYSTEM
    [A] ENTER CUSTOMER DATA
    [B] DISPLAY EARN STATISTICS
    [X] EXIT THE SYSTEM
    ENTER A CHOICE [A|B|X]: A_

    Enter The Average Number of Persons WhoArrive At The Night Club In 1 Hour: -12_ ERROR: You


    Cannot Enter A Negative Number ofPersons.

    Enter The Average Number of Persons WhoArrive At The Night Club In 1 Hour: 3_

    Enter The Average Time (minutes) APerson Stays In The Night Club: -10_

    ERROR: A Person Must Stay at the NightClub 0 Or More Minutes and Less than 180 Minutes

    Enter The Average Time (minutes) APerson Stays In The Night Club: -1_

    ERROR: A Person Must Stay at the NightClub 0 Or More Minutes and Less than 180 Minutes

    Enter The Average Time (minutes) APerson Stays In The Night Club: 40_


    WELCOME TO THE HUMBRAH Night ClubSYSTEM

    [A] ENTER CUSTOMER DATA

    [B] DISPLAY EARN STATISTICS

    [X] EXIT THE SYSTEM

    ENTER A CHOICE [A|B|X]: B_
    ***********************************************
    RATE OF ARRIVAL PER MINUTE: 0.05
    NUMBER OF PERSONS IN Night Club: 2
    TOTAL PERSONS PER DAY: 9
    DISCOUNT GIVEN PER PERSON: 0 %
    TOTAL EARNED IN ONE DAY: $ 11704.50
    ***********************************************

    WELCOME TO THE HUMBRAH Night ClubSYSTEM
    [A] ENTER CUSTOMER DATA
    [B] DISPLAY EARN STATISTICS
    [X] EXIT THE SYSTEM
    ENTER A CHOICE [A|B|X]: X_
    Thank You For Using THE HUMBRAH NightClub SYSTEM.
    Last edited by samari; 03-10-2013 at 04:36 PM.

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    2,521
    Please read the info on this link.

    Announcements - General Programming Boards

    Tim S.
    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the Universe is winning." Rick Cook

  3. #3
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,649
    Amazingly brazen.
    Crossfire and Salem like this.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Get busy, Samari! We don't do your assignments for you. We HELP you with YOUR code problems.
    Crossfire and Salem like this.

  5. #5
    Registered User
    Join Date
    Dec 2012
    Posts
    289
    guess after that, we have an email to sign up for EVERY newsletter on the web!!!

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21