ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 29 Apr 2017 My Price 11.00

the user input is in boldface and underlined

I'm not sure how to do this assignment. It is due in a couple of hours. Can someone please write out the code?

Here is the description:  http://www.sfu.ca/~alavergn/120/Assignments/Assn_3/Assn_3.html

I have also attached a sample run. 

 

 

Assignment 3
Sample Runs
In the following sample runs, the user input is in boldface and underlined
1 Sample Run 1
Walk in Clinic Simulation - Start
Please, enter arrival time of patients:
20 22 23 30
Patient arriving at clinic at 20
Patient arriving at clinic at 22
Patient arriving at clinic at 23
Patient departing at clinic at 25
Patient arriving at clinic at 30
Patient departing at clinic at 30
Patient departing at clinic at 35
Patient departing at clinic at 40
Simulation result:
Total number of patients:4
Total wait time:15
Average wait time per patient:3.75
Walk in Clinic Simulation - End User enters this 2 Sample Run 2
Walk in Clinic Simulation - Start
Please, enter arrival time of patients:
1 2 4 20 22 24 26 28 30 88
Patient arriving at clinic at 1
Patient arriving at clinic at 2
Patient arriving at clinic at 4
Patient departing at clinic at 6
Patient departing at clinic at 11
Patient departing at clinic at 16
Patient arriving at clinic at 20
Patient arriving at clinic at 22
Patient arriving at clinic at 24
Patient departing at clinic at 25
Patient arriving at clinic at 26
Patient arriving at clinic at 28
Patient arriving at clinic at 30
Patient departing at clinic at 30
Patient departing at clinic at 35
Patient departing at clinic at 40
Patient departing at clinic at 45
Patient departing at clinic at 50
Patient arriving at clinic at 88
Patient departing at clinic at 93
Simulation result:
Total number of patients:10
Total wait time:56
Average wait time per patient:5.6
Walk in Clinic Simulation - End User enters this 3 Sample Run 3
Walk in Clinic Simulation - Start
Please, enter arrival time of patients:
5 7 14 30 32 34
Patient arriving at clinic at 5
Patient arriving at clinic at 7
Patient departing at clinic at 10
Patient arriving at clinic at 14
Patient departing at clinic at 15
Patient departing at clinic at 20
Patient arriving at clinic at 30
Patient arriving at clinic at 32
Patient arriving at clinic at 34
Patient departing at clinic at 35
Patient departing at clinic at 40
Patient departing at clinic at 45
Simulation result:
Total number of patients:6
Total wait time:13
Average wait time per patient:2.16667
Walk in Clinic Simulation - End User enters this 4 Sample Run 4
Walk in Clinic Simulation - Start
Please, enter arrival time of patients:
10 15 19 22 23 25 27 31
Patient arriving at clinic at 10
Patient arriving at clinic at 15
Patient departing at clinic at 15
Patient arriving at clinic at 19
Patient departing at clinic at 20
Patient arriving at clinic at 22
Patient arriving at clinic at 23
Patient arriving at clinic at 25
Patient departing at clinic at 25
Patient arriving at clinic at 27
Patient departing at clinic at 30
Patient arriving at clinic at 31
Patient departing at clinic at 35
Patient departing at clinic at 40
Patient departing at clinic at 45
Patient departing at clinic at 50 Simulation result:
Total number of patients:8
Total wait time:48
Average wait time per patient:6
Walk in Clinic Simulation - End User enters this 5 Sample Run 5
Walk in Clinic Simulation - Start
Please, enter arrival time of patients:
4 9 14 20 30
Patient arriving at clinic at 4
Patient arriving at clinic at 9
Patient departing at clinic at 9
Patient arriving at clinic at 14
Patient departing at clinic at 14
Patient departing at clinic at 19
Patient arriving at clinic at 20
Patient departing at clinic at 25
Patient arriving at clinic at 30
Patient departing at clinic at 35
Simulation result:
Total number of patients:5
Total wait time:0
Average wait time per patient:0
Walk in Clinic Simulation - End User enters this 6

Attachments:

Answers

(11)
Status NEW Posted 29 Apr 2017 05:04 AM My Price 11.00

-----------

Attachments

file 1493444646-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)