Write a program that generates three random numbers

Assignment Help MATLAB Programming
Reference no: EM13909832

Create a program: graphs, or plots should have titles, labels for the axes and any other symbols that make them easy to read.

1. Asks the user for:  (i) the initial velocity vo , (ii) the angle of release measured relative to the horizontal θo , and (iii) the height of the launching point relative to the level ground, H. With this information, (a) Find the time of flight for the projectile, tf  =[  vo sin θo  + ( ( vo sin θo )2 +  2H g)1/2] /(g), with g = 9.80 m/s2 

      (b) Plot the trajectory of the projectile every  0.01 s. Here x and y are given by

       x = vo( cosθo ) t and   y =  H + vo ( sin θo ) t  - (g t2 ) / 2

2.  Write a program that generates three random numbers, each between 0 and 9. The three numbers are displayed and the message "You got Lucky Fours" will be displayed if at least two of the digits are 4.

3. plot the function:  y = -8xe^-x/8       in the interval:  0 less than or equal to x less than or equal to 20  in steps of 0.20

4. plot the function:  y = 5x^3   in the interval: 2 less than or equal to x less than or equal to 12  in steps of 0.05 the plot for problem 4 should be in either log-log or semi-log scale, so as to get a straight line.

 

 

Reference no: EM13909832

Questions Cloud

Child observation project : CHILD OBSERVATION PROJECT, This assignment will enable you to engage in field observations of children and will help you to assimilate several aspects of what is taught through lectures and readings.
Flexible working and work discrimination report : You have been requested to carry out research on an existing company which follows flexibility in the work process. This company should be located either in the UAE or in the UK.
Using the conjectural variations model : Using the Conjectural Variations model, answer questions, If we assume only that firms behave rationally, what would be the equilibrium set of conjectural variations (dq2/dq1 = dq1/dq2 =?).  Is this a Nash Equilibrium? Explain.
What is the nash equilibrium : If the firms compete on the basis of (continuous) price, which duopoly model explains what happens?  What kind of a game is this?  If the firms compete a fixed number of times, what is the Nash Equilibrium? Why does this happen?
Write a program that generates three random numbers : Write a program that generates three random numbers, each between 0 and 9. The three numbers are displayed and the message "You got Lucky Fours" will be displayed if at least two of the digits are 4.
Explain the history and limitations of e-commerce : Explain the term e-commerce. Also explain the history and limitations of e-commerce. What do you understand by the term “Database”? Explain the various database models in detail.
Scaling describes the procedures by which numbers are assign : “Scaling describes the procedures by which numbers are assigned to various degrees of opinion, attitude and other concepts.” Discuss. Also point out the bases for scale classification
Van agreements are executed between a value added data : VAN agreements are executed between a value added data communications service provider or VAN and a party desiring data communications services, typically for EDI.’ What are the necessary agreements? Elaborate.
Explain the role of ethics in entrepreneurship : Explain the role of ‘Ethics' in Entrepreneurship. 2. What do you understand by ‘Public Limited Company'? 3. Difference between ‘Intrapreneur' & ‘Intrepreneur'. 4. What is ‘Copyright'?

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Write a matlab script m-file to play a guessing game the

write a matlab script m-file to play a guessing game. the user will try to guess a number between 1 and 100. your

  Write a function named ''read_line''

Verify that your code works by saving some text into a file (created in notepad / textedit) and saving the file with extension '.txt'. You should attach the file (call it 'test.txt') with your code.

  Create a function that will determine the total resistance

Create a function that will determine the total resistance of a number of resistors that are connected in parallel. This function should accept a row vector for input,

  Find the potential energy stored in each spring

The potential energy stored in a spring is kx2/2, where k is the spring constant and x is the compression in the spring. The force required to compress the spring is kx. The following table gives the data for five springs:

  Construct a commutated dc motor to drive a load

Construct a commutated DC motor to drive a load, simulated by a generator placed on the output shaft of your motor. You may use any readily available materials - characteristic for the different field densities created by the different permanent ma..

  The gauss-newton method

Write up your results using our standard format. Show and discuss the results of Steps 1-3 in some detail, including the observed convergence rates of steepest descent versus the Gauss-Newton method

  Using dimensional analysis nondimensionalize the period t

the period of a pendulum t is assumed correctly or incorrectly to depend on the mass m the length of the pendulum l the

  Write the code to model the functionality

Write the code to model the functionality and delay of the 32-bit RCA for the worst-case-delay input pair. Verify and save.

  Evaluate the main effects and the interaction

Do the results indicate that self-esteem is significantly higher on average for males at significance level of 0.01 - Evaluate the main effects and the interaction at a level of significance of 0.05.

  Symmetry in the rod

matlab programming

  Build a matlab birthday cake using the cylinder

Prepare for Project you should carefully read the Notes on Trajectory Formation that are available on Moddle.  As you read them, you should try out the concepts in MATLAB.

  Write a script that will loop through values of n

Write a script that will loop through values of n until the difference between the approximation and the actual value is less than 0.0001.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd