Create function m-file called mass that requires two vector

Assignment Help Programming Languages
Reference no: EM13332396

The future-value-of-money formula relates how much a current investment will be worth in the future, assuming a constant interest rate.

2053_assign1.png

where

FV is the future value
PV is the present value or investment

I is the interest rate expressed as a fractional amount per compounding period-i.e., 5% is expressed as .05 n is the number of compounding periods.

(a) Create a MATLAB® function called future_value with three inputs: the investment (present value), the interest rate expressed as a fraction, and the number of compounding periods.

(b) Use your function to determine the value of a $1000 investment in 10 years, assuming the interest rate is 0.5% per month, and the interest is compounded monthly.

Problem 6.5 (page 235)

By rearranging the preceding relationship between moles and mass, you can find the mass if you know the number of moles of a compound:

m= n*MW

(a) Create a function M-file called mass that requires two vector inputs-the number of moles and the molecular weight-and returns the corresponding mass. Because you are providing vector input, it will be necessary to use the meshgrid function in your calculations.

(b) Test your function with the compounds listed in the previous problem, for values of n from 1 to 10.

 

Problem 6.8 (page 236)

 

419_assign2.png

The distance a freely falling object travels is

where
g = acceleration due to gravity,
t = time in seconds
x = distance traveled in meters.
If you have taken calculus, you know that we can find the velocity of the object by taking the derivative of the preceding equation. That is,

536_assign3.png

We can find the acceleration by taking the derivative again:

1802_assign4.png

Reference no: EM13332396

Questions Cloud

Difference between an ethical issue and an ethical dilemma : Explain the difference between an ethical issue and an ethical dilemma. Is it always easy to distinguish between the two?
What is the average angular speed of the screwdriver : A screw with 25 threads per centimeter is driven 1.49 cm into its fixture in 12.4 s with a cordless electric screwdriver. What is the average angular speed of the screwdriver
What are the two interlocking theories : What are the two interlocking theories that are proposed for the formation of the solar system? Give three examples of how the condensation theory explains features in our solar system. How did the temperature structure of the solar nebula determine ..
Determine the direction of the pucks acceleration : Two forces are acting on a 0.250-kg hockey puck as it slides along the ice. what will be the magnitude and direction of the puck\'s acceleration
Create function m-file called mass that requires two vector : Create a function M-file called mass that requires two vector inputs-the number of moles and the molecular weight-and returns the corresponding mass. Because you are providing vector input, it will be necessary to use the meshgrid functio..
What is the intent of regulatory compliance : What is the intent of regulatory compliance, and what is the role of IT in maintaining corporate compliance?
Evaluate rate of formation of the carbocation intermediate : In this reaction, we are actually measuring the rate of formation of the carbocation intermediate. It would be possible for the carbocation to proceed to a product other than the alcohol discussed in the Experimental writeup without changing out k..
Compute the position of the persons center of gravity : A person lies on a balance board as shown in the figure below. The person weights 80 kg, and the scaleunder the person's feetreads 30 kg. Compute the position of the person's center of gravity
Explain the importance of high-quality information : Explain the importance of high-quality information for political microtargeting?

Reviews

Write a Review

Programming Languages Questions & Answers

  Create program which asks for number of fat grams

Create a program which asks for number of fat grams and calories in a food item. Validate input as follows: Make sure number of fat grams and calories are not less than 0.

  Write program to prompt for and accept current salary

Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases.

  Write class which uses string array or arraylist

Write the class which uses string array or arraylist object to holld five students, array to hold five charters student letter grade) and five arrays of doubles each to hold each students set.

  Write program which simulates checkout queue object

Write program which simulates checkout line at supermarket. Line is queue object. Customers (i.e., customer objects) arrive in random integer intervals of 1-4 minutes.

  Create uml collaboration diagrams by using microsoft visio

Create UML collaboration diagrams by using Microsoft Visio or another drawing tool capable of preparing properly formatted UML collaboration diagrams.

  Write the program to sustain person-s savings

Write down the program to sustain the person's Savings and Checking accounts. Program must keep track of and show balances in both accounts, and sustain a list of transactions.

  Write a program that inputs number of hours worked

Write a program that inputs the number of hours worked and hoursly pay rat for employesand outputs their total pay.

  Program to calculate state and county sales tax

Write a program that will ask the user to enter the amount of a purchase. The program should then calculate the state and county sales tax.

  Basics of hypertext markup language

The basics of Hypertext Markup Language and World Wide Web.

  Write function to accept single argument-find prime number

Write down function named isPrime( num ) which accepts the single argument (num) and returns True if argument is prime, and False otherwise.

  Creating webpage using css

In creating a web page, depending on the information you are trying to convey. What are CSS?

  Write program in mips to compute average of series of number

Write program in MIPS which computes average of a series of entered numbers. User will enter a sequence of integers. When the user enters a negative number.

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