Make a function that will calculate the pressure

Assignment Help Programming Languages
Reference no: EM131444716

Assignment

For this exam you will be creating functions and scripts in Scilab. You will turn in the Scilab files to Moodie for grading or by giving the instructor a co of the files before leavin so that oucan get credit for the exam. Also, turn in this document with your name as evidence that you were present for the exam.

Note: This work is to be done by you. DO NOT search the web for answers or ask your neighbor for help. Any evidence of cheating will result in a zero for the exam.

Part I

Make a function that will calculate the Pressure [psi] given the Specific Gravity, Depth, and the acceleration of gravity. (Pay close attention to your units)

• function [Pressure] = Phydro (InputMatrix)
• The function will take in a matrix with 3 rows and any number of columns.

o Row 1 = Specific Gravity.
o Row 2 = Depth [m].
o Row 3 = gravity [m/s^2]

• The function will output a matrix with the resulting pressures in units of [psi]

Part II

Write a script in Scilab that will graph the Hydrostatic Pressure of four different liquids over a depth of zero to 20 meters on one graph.

• Use Earth's gravity of 9.8 [m/s^2] for this calculation.
• Remember to include the graph title, label x and y values (Don't use x-axis and axis), include units, and a legend.
• Graph the Hydrostatic pressure in units of [psi] of the four different Specific

Gravity values given below.

o Gasoline SG = 0.739
o Water SG = 1
o Glycerin SG = 1.26
o Iodine SG = 4.93.

Reference no: EM131444716

Questions Cloud

Plot the residuals from the ar model : Some macroeconomists have claimed that there was a sharp drop in the variability of ?Y around 1983, which they call the "Great Moderation." Is this Great Moderation evident in the plot that you formed in (b).
Explain how the concept fits today : Critically examine the concept: define the concept; identify when it was first discussed and what the arguments were for its creation; discuss how the concept then evolved by identifying the arguments for and against it over time and by noting any..
Analysis and recommendations of individual brokerage firm : If a stock is purchased at the beginning of a? year, a single dividend is paid at the end of the year and the stock is sold immediately after the dividend has been received. The published analysis and recommendations of an individual brokerage firm i..
No-arbitrage determination of forward price : By using the information above and applying the Cost-of-Carry Model, verify if there is an arbitrage opportunity. Step (2) In addition, clearly explain and illustrate the arbitrage (“Cash-and-Carry”) strategy and compute the arbitrage profit.
Make a function that will calculate the pressure : Make a function that will calculate the Pressure [psi] given the Specific Gravity, Depth, and the acceleration of gravity. (Pay close attention to your units).
Client-server architecture program for windows : You need a client-server architecture program for windows OS (minimum support: Win 7),. the agent program will run as a background process and perform certain tasks every X time, and send results to a web server (PHP API).
Find a parking space : The length of time it takes to find a parking space at 9 A.M. follows a normal distribution with a mean of 4 minutes and a standard deviation of 2 minutes.
Annual coupon interest payments : Assume that today's date is April 15, 2015. Fresh Bakery Inc. bond is an annual-coupon bond. Par value of the bond is $5,000. Calculate annual coupon interest payments. The answer should be calculated to two decimal places Company-Fresh Bakery Price-..
Explain asymptotic distribution : Suppose that An is a random variable that converges in probability to 3. Suppose that Bn is random variable that converges in distribution to a standard normal. What is the asymptotic distribution of AnBn?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write program to give functionality to process movie rentals

Your first procedure is to be named MOVIE_RENTAL_SP and is going to give functionality to process movie rentals. Based on data which will represent movie id, member id and payment method.

  Which of the following is not true about html5

Which of the following is not true about HTML5? o Better error handling o Reduce the need for external plug-in (like Flash)

  Create an object-oriented application to handle inventory

Working at the GMU Used Car Dealership, you need to create an object-oriented application to handle inventory. To start, you create a detailed UML diagram that helps to plan your solution.

  Which instance variables from the parent class can be used

Determine which instance variables and methods from the parent class can be used in a derived class. Use calls to super when you can, for example, in the SortedIntList constructor and in the SortedIntList toString.

  Also assume the air behaves as an ideal gas with constant

consider the evaporator section of a window air conditioner note the evaporator may be considered as a shell and tube

  Write program to operate as point of sale application

Write down program which will operate as the point of sale (POS) application at carpet retailer. Carpet will be sold by square yard. Padding will be sold by square yard.

  Automate the task of invigilator allocation

you are required to carry out the following to automate the task of invigilator allocation which may not be limited to one's own department.

  Create a multi-threaded competition

Create a multi-threaded competition in which opposing Robin Hoods will attack one another and try to take each other's gold coins.

  A method to calculate the value of the entire inventory

Create a method to calculate the value of the entire inventory. Create another method to sort the array items by the name of the product.

  Create a logic for a program that accepts input values

Create a logic for a program that accepts input values for the projected cost of a vacation and the number of months until vacation

  Program-twos complement

Overview: The real point of this assignment is to give you a chance to work with exceptions. But you can't do anything with exceptions unless there's something that can go horribly wrong, so we need something with plenty of potential for error . ...

  Op-codes-add microcode to overlapping address ranges

Bmov a,b,n. This Block Move instruction moves n bytes of data from location a in memory to location b. Deal correctly with case of overlapping address ranges.

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