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

  An efficient human identification using gait analysis

An Efficient Human Identification Using Gait Analysis, Apply specific approach for Pattern Recognition,Implement this approach in MATLAB,Compare and discuss the results with others.

  Write a function in matlab

write a function in MATLAB

  Script that will prompt the user for the reynolds number

Write a script that will prompt the user for the Reynolds number of a flow and will print the region the flow is in.

  T prints out, on a clear screen, a table of temperatures

Create a MATLAB program (utilizing a temp-conversion function) that prints out, on a clear screen, a table of temperatures.

  Finds the value of a using a numerical method

Finds the value of a using a numerical method

  Construct a correlation receiver to detect the noisy signals

Write a program to plot a graph of the theoretical probability of error versus 10log10(Eb/N0) ranging from 0 to 12 dB in increments of 1 for the signals. This will be used to evaluate your simulations.

  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.

  Determine the minimum area of the panel for an output of 1

a reversible heat engine in a satellite operates between a hot reservoir at t1 and a radiating panel cold reservoir at

  Matlab code to create the global stiffness matrix

Write a MATLAB code to create the global stiffness matrix for a problem with 6 unconstrained degrees of freedom for any linear elastic two dimensional trusses.

  Prepare a program to enter a scalar value of temperature

Create a program that prompts the user to enter a scalar value of temperature. If the temperature is greater than 98.6°F, send a message to the command window telling the user that he or she has a fever.

  Matlab has a built-in ability to perform mathematical

MATLAB has a built-in ability to perform mathematical operations on complex numbers. However, there are times when it is useful to treat complex numbers as a structure. Write a set of functions with the following capability and a script to verify ..

  Determine the stability status for the digital system

Sketch the z-plane pole-zero plot and determine the stability status for the following digital system.

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