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 a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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