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 program that would allow a user to enter names

Write a program that would allow a user to enter student names and Final grades (e.g. A,B,C,D,F) from their courses. You do not know how many students need to be entered.

  Effective transfer rate from the server to the workstation

what is the effective transfer rate from the server to the workstation?

  Design fraction class to represent numerator and denominator

Design a fraction class. The class should have 2 data members to represent the numerator and denominator. Both of these numbers should obviously be integers.

  Program that prompts the user to enter the mass of a person

Write a program that prompts the user to enter the mass of a person in kilograms and outputs the equivalent weight in pounds.

  Write sql to perform the following queries and updates

Retrieve all of your customers' names, account numbers, and addresses (street and zip code only), sorted by account number

  Unix systems administration

Unix Systems Administration

  Designing the site links

Company needs to be able to schedule the time of day when the connections are available for replication. Replication should not occur during peak business hours. When designing the site links, which of the following options should you use?

  Write a perl cgi program

Write a Perl CGI program (script) to insert new questions into the quiz table via a Web browser. You can assume that, when inserting questions into the table, there is only one transaction yielded by your program to access the table

  Program to display words in a list box sorted by number

Write a program to display the words in a list box sorted by the number of different vowels(a,e,i,o,u) in the word.

  Create class using static variable to store annual interest

Create class SavingAccount. Use a static variable annualInterestRate to store the annual interest rate for all account holders. Each object of the class contains a private instance variable savingsBalance indicating the amount.

  Generate code for the given three address statements

Generate code for the following three-address statements assuming stack allocation where register SP points to the top of the stack.

  Find whether each shape is two dimensional shape

Find whether each shape is TwoDimensionalShape or a ThreeDimensionalShape. If it is a TwoDimensionalShape, display its area. If it is a ThreeDimensionalShape, display its area and volume.

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