Question: This is a Matlab Problem Write a function called event that simulates the scenerio below. The function should have no inputs and a single output.

 This is a Matlab Problem Write a function called event thatsimulates the scenerio below. The function should have no inputs and a

This is a Matlab Problem

Write a function called event that simulates the scenerio 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 equipement 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: 24 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 87% chance of being online during the peak hour. 123 customers will use about 50 GB/hour if they are online. They each have 15% chance of being online during the peak hour. 48 customers will use about 5 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 the GB/hour you expect based on your simulation Function C Reset DI MATLAB Documentation 1 function out=event 2 Code to call your function > C Reset 1 %This script calculates the average usage 2 cnt=0; 3 for j=1:1000 cnt=cnt+event; 5 end 6 (cnt/1000) 4 Run Function Write a function called event that simulates the scenerio 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 equipement 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: 24 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 87% chance of being online during the peak hour. 123 customers will use about 50 GB/hour if they are online. They each have 15% chance of being online during the peak hour. 48 customers will use about 5 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 the GB/hour you expect based on your simulation Function C Reset DI MATLAB Documentation 1 function out=event 2 Code to call your function > C Reset 1 %This script calculates the average usage 2 cnt=0; 3 for j=1:1000 cnt=cnt+event; 5 end 6 (cnt/1000) 4 Run Function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!