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
astra-53 [7]
3 years ago
10

Suppose that the tuition for a university is $10,000 this year and increases 4% every year. In one year, the tuition will be $10

,400. Write a program using for loop that computes the tuition in ten years and the total cost of four years’ worth of tuition after the tenth year.

Computers and Technology
1 answer:
seropon [69]3 years ago
7 0

Answer:

<em>The programming language is not stated; however, I'll answer using Python programming language (</em><em>Se</em><em>e attachment</em><em> </em><em>for</em><em> </em><em>proper </em><em>for</em><em>mat</em><em>)</em>

tuition = 10000

rate = 0.04

for i in range(1,15):

tuition = tuition + tuition * rate

if i <= 10:

print("Year "+str(i)+" tuition:",end=" ")

print(round(tuition,2))

if i == 14:

print("Tuition 4th year after:",end=" ")

print(round(tuition,2))

Explanation:

<em>The first 2 lines initializes tuition and rate to 10000 and 0.04 respectively</em>

tuition = 10000

rate = 0.04

<em>The next line iterates from year 1 to year 14</em>

for i in range(1,15):

<em>This line calculates the tuition for each year</em>

tuition = tuition + tuition * rate

<em>The next 3 lines prints the tuition for year 1 to year 10</em>

if i <= 10:

print("Year "+str(i)+" tuition:",end=" ")

print(round(tuition,2))

<em>The next 3 lines prints the tuition at the 4th year after year 10 (i.e. year 14)</em>

if i == 14:

print("Tuition 4th year after:",end=" ")

print(round(tuition,2))

You might be interested in
Consider a system consisting of processes P1 , P2 , ..., Pn , each of which has a unique priority number. Write a monitor that a
adelina 88 [10]

Answer:

See explaination

Explanation:

The code

type printer = monitor

var P: array[0…2] of boolean;

X: condition;

procedure acquire (id: integer, printer-id: integer);

begin

if P[0] and P[1] and P[2] then X.wait(id)

if not P[0] then printer-id := 0;

else if not P[1] then printer-id := 1;

else printer-id := 2;

P[printer-id]:=true;

end;

procedure release (printer-id: integer)

begin

P[printer-id]:=false;

X.signal;

end;

begin

P[0] := P[1] := P[2] := false;

end ;

Note:

Monitors are implemented by using queues to keep track of the processes attempting to become active int he monitor. To be active, a monitor must obtain a lock to allow it to execute the monitor code. Processes that are blocked are put in a queue of processes waiting for an unblocking event to occur.

7 0
3 years ago
Suppose L is a LIST and p, q, and r are positions. As a function of n, the length of list L, determine how many times the functi
xz_007 [3.2K]

Answer:

Explanation:

  p := FIRST(L);

  while p <> END(L) do begin

      q := p;

      while q <> END(L) do begin

          q := NEXT(q, L);

          r := FIRST(L);

          while r <> q do

              r := NEXT(r, L)

      end;

      p := NEXT(p, L)

  end;

5 0
3 years ago
as a pc technician, you are on the road most of the day and use a laptop. when you get back to your office at the end of the day
natali 33 [55]

Port replicator is the type of device should you choose to provide all the functionality above.

<h3>What does a port replicator do?</h3>
  • A tool used to connect a laptop's accessories rapidly. Permanent connections are made to the port replicator, which is connected to the laptop via the USB port, by the keyboard, mouse, network, monitor, printer, and port.
  • A docking station's functionality may be partially or entirely provided by a port replicator, and the words are interchangeable.
  • However, a port replicator often offers a universal solution for all laptops through USB, in contrast to a docking station that connects to the computer using a proprietary connector. check out docking station.
  • A port replicator is an add-on for a notebook computer that enables many devices, such a printer, big screen, and keyboard, to be attached at once.

Learn more about A port replicator refer :

brainly.com/question/14312220

#SPJ4

4 0
1 year ago
1. What is JavaScript?
rosijanka [135]

Answer:

1. JavaScript is a dynamic computer language used to primarily code and create system functions.

2. The people who designed the Apple 1 Computer were

  • Steve Wozniak
  • Steve Jobs

3. The founder of Apple was Steve Jobs. He passed away from pancreatic cancer.

Hope this helps you!

3 0
3 years ago
The default for automatic replies in outlook is what?
defon

Answer:

The default for automatic replies in outlook is turned off, so the user has to turn it on in order to use it.

Out.look is a program developed by Micro.soft for managing e-mails, being together with G.mail one of the most used worldwide. As in most of these programs, you can configure automatic responses in order to give a quick and generic response to certain types of messages (or even all). Now, this option is disabled by default, so the user must activate it through the configuration of the email box.

6 0
3 years ago
Read 2 more answers
Other questions:
  • What can a folder on a computer contain?
    13·2 answers
  • What are five features of word 2016 you would use to capture the attention of the target audience? Defend you decisions
    9·1 answer
  • Please help?!
    11·2 answers
  • Why were mechanical calculators developed?
    8·2 answers
  • While working a night job at a call center, Eric creates an app called EatOut, which can be used to place orders at restaurants,
    14·1 answer
  • All computers perform disk optimization utilizing the same software.<br><br> true <br> false
    11·1 answer
  • What tool should you use to look for information on a network?
    14·2 answers
  • Which code must be included to use Turtle Graphics?
    14·2 answers
  • What is the function of a breadcrumb trail in a website?
    13·1 answer
  • with a ____ the traffic of a given enterprise or group passes transparently through an internet in a way that effectively segreg
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!