Program that gets 10 numbers and stores then in an array

Assignment Help MATLAB Programming
Reference no: EM13722258

1. The Write a program that gets 10 numbers and stores then in an array. Then sort (low to high) e number using a function.

Note: The program requires ask user for continuing for getting next 15 numbers.

2. Write a program for: A child's rectangle play yard is to be built next to the house. To make the three sides of the play-pen, twenty-four meters of fencing are available.

What should be the dimensions of the sides to make a maximum area?

Formulation:   Variables x,y and x is in (2-8)
Max Area=A=x*y
Constraint 2x+y=24

3. Write a program that prompts for and gets a student name and exam mark until a name of "quit" is entered. The program should provide the following functionality:

• Use a condition statement to check that a valid exam mark is in the range 0 to 100 inclusive.

• Otherwise when an error is detected, display an error and re-prompts the user for the data until the correct data is entered. You can use either a while or do/while loop for this if you wish.

• After checking for a valid mark and finding the corresponding grade, display the results by showing the student name and grade to the user. Use the following table of marks and grades to help guide you.

Reference no: EM13722258

Questions Cloud

What must the expected return on the market be : A stock has an expected return of 10.5 percent, its beta is 1.15, and the risk-free rate is 5 percent. What must the expected return on the market be?
What components of stockholders equity : What components of stockholders' equity do each of the companies disclose? Do the companies have preferred stock shares outstanding? If so, what special features do these shares contain? Do either of the companies report treasury shares? If so, do th..
Number of different projects to prevent flooding : Your city is considering a number of different projects to prevent flooding. You are tasked with assessing the NPV of a green project, which is the alternative to building a dam (a 100-year solution). The initial cost of the green project is $10 mill..
Using constant-growth model-estimate value of giants stock : Giant Enterprises’ stock has a required return of 14.8%. The company, which plans to pay a dividend of $2.60 per share in the coming year, anticipates that its future dividends will increase at an annual rate consistent with that experienced over the..
Program that gets 10 numbers and stores then in an array : Write a program for a child's rectangle play yard is to be built next to the house. To make the three sides of the play-pen, twenty-four meters of fencing are available.
Calculate the selling price for each of the bonds : Mark Goldsmith’s broker has shown him two bonds. Each has a maturity of 5 years, a par value of $1,000, and a yield to maturity of 12%. Bond A has a coupon interest rate of 6% paid annually. Bond B has a coupon interest rate of 14% paid annually. Cal..
Life accomplishments and failures : Please write a biography of yourself starting from your childhood to your present life. Include notable memories such as life accomplishments and failures. Also include the greatest and worse moment of your life. You may use an alias other tha..
Draw the correct matching x-t and a-t graphs : For the following v-t graph, draw the correct matching x-t and a-t graphs. Assume the initial position of the person is positive. For the above graphs, describe the motion in words. Include references to position and motion
Recognize the moral impact : Who gained the benefit by keeping the passengers on the airplane?

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

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