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
ira [324]
3 years ago
14

What will be the result of running the following code fragment? int year = 0; double rate = 5; double principal = 10000; double

interest = 0; while (year < 10) { interest = (principal * year * rate) / 100; System.out.println("Interest " + interest); }
Computers and Technology
1 answer:
NemiM [27]3 years ago
5 0

Answer:

This code fragment will run an infinite loop

Explanation:

This output: Interest 0.0 Will be displayed infinitely. The reason is because the variable year which is initially set to 0 is never updated and as such remains true because the condition is while(year<10). So at the first iteration the statement interest = (principal * year * rate) / 100; evaluates to 0 and this line of code System.out.println("Interest " + interest); prints Interest 0.0. At the next iteration the same evaluation and output takes place and on and on and on....... since the control variable is not changing.

You might be interested in
Why were low quality video so often use when Internet connection we’re poorer than they are today
kakasveta [241]
What do you mean? I’m confused with the question, it doesn’t make sense:)
8 0
3 years ago
What's the difference between an exe file and an msi file?
tatiyna

Answer: <u>EXE files are mainly used to indicate that the file is executable</u>

<u>MSI files show that the file is a Windows Installer</u>

<u />

Explanation:

EXE files are mainly used to indicate that the file is executable

MSI files show that the file is a Windows Installer

<u>MSI files are only used with launchers, EXE does not need to be used with launchers </u>

Hope this helped :)

5 0
2 years ago
30 POINTS FOR THE ANSWER
vladimir2022 [97]

The possible solutions are:

  • Ask for a printed or click on proof to get the  right color match.
  • One can use Pantone colors as it aids with color matching.

<h3>How do one do the above?</h3>

Computers is known to often use the same data and it often uses it to bring up clarity or light up pixels on its screen.

Therefore to get the result above, one need to check system preference system setting to get different brightness and color settings.

Therefore, The possible solutions are:

  • Ask for a printed or click on proof to get the  right color match.
  • One can use Pantone colors as it aids with color matching.

Learn more about printed colors from

brainly.com/question/1548113

#SPJ1

4 0
2 years ago
Write a python program to accept a number and check whether it is divisible by 4 or not​
Alenkasestr [34]

Answer:

number = int(input("Enter number: "))

if (number % 4):

 print("{} is not divisible by 4".format(number))

else:

 print("{} is divisible by 4".format(number))

Explanation:

If the %4 operation returns a non-zero number, there is a remainder and thus the number is not divisable by 4.

5 0
3 years ago
What has replaced cellular cards for the most part for providing laptops Internet through a cellular provider?
garik1379 [7]

Answer:

Wireless cards are replaced cellular cards for the most part for providing laptops internet through a cellular provider.

Explanation:

Bluetooth is a communication device where it is used for transfer contacts and files. It has own limitation in size

Hotspots it is created from mobile internet or simple access point where the end users can transfer files or access the network.

Wireless cards it is a communication device where end users can connect to any access point and internet with login with user id and password. So end-users can transfer the file or access the internet.

Wired Ethernet is another communication where end-users can access the network and transfer files or access the internet.  

4 0
3 years ago
Other questions:
  • Cartoon Disney question: Snow White asks the dwarfs a question. 2 of them are lying and 3 can only say the truth. The continuati
    10·1 answer
  • ________ is a mobile broadband technology that relies on microwave transmissions to blanket large metropolitan areas from microw
    11·1 answer
  • According to our definition in this class, computers are define
    11·1 answer
  • You are on vacation with your family and have been nominated to be the family photographer. You have a 13.1-megapixel camera. Wh
    12·2 answers
  • 1.The ___________ method adds a new element onto the end of the array.
    5·1 answer
  • Choose the missing words in the code below.
    12·1 answer
  • Write a C console application that will be used to determine if rectangular packages can fit inside one of a set of spheres. You
    5·1 answer
  • Most computers include a network card designed to connect a computer to the net using standard telephone service. True or False?
    11·1 answer
  • Can i have help for a ggogle class room
    14·1 answer
  • Use a for loop to output the numbers from 50 to 65
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!