Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve on matlab, and show the steps Question 1: (3 + 3 marks) a. The height and speed of a projectile shoot at a speed

image text in transcribed
solve on matlab, and show the steps
Question 1: (3 + 3 marks) a. The height and speed of a projectile shoot at a speed v, at an angle as a function of time are given by: MO) = v/sin - 2 VO) - V-2vgisin 6 +87 Where. Determine the time that the projectile will hit the ground and plot the height and the speed as a function of time for the case that v, = 200m/s and Add title and label the axis properly. b. Use 2D plots to simulate the trajectory of a ball with vo- 220m/s and Question 2: (4 marks) Create a class named Box that models a heavy "Box" with the following characteristics: a. The class has four properties L1, W1, H1, Weight to store the Length, Width, Height, and weight of the Box. Measurements are in feet and pounds. b. This class has a constructor which can be called with four integer parameters that initializes the Box object's L, W, H, Weight c. Implement the proper set methods for all the properties so that the class accepts only positive integers. d. This class has a method calculate Volume() which returns the volume (formula: Ll*W1*HI) of the Box object as an integer e. This class has a method calculate Density which returns the density of the Box (formula: weight/volume) as a double, check for divide by O and display appropriate error message. f. Write a driver program which creates an instance of the Box object with L1-10, W1=5,H1=5, Weight=2600 and computes the Box's Volume and Density, then outputs the results to the user's screen. Submission Guidelines: Please submit the assignment in a compressed zip format on blackboard (Include report in MS word with screenshots of the program and output and MATLAB Scripts for each question). Include the title page with your student id and name. [CSC 2013 [Assignment #2]

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

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

Understand the role of corporate design in communications.

Answered: 1 week ago