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

  Compute the absolute relative errors

Check whether system has no solution, infinite number of solutions or ill-conditions. Perform this checking from the coefficient and constant matrices.

  Approximate the solution to the above initial value problem

dydt te3t - 2y 0 le t le 1 y0 0approximate the solution to the above initial value problem usinga modified-euler

  The body fat percentage

The body fat percentage (BFP) of a person can be estimated by the formula BFP= 1.2xBMI+0.23xAGE -10.8xGEnder-0.54 where BMI is the body mass index, given by BMI = 703 W/H^2, in which W is the weight in pounds and H is the height in inches

  Matlab code to solve for temperature and pressure variation

Write down the MATLAB code to solve for temperature and pressure variation throughout the expansion process and to evaluate work and heat produced in processes for variable values of n.

  Index of the largest fibonacci number

What is the index of the largest Fibonacci number that can be represented exactly as a MATLAB double-precision quantity without roundoff error

  Receives one number as an input argument

Write a function per2 that receives one number as an input argument. The function has a persistent variable that sums the values passed to it. Here are the first two time the function is called

  Calculate the inverse of a function

Using matlab write the function [Bag,x] = EG(A,b) to solve the system without pivoting. The solution is the vector x and flag is 0 when the algorithm is completed and 1 otherwise.

  You need to prepare a matlab code

You need to prepare a MATLAB code for the following - A randomly generated, [5x5] matrix (A), filled with random [2x2] sub matrices (aa).... for a total of a [10x10] matrix. Also, a multiplication factor

  Implement the finite difference method

Write a computer program to implement the finite difference method. The program can be in any computer language that is available within the school. Set up the code to find the potential for a parallel plate capacitor in the box shown below, all dime..

  A volume 10 in long 5in wide and 05 in thick is to be

a volume 10 in. long 5in wide and 0.5 in. thick is to be removed by face milling cutter that is 3in. diameter and has 6

  Generalize the program below to allow negative integers

Using SML: Generalize the program below to allow negative integers on the input. We assume that negative integers are preceded by the minus sign(-) rather than the tilde (~). Note that we not only have to recognize negative integers but we can no lon..

  Create a function called freefall

Write a function called eapprox that takes the value of K as input and which them approximates e using the method described.

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