MATLAB PROBLEM.
You must prepare the code in Matlab for the following problem:
A company with 100 employees wants to give a gift to each employee
for this Christmas. Make a program in Matlab that randomly
Designate the gift for each employee with the following probability: Bear
30% of probability, box with 30% and 40% with the gift card. You must
use the for or while statutes within the solution. Shall
display something similar to the following:
EMPLOYEE 1 - CARD
EMPLOYEE - 2: TEDDY BEAR
EMPLOYEE 3: - BOX WITH
CHOCOLATES ...
EMPLOYEE 100 - GIFT CARD ...
for i=1:100
fprintf('EMPLOYEE %-3d - ',i)
gift=rand;
if gift<.3
fprintf('TEDDY BEAR\n')
elseif gift<.6
fprintf('BOX WITH CHOCOLATES\n')
else
fprintf('GIFT CARD\n')
end
end
MATLAB PROBLEM. You must prepare the code in Matlab for the following problem: A company with...
The matlab code for the following problem is appreciated!! QUESTION 3 Write a function fnfr_plot that will receive two function handles from elementary math functions which accept a vector to first sort in ascending order then calculate. The script will display the results in two separate Figure Windows with the function names in the title. Submit: fnfr_plot.m Browse My Computer Attach File QUESTION 4 Generate 1x100 random vector, x in the range of 0<x<100 by using rand. Input 2 elementary...
Assume that the probabilities of demand in Problem 28 are no longer valid; the decision situation is now one without probabilities. Determine the best number of boxes of cards to stock, using the following decision criteria. a. Maximin b. Maximax c. Hurwicz (a=4) d. Minimax regret 28. Ths manager of the greeting card section of Mazey's department store is considering her arder for a pareutar line of Christmas cards The enst of each bos of cards is $3, cach box...
Problem-Solving Report Assignment: Employee Retention The Problem: You are the Vice President of a software company, Bootz. In the last quarter, you lost about 10% (40) of your employees. Your last employee satisfaction survey shows that employees left because they weren't happy with their managers. The President wants you to write a report that analyzes why you are losing employees. However, she does not believe that the leadership team has a great impact on employee retention. It's now your task...
Create a MATLAB code to solve the following problem using the cycloidal displacement method discussed in the notes. Generate the SVAJ plot, and be sure to label each plot. Design a double-dwell cam to move a follower from 0 to 2.5 in in 60 deg, dwell for 120 deg, fall 2.5 in in 30 deg and dwell for the remainder. The total cycle must take 4 sec. Plot the sv aj diagrams.
MATLAB You Cannot Use guide, You must create a GUI using code only Problem 1 (100 pts) This week you will repeat the second problem from Week 8 (the problem is restated below for your convenience) but you will add a GUI (without using guide) for the user to control the execution of the program. Your program should do the following: Create a figure that contains a plotting area and user interface controls Allow the user to input the initial...
please help Create a MATLAB code to solve the following problem using the cycloidal displacement method discussed in the notes. Generate the SVAJ plot, and be sure to label each plot. Design a double-dwell cam to move a follower from 0 to 2.5 in in 60 deg, dwell for 120 deg, fall 2.5 in in 30 deg and dwell for the remainder. The total cycle must take 4 sec. Plot the s vaj diagrams.
flowchart assignment Problem: You have been asked by Betty Brown, a manager at Bee Well Company, to document the company's payroll process, which is a manual system. In the following narrative, Betty explains what happens at Bee Well Company. The payroll process is not really complex. At the end of each day, an employee completes a time card by punching a time clock. At the end of the time period, the employee gives their time cards to the department manager,...
Solve the following utilizing MATLAB code. must provide the inputs and outputs of the function. the function should be able to solve such problem using Eulers method, in which after solving must plot the results Problem 5: The logistic model is used to simulate population as in Pmax Where p population, kgm the maximum growth rate under unlimited conditions, and рта? the carrying capacity. Simulate the world's population from 1950 to 2000 using one of the numerical methods discussed in...
Solve the following statics problem in MATLAB programming: Suppose that you are asked to design the stand illustrated in Figure P6.19 by choosing the angle theta that gives that gives the smallest value of force in each member. A constraint on your solution is that the stand must be 0.15 m high (that is, DB = 0.15 m) and that the width of the stand (as measured by the line AC) must be less than 0.4 m. The maximum load...