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
olganol [36]
3 years ago
11

9.4 Code Practice

Computers and Technology
1 answer:
stepladder [879]3 years ago
6 0

I've included my code in the picture below. Best of luck.

You might be interested in
Consider the code fragment below (with nested loops). int sum = 0;for (int i = 1; i < 5; i++) for (int j = 1; j <= i; j++)
sammy [17]

Answer:

Option d is the correct answer for the above question.

Explanation:

  • The first loop of the program has a second loop and then the statement. In this scenario, the second loop executes for the value of the first loop and the statement executes for the value of the second loop.
  • The first loop executes 4 times, Then the second loop or inner loop executes n times for the n iteration of the first loop, for example, 1 time for the first iteration of the first loop, 2 times for the second iteration of the first loop and so on.
  • Then the inner loop executes (1+2+3+4) iteration which gives the result 10 iterations.
  • The sum initial value is 0 and the "sum++", increase the value of the sum by 1.
  • So the value of the sum becomes 10 after completing 10 iterations of the inner for loop.
  • Hence the 10 will be the output. So the Option d is the correct answer while the other is not.
3 0
3 years ago
What is the Best decent priced Laptop/PC
luda_lava [24]

I'm on a brand new Lenovo and it was only like $500. Its great, especially if you are looking for a gaming Laptop. Otherwise, HP and Lenovo's older stuff is fairly decent in price

6 0
3 years ago
1. You are creating a database for a web hosting service. Which of the following data types
Amiraneli [1.4K]
Well let me see what i can ansewrg x
4 0
3 years ago
Read 2 more answers
Java Eclipse homework. I need help coding this
Maslowich

public class ArithmeticAssignment {

   public static void main(String[] args) {

       Tester test = new Tester();

       test.printTester();

   }

   

}

class Tester{

   Tester(){

       

   }

   void printTester(){

       int i1 = 79 + 3 * (4 + 82 -68) - 7 +19;

       int i2 = (179 +21 +10) / 7 + 181;

       int i3 = 10389 * 56 * 11 + 2246;

       System.out.println(i1);

       System.out.println(i2);

       System.out.println(i3);

   }

}

I think this is what you wanted. I hope this helps!

5 0
3 years ago
If something is copyrighted,
Over [174]
D. because you can’t copy a movie with credit, you have to have permission
7 0
4 years ago
Other questions:
  • In Microsoft word,when you highlight existing text you want to replace ,you’re in?
    12·1 answer
  • Digital information is stored using a series of ones and zeros. Computers are digital machines because they can only read inform
    15·1 answer
  • Where can information on metalworking occupations be found?
    14·2 answers
  • after turning the volume all the way up on the speakers you still can't hear any sound which of the following should be your the
    13·1 answer
  • Software on your computer is taking a long time to load. What could help solve this problem?
    5·1 answer
  • What is the value of alpha[3] after the following code executes?
    6·1 answer
  • What problems does the swim coach have? Use details from the story to support your answer.
    7·1 answer
  • Follow me on insta Aaftabkhan_7​
    13·2 answers
  • Point giveaway and brainliest
    7·2 answers
  • Why aren't my skullcandy bluetooth headphones connecting to my school chromebook if I turned on both the headphones and the blue
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!