Calculate the sum of squares of numbers using for loop

Assignment Help Programming Languages
Reference no: EM1383681

Given int variables k and total which have already been declared, use for loop to calculate the sum of squares of first 50 counting numbers, and store this value in total. Hence your code must put 1*1 + 2*2 + 3*3 +... + 49*49 + 50*50 into total. Use no variables other than k and total.

Reference no: EM1383681

Questions Cloud

Conduct a general swot analysis for the sabic company : SABIC implements every year initiatives to improve efficiency and reduce waste. What are these initiatives , and what do you propose to help SABIC in these two areas?
Develop java package comprising of class using encapsulation : Develop the Java package comprising of Class and Student with the given requirements. Encapsulation, Method to print student details alone.
What style of leadership are you prepared to use : What style of leadership are you prepared to use in the givin stiation? Do you have a time frame? How will you difine success?
Concentrations of the reactants and products : The reaction SO 2 (g) + NO 2 (g) NO (g) + SO 3 (g) has an equilibrium constant (Kc) of 0.690 at 450°C. If 0.100 mol each of SO 2 and NO 2 are placed in a 500 mL vessel at this temperature, what are the concentrations of the reactants and produc..
Calculate the sum of squares of numbers using for loop : Given int variables k and total which have already been declared, use for loop to calculate the sum of squares of first 50 counting numbers, and store this value in total.
Traffic flow and queueing theory : Vehicles arrive at a toll booth with a mean arrival rate of 2 veh/min (the time between arrivals is exponentially distributed). The toll booth operator processes vehicles (collects tolls) at a uniform deterministic rate of one every 20 seconds. Wh..
Find the number of colony forming units : From a bacteria stock you serially dilute 1/100 two times, then serially dilute 1/10 two times.  From this last tube you plate 100 ul, which produces 156 colonies the other day.
What are new charge on spheres : What are new charge on spheres - Two insulated charge Cu spheres A and B OF IDENTICAL size have charge qa and -3qa
Find the concentration in mg/ml : A 2.5 mg/ml stock solution was diluted as described in the table below and then the absorbance of each dilution was estimated and presented in the table given below.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd