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
Kisachek [45]
3 years ago
15

Given int variables k and total that have already been declared, use a do...while loop to compute the sum of the squares of the

first 50 counting numbers, and store this value in total. Thus your code should put 1*1 + 2*2 + 3*3 +... + 49*49 + 50*50 into total. Use no variables other than k and total.
Engineering
1 answer:
Otrada [13]3 years ago
5 0

Answer:

k-1000

Explanation:

You might be interested in
O que é necessário se conhecer para a determinação de uma força concentrada em um ponto?
skelet666 [1.2K]

Answer: its c

Explanation:

7 0
3 years ago
Was rachel and ross on a break
yaroslaw [1]

Answer:

yes they were on a break

Explanation:

3 0
3 years ago
What thoughts and feelings have you had about the police violence<br> against George Floyd?
omeli [17]
What the white racism cop did against George Floyd was absolutely disgusting. It’s so messed up knowing racism and police brutality against black people still exists in this world today. It’s time for all of us to unite and come together and fight for a change already.
7 0
3 years ago
Read 2 more answers
CPS 2231: Computer Organization and Programming Programming assignment #1 Concepts: Scanner, loops, input validation, array, met
agasfer [191]

Answer:

import java.util.*;

public class BarChart

{

public static void main(String args[])

{

int arr[]=new int[5];

Scanner sc=new Scanner(System.in);

for(int i=0;i<5;i++)

{

while(true){

System.out.println("Enter today's sale for store "+(i+1)+" (negative value not allowed)");

arr[i]=sc.nextInt();  

if(arr[i]>0)

break;

}

}

System.out.println("SALES BAR CHART");

for(int i=0;i<5;i++)

{

System.out.println("Store "+(i+1)+": ");

for(int j=0;j<arr[i];j=j+100)

{  

System.out.print("*");

}

System.out.println("");

}

}

}

3 0
3 years ago
An example of a robot functionality would be:
Ronch [10]
Poop!!!!!!!!!!!!!!!!!!!

4 0
3 years ago
Read 2 more answers
Other questions:
  • List the thermal conductivities of five
    15·1 answer
  • Some signs of aggressive drivers include
    5·1 answer
  • Steam enters a turbine at 120 bar, 508oC. At the exit, the pressure and quality are 50 kPa and 0.912, respectively. Determine th
    5·1 answer
  • Steam enters an adiabatic turbine at 400◦C, 2 MPa pressure. The turbine has an isentropic efficiency of 0.9. The exit pressure i
    11·1 answer
  • The electric motor exerts a torque of 800 N·m on the steel shaft ABCD when it is rotating at a constant speed. Design specificat
    13·2 answers
  • Four eight-ohm speakers are connected in parallel to an audio power amplifier. The amplifier can supply a maximum driver output
    12·1 answer
  • Which branch of engineering most closely relates to mechanical engineering?
    12·1 answer
  • The bulk density of a compacted soil specimen (Gs = 2.70) and its water content are 2060 kg/m^3 and 15.3%, respectively. If the
    5·1 answer
  • Water at 70 kPa and 1008C is compressed isentropically in a closed system to 4 MPa. Determine the final temperature of the water
    6·1 answer
  • A common boundary-crossing problem for engineers is when their home country' values come into sharp contrast with the host count
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!