1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Phoenix [80]
3 years ago
12

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 Javascript. Use repl.it and export your code into a zip file. Upload the zip file to this assignment.
Computers and Technology
1 answer:
Alina [70]3 years ago
8 0

Answer:

  1. var projected_fee = 6000;  
  2. for(var i = 1; i <= 5; i++){
  3.    projected_fee = projected_fee * 0.02 + projected_fee;
  4.    console.log("$" + projected_fee.toFixed(2));
  5. }

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

You might be interested in
Choose the best answer to complete the sentence.
zhuklara [117]

Answer:

the first one is A

the second question is B,C,F

Explanation:edg2020

5 0
4 years ago
What is the missing line of code to have the following output?
dangina [55]

The missing line of code to have the following output is console log ("\'hi").

<h3>What are codes?</h3>

Codes are the rules in an information system that converts the information such as image, text from communication language to other language that is secret and only can understand by the system.

Thus, the missing line of code to have the following output is console log ("\'hi").

Learn more about codes

brainly.com/question/17293834

#SPJ1

3 0
2 years ago
Which method finds the greatest common divisor of 14 and 35?
Liula [17]

Answer:

gcd method

Explanation:

Given

The code snippet

Required

Which method completes the code

To return the gcd of numbers, simply use the gcd method.

So: the complete code is;

<em>import math</em>

<em>math.gcd(14,35)</em>

6 0
3 years ago
What is the best data type for traveling day?
kykrilka [37]
Here if its wrong sorry

7 0
3 years ago
How do you take a picture underwater with my phone that is not waterproof?
LenaWriter [7]

Answer:

try putting it in a clear glass cup or sealing it tightly in a zip lock bag

Explanation:hope i helped love yall and can iget brainliest i only need two more

6 0
3 years ago
Other questions:
  • A user is trying to delete a file located on an NTFS volume on his Windows 8 computer but is unable to do so. Why is this?
    6·1 answer
  • When paying bills online, a payee is:
    9·1 answer
  • WhyTheCombOfNatashaOtomoskiHas21Teeth?.txt
    14·1 answer
  • What happens when two computers use the same IP address?
    6·1 answer
  • Create a program that will play the “cows and bulls” game with the user. The game works like this: Randomly generate a 4-digit n
    15·1 answer
  • You can sort a large array of integers that are in the range 1 to 100 by using an array count of 100 items to count the number o
    9·1 answer
  • You can use your student ID card to get discounts in all of the following except
    6·2 answers
  • g write a recursive function that prints out all the even numbers between x and y inclusive if x is odd then the print out will
    5·1 answer
  • Which of the following describe audio-editing software? Choose all that apply.
    5·2 answers
  • Which case would benefit from Explainable Artificial Intelligence (AI) principles?
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!