Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a function called event that simulates the scenario below. The function should have no inputs and a single output. A telecomunications company needs to

image text in transcribed

Write a function called event that simulates the scenario below. The function should have no inputs and a single output. A telecomunications company needs to upgrade its networking equipment that services 300 customers. In order to make the most cost effective purchase, they have decided to ensure the equipment provides enough network capability to survive the peak hour of usage each week at least 95% of the time. In order to determine the equipment required, they have grouped their subscribers into four categories based on their internet usage patterns: 42 customers will use about 500GB/hour if they are online. They each have a 23% chance of being online during the peak hour. 105 customers will use about 100GB/hour if they are online. They each have a 56% chance of being online during the peak hour. 123 customers will use about 50 GB/hour if they are online. They each have 45% chance of being online during the peak hour. 48 customers will use about 15 GB/hour if they are online. They each have a 71% chance of being online during the peak hour. Write a function to simulate the expected peak hour usage by randomly determining which customers are online. Your function should return as the output (in GB/hour) you expect based on your simulation. Function C Reset MATLAB Documentation i function out-event Code to call your function C Reset 1 %This script calculates the average usage cnt=0; 3 for j=1:1000 cnt=cnt+event; end (cnt/1000) Run Function Write a function called event that simulates the scenario below. The function should have no inputs and a single output. A telecomunications company needs to upgrade its networking equipment that services 300 customers. In order to make the most cost effective purchase, they have decided to ensure the equipment provides enough network capability to survive the peak hour of usage each week at least 95% of the time. In order to determine the equipment required, they have grouped their subscribers into four categories based on their internet usage patterns: 42 customers will use about 500GB/hour if they are online. They each have a 23% chance of being online during the peak hour. 105 customers will use about 100GB/hour if they are online. They each have a 56% chance of being online during the peak hour. 123 customers will use about 50 GB/hour if they are online. They each have 45% chance of being online during the peak hour. 48 customers will use about 15 GB/hour if they are online. They each have a 71% chance of being online during the peak hour. Write a function to simulate the expected peak hour usage by randomly determining which customers are online. Your function should return as the output (in GB/hour) you expect based on your simulation. Function C Reset MATLAB Documentation i function out-event Code to call your function C Reset 1 %This script calculates the average usage cnt=0; 3 for j=1:1000 cnt=cnt+event; end (cnt/1000) Run Function

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial And Temporal Databases 8th International Symposium Sstd 2003 Santorini Island Greece July 2003 Proceedings Lncs 2750

Authors: Thanasis Hadzilacos ,Yannis Manolopoulos ,John F. Roddick ,Yannis Theodoridis

2003rd Edition

3540405356, 978-3540405351

Students also viewed these Databases questions