Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Not sure about how to make a code for these last two questions. Help would be ve

ID: 3877512 • Letter: N

Question

Not sure about how to make a code for these last two questions. Help would be very appreciated!

PROBLEM 3: (25 points) An amount of money P is invested in an account where interest is compounded at the end of the period. The future worth F yielded at an interest rate i after n periods may be determined from the following formula: F-pos*(1 + 4*i ) Write a pseudo code that will calculate the future worth of an investment for each year from 1 through n. The input to the function should include the initial investment P, the interest rate i (as a decimal), and the number of years n for which the future worth is to be calculated. PROBLEM 4: (25 points) The average skin friction coefficient (C) for external turbulent convection over a flat plate is given by Cf = 0.074Re 0.2-1 742Re-1 Where, Re Reynolds number is given by Re = p is the density of the fluid, V is the velocity of fluid, L is the length of the plate and is the viscosity of the fluid write a pseudo code that calculates the skin friction coefficient for a given , V, L and .

Explanation / Answer

Problem 3:

BEGIN

    // get user input

    P = get the amount of money invested from user

    i = get the interest rate from user

    n = get the number of years from user

    for j <- 1 to n

    BEGIN

       

        // calculate the future earning of j th year

        // ( P ^ 0.5 ) represents P raised to power 0.5

        F = ( P ^ 0.5 ) * ( 1 + 4 * i ) * ( j ^ 2 )

        // display the current year future earning

        print "Earning for " + j + "th year : " + F

    END

END

Problem 4:

BEGIN

    // Calculate the value of Reynolds number

    // for a given value of rho, V, L, u

    Re = rho * V * L / u

    Cf = 0.074 * ( Re ^ -0.2 ) - 1742 * ( Re ^ -1 )

    print "Skin Friction Coefficient : " + Cf

END

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote