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

  Create memo to grace to outline purposes of organization

Create a memo to Grace in which you outline purposes of organization and costs and benefits of becoming a member.

  Write pseudocode

Write pseudocode that represents the abstract functions of the enqueue and dequeue operations. Define and explain any supplementary information needed by your pseudocode.

  Program to display words in a list box sorted by number

Write a program to display the words in a list box sorted by the number of different vowels(a,e,i,o,u) in the word.

  Explain the interaction framework

Explain the Interaction Framework discussed by Steven Heim (2008). Choose a computing device (like an ATM machine or the self-check-out at a grocery store

  Describing program using suiatble printf command

Yyou have to describe all of this to user using suiatble printf() statements.

  Why small to medium sized firm implement pki solution

Why would a small to medium sized firm implement a PKI solution? What are the characteristics required in using a password that will provide security protection for a company?

  Development of the current strategic potential of airline

Evaluate the organisation's current external and internal strategic position

  Write program to create n-dimensional array on th runtime

Write a program to create an n-dimensional array on the runtime with the help of pointers. The user will enter on the run time that how many dimensions are required.

  Write parameterized function to play the game

Your program cannot use file level variables or constants; your program cannot use global variables or constants. The functions that you write exchange data by means of return statements and value parameters and reference parameters

  Implement two different versions of file copy utility

You will implement two different versions of file copy utility, one by using read()/write() operations and one by using mmap(). You are only prmitted to use following system calls:

  Write program which inputs the string from user

Write a program which inputs the string from a user. Then it will take character as input and prints string onwards from that character.

  Write program to decodes messages using caesar cypher

Write a program which decodes messages. Messages will be encoded using Caesar cypher, with each letter being decoded by replacing it with the previous letter in the alphabet.

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