Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. C++ Problem Need Help Part 1

C++ Problem Need Help Part 1

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++
6 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alishaklas
    wrote on last edited by
    #1
    1. A gas station has two pumps. Cars arrive at an average rate of 24 per hour. The service time for each car is either 3,4,5,6, or 7 minutes each with probability 1/5. Simulate the operation of the gas tation for 8 hours using a one minute time interval. Assume that a car arriving when both pumps are occupied drives on. Determine and print out the fraction of customers lost, in addition to the number of customers served and the total number of arrivals during the 8 hour period.
    C C R 3 Replies Last reply
    0
    • A alishaklas
      1. A gas station has two pumps. Cars arrive at an average rate of 24 per hour. The service time for each car is either 3,4,5,6, or 7 minutes each with probability 1/5. Simulate the operation of the gas tation for 8 hours using a one minute time interval. Assume that a car arriving when both pumps are occupied drives on. Determine and print out the fraction of customers lost, in addition to the number of customers served and the total number of arrivals during the 8 hour period.
      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Looks like a pretty simple problem - where are you stuck ? Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002

      1 Reply Last reply
      0
      • A alishaklas
        1. A gas station has two pumps. Cars arrive at an average rate of 24 per hour. The service time for each car is either 3,4,5,6, or 7 minutes each with probability 1/5. Simulate the operation of the gas tation for 8 hours using a one minute time interval. Assume that a car arriving when both pumps are occupied drives on. Determine and print out the fraction of customers lost, in addition to the number of customers served and the total number of arrivals during the 8 hour period.
        C Offline
        C Offline
        Chris Losinger
        wrote on last edited by
        #3

        1. assume the student doesn't do the homework. 2. predict the grade on the final. -c


        There's one easy way to prove the effectiveness of 'letting the market decide' when it comes to environmental protection. It's spelt 'S-U-V'. --Holgate, from Plastic

        Smaller Animals Software

        R 1 Reply Last reply
        0
        • C Chris Losinger

          1. assume the student doesn't do the homework. 2. predict the grade on the final. -c


          There's one easy way to prove the effectiveness of 'letting the market decide' when it comes to environmental protection. It's spelt 'S-U-V'. --Holgate, from Plastic

          Smaller Animals Software

          R Offline
          R Offline
          Roger Wright
          wrote on last edited by
          #4

          Would 'F' be improbable? "My child was Inmate of the Month at Mohave County Jail" - Bumper Sticker in Bullhead City, AZ

          1 Reply Last reply
          0
          • A alishaklas
            1. A gas station has two pumps. Cars arrive at an average rate of 24 per hour. The service time for each car is either 3,4,5,6, or 7 minutes each with probability 1/5. Simulate the operation of the gas tation for 8 hours using a one minute time interval. Assume that a car arriving when both pumps are occupied drives on. Determine and print out the fraction of customers lost, in addition to the number of customers served and the total number of arrivals during the 8 hour period.
            R Offline
            R Offline
            Rand Althor
            wrote on last edited by
            #5

            This is a forum for ppl wanting solutions for Visual C++. Not to answer something that looks like as if it was copied straight from an assignment sheet. If it was an assignment or test.. shame on you. :mad:

            J 1 Reply Last reply
            0
            • R Rand Althor

              This is a forum for ppl wanting solutions for Visual C++. Not to answer something that looks like as if it was copied straight from an assignment sheet. If it was an assignment or test.. shame on you. :mad:

              J Offline
              J Offline
              joshfl
              wrote on last edited by
              #6

              i would have sold my soul for a college ed. , damn these over privileged kids who expect the world to be handed to them.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups