SUNYANI TECHNICAL UNIVERSITY. BCPS/BIT 310 COMPUTER SIMULATION
MODELLING USING MATLAB. ANSWER ALL QUESTIONS. TIME: 3 HOURS
Answer Questions 1 and 2 in your answer booklet after issuing the commands.
1. a. Generate the following numbers in MATLAB Command Window and write the command and result in your answer booklet:
i. real number in the range (0,1)
ii. real number in the range (0, 100)
iii. real number in the range (20, 35)
iv. integer in the inclusive range from 1 to 100.
b. What would happen if you reversed the order by mistake and typed the following? rem(5,13).
2. Consider the following system of linear equations:
π₯+2π¦+3π§=1
4π₯+5π¦+6π§=1
7π₯+8π¦ =1
a. Set up the matrix notation as AX = B, where A is the coefficient matrix, X is the variables vector and B is the constants vector.
b. By using linear algebra, it can be solved for X using the equation X = A -1B, where A -1 is the inverse of matrix A. Solve this using MATLAB.
c. Also, use the back slash method to obtain X and compare with your results in b.
d. Find the output for the following MATLAB program:
i. X = 2 6 13];
Y = [2; 1; 5];
Z = [2 1 4];
ii. A = X + Z
iii. C = X .* Z
iv. D=X./Y’
2. A small company that produces fibre optic cables has three senior computer scientists within their staff. This company decided to setup a table that clarifies the working load for those scientists throughout the week, along with the hourly cost for each specific day in the week.
Depending on the table below, write MATLAB commands to do the following:
Daily Working Load (Hours)
Day Hourly Cost (ø) Scientists 1 Scientists 2 Scientists 3
Saturday 22 10 9 11
Sunday 21 9 8 7
Monday 18 7 8 9
Tuesday 19 7 6 5
Wednesday 20 7 6 5
Thursday 24 4 3 10
a- Calculate the weekly salary of each Scientist.
b- What is the total weekly salary amount paid out?
c- Find the amounts paid for each Scientist on Monday.
d- Find the average daily amount paid for each Scientist during the week.
3. Given that the following data has been obtained through a research conducted as: Number of Nodes (25, 50, 75, 100, 125, 150) for the x-axis and the throughputs for the Y-axis. The throughput of AODV under random waypoint (RWP) is: throughputrwp = (218.40, 204.91, 188.44, 127.12, 103.14, 69.93) and that under the SMOOTH Mobility is: throughputsmt = (255.75, 264.08, 240.25, 255.79, 275.94, 313.34). Use the plot graph with the following details: throughputrwp solid line with blue colour and diamond marker style. throughputsmt solid line with red colour and star marker style. Y axis label Throughput (kbps) X axis label is Number of Nodes. Title of the graph is Throughput (THP) Vs Number of Nodes: AODV. Grid is on and legend are Random Waypoint and Smooth in the southwest location. Use the graph to analysis your results.
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme
Get Free Quote!
434 Experts Online