Ask Question
29 July, 07:32

At one college, the tuition for a full-time student is $6,000 per semester. It has been announced that the tuition will increase by 2 percent each year for the next five years. Design a program with a FOR loop that displays the projected semester tuition amount for the next five years. You will implement this program using jа vascript. Use repl. it and export your code into a zip file. Upload the zip file to this assignment.

+3
Answers (1)
  1. 29 July, 09:34
    0
    var projected_fee = 6000; for (var i = 1; i < = 5; i++) { projected_fee = projected_fee * 0.02 + projected_fee; console. log ("$" + projected_fee. toFixed (2)); }

    Explanation:

    Firstly, create a variable, projected_fee, and set the initial tuition fee value to it (Line 1).

    Next, user a for loop that run for 5 times to repeatedly calculate the projected_fee based on 2 percent of increment rate (Line 4) and display the projected fee to console terminal (Line 5). The output should be

    $6120.00

    $6242.40

    $6367.25

    $6494.59

    $6624.48
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “At one college, the tuition for a full-time student is $6,000 per semester. It has been announced that the tuition will increase by 2 ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers