Question: LAB 5 ( Lab Work 3 ) ( Assignment ) BASIC CONCEPT, PROGRAM STRUCTURES AND FUNCTIONS IN MATLAB COEB 1 0 1 3 Programming for
LAB Lab Work Assignment
BASIC CONCEPT, PROGRAM STRUCTURES AND FUNCTIONS IN MATLAB COEB Programming for Engineers CSEB Principles of Programming
SEMESTER
Instructions
Complete the assignment in MATLAB script and submit your files via BRIGHTEN. Name your files using the format 'YourIDShortnameLab Please indicate the question number in your script.
Ensure that all variables and parameters are named using the format 'variablenameXXXX where XXXX represents the last four digits of your student ID ie length
Question : Variables and Arithmetic
a Calculate the perimeter of a rectangle with length and width
b Find the kinetic energy of a moving object with mass and velocity Given
Question : Vectors and Matrices
a Create and display a vector of even numbers from to
b Compute the product of two matrices:
and
c Determine the transpose and inverse matrix of A and in b
Question : Input Output
a Write a script to calculate the total cost of materials for a construction project. Ask the user for:
Quantity of material.
Price per unit of material.
Display the total cost.
b Prompt the user for the side length of a cube and calculate its surface area and volume. Display the answers.
c Write a script to calculate the monthly payment for a loan using the equation:
where:
: Loan amount prompt user for input
: Monthly interest rate eg annual
: Number of months eg years
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
