Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ANSWER IN MATLAB PLEASE Question 1: (3 + 3 Marks) 1. The height and speed of a projectile shoot at a speed an angle as

image text in transcribed ANSWER IN MATLAB PLEASE
Question 1: (3 + 3 Marks) 1. The height and speed of a projectile shoot at a speed an angle as a function of time are given by: (e) = v tsin - gr 12 (1) 3 -20.81sin 8+gr Where 9 = 9.81m/s". Determine the time that the projectile will hit the ground and plee the height and the speed as a function of time for the case that we=200ms and 9 = 70 Add title and label the axis properly. b. Use 2D plots to simulate the trajectory of a moving ball with = 220's and 9 = 50". (Hint: Use Loops Question 2: (4 Marks) Create a class named Box that models a heavy Box" with the following characteristics . The class has four properties LIWI, H1, Weight to store the length, Widh, Height, b. This class has a constructor which can be called with four integer parameters that initializes the Box objecr's LI, WI, HI, Weight c. Implement the proper set methods for all the properties so that the class accepts only positive integers ICSC 2011 Assignment 11 d. This class has a method calculate Volume( ) which returns the volume (formula LI'W1H1) of the Box object as an integer c. This class has a method calculateDensity) which returns the density of the Box (formula: weight/volume) as a double check for divide by and display appropriate emner 1. Write a driver program which creates two instances of the Bes object with LT-10, Wi-s, H1-5. Weight-2600 and computers the Box's Volume and Density then outputs the results to the user's screen L1-0, WI-6, H1-5. Weight-1600 and compute the Box's Volume and Density then outputs the results to the user's screen. The program should display a proper error message)

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536

Authors: Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski

1st Edition

3319712721, 978-3319712727

More Books

Students also viewed these Databases questions

Question

Ty e2y Evaluate the integral dy

Answered: 1 week ago

Question

How was their resistance overcome?

Answered: 1 week ago