Int64 Compairson Bug, Cubes Programming Software Development by grh1107 ….Pow(SP, 3); } } public void Display() { foreach (Int64 QB in Cubes) { Console.Write(QB + " "); } } public Int64 PermCube () { Int64 [] Digits… Re: Int64 Compairson Bug, Cubes Programming Software Development by grh1107 … that can be permuted to equal 5 other cubes* Therefore after all the cubes are generated, you sort the digits in the… that has 5 permutations of the numbers that are also cubes Re: Int64 Compairson Bug, Cubes Programming Software Development by Momerath … that has 5 permutations of the numbers that are also cubes That's not what I said. You commented that reading… Having problem to output the sum of cubes with sum of squares Programming Software Development by C++.java // Sum of Squares and Cubes.cpp : Defines the entry point for the console application. … sum2=h/4; cout<< "the sum of cubes is : "<<sum2<<endl; } [/…that adds up the squares and adds up the cubes of integers from 1 to N, where N is…The sum of Squares is 55 The sum of Cubes is 225 Do this by using just one loop … Total Cubes Programming Software Development by Krstevski … people... I have one problem... Find how many total cubes are there in the range from A to B, inclusive…*X*X, where X is also integer. The first total cubes are: 1, 8, 27, 64 ... Input parameters: A, B…<=B) Return value: int, the number of total cubes in the given range. Class Name: TotalCubes Method signature: public… The sum and average of cubes Programming Software Development by Tim_10 …to comput and display the sum and average of the cubes of the even natural numbers between 2 and n. …. Im stuck on how to average the sum of the cubes. Help Please. This is what I have so far.…def main(): print ("This calculates the sum of the cubes of the 1st natural numbers") natn = eval(input("… Re: The sum and average of cubes Programming Software Development by tinstaafl …the pastebin: print ("This calculates the sum of the cubes of the 1st natural numbers") natn = eval(input("… you want to sum? ")) print("sum of even cubes between 0 and {} : ".format(natn-1),sum(i**…(0,natn,2)),"\n", "sum of cubes between 0 and {}".format(natn-1),sum(i**3… Re: Total Cubes Programming Software Development by akulkarni … values this is how i counted the standard cubes upto 126 [code=JAVA] class cubes { public static void main(String args[]) { boolean… Re: The sum and average of cubes Programming Software Development by slate * You are not adding up the even cubes. You are adding up all cubes of numbers between 0 and natn-1.Look up… How to sum cubes and squares of the number input by the user Programming Software Development by C++.java … program that adds up the squares and adds up the cubes of integers from 1 to N, where N is entered…: 5 The sum of Squares is 55 The sum of Cubes is 225 Do this by using just one loop that… finding sum of cubes (from an array) Programming Software Development by CleanSanchez … to find the sum of an array, sum of the cubes of the array (i.e. each value raised to the… sum+= (*pf)(sum, *p); p++; } return sum; } //calculate sum of cubes float cubic(int cubic){ //int cube = 0; //for (int j… Re: How to sum cubes and squares of the number input by the user Programming Software Development by death_oclock The problem practically gives away what you need to do. Have you been to class at all? Taken any notes? All you need is a simple (very simple) loop, a few counters, and the basic math knowledge to perform squares and cubes. Oh, and some form of getting input (also quite simple!). Re: Positive integers that are not the sum of the cubes of nine different positive intege Programming Computer Science by Firewolf Just an idea... The first 9 positive integers are: 1, 2, ..., 9 Their cubes are: 1, 4, ..., 81 The sum of these cubes is: 285 285 has to excluded from the list And so on... Re: Positive integers that are not the sum of the cubes of nine different positive intege Programming Computer Science by mrnutty >>[b] Their cubes are: 1, 4, ..., 81[/b] no their cubes are 1^3, 2^3 , 3^3 ... 9^3 Re: drawing Cubes in C# using System.Drawing Programming Software Development by astha_malik … panel with 2 rows and 2 columns where these 4 cubes will be added in each cell to implement this functionality… the exact position of the point from where these 4 cubes have to be drawn. how to pass the x and… Positive integers that are not the sum of the cubes of nine different positive intege Programming Computer Science by MCMLXXXVIII we are given a problem to make this in a program but i don't quite understand what it means or requires. • Look for positive integers that are not the sum of the cubes of nine different positive integers. can someone help me out.. Thanks drawing Cubes in C# using System.Drawing Programming Software Development by astha_malik hi, actually i wanted to draw two cubes programmatically in C# with only top,front and right portions … Re: drawing Cubes in C# using System.Drawing Programming Software Development by astha_malik And the other issue is I have to draw two cubes from the same origin.One has to progress in the positive x -axis based on the width parameter passed. And the other has to progress in the negative x-axis based on width parameter passed. The top and right portion of the cube have to remain the same. Re: drawing Cubes in C# using System.Drawing Programming Software Development by astha_malik …. And the other issue is I have to draw two cubes from the same origin.One has to progress in the… Re: drawing Cubes in C# using System.Drawing Programming Software Development by ddanbe … the best way to proceed. Perhaps 4 panels? Use 2 cubes, a negCube and a posCube. I have given you code… Re: drawing Cubes in C# using System.Drawing Programming Software Development by astha_malik Hey thanks a lot. But what i am wondering is that if we give the absolute position of the start point of these cubes through the X and Y coordinates of the Org Point,then based on the screen resolution and if we minimize/maximize screen,aren't these coordinates likely 2 change. Please correct me if i am wrong. Re: drawing Cubes in C# using System.Drawing Programming Software Development by ddanbe … // depending on how much space you want between the 2 cubes) Rectangle N = new Rectangle(Org.X - width, Org.Y, width… Re: Int64 Compairson Bug, Cubes Programming Software Development by Momerath You do some odd things with loops that just make your logic more complicated. Lines 45-48 you get the digits 'in order' into the array, then in line 49 you sort the array. Who cares about the order, use the simplest method. In lines 50-53 you do some convoluted math to build the number back in high digit first order, but take a look at the values … Re: Int64 Compairson Bug, Cubes Programming Software Development by grh1107 However, my objective is not to code like others but, to code the only way I know how to do, Telling me how my code is inefficient does not solve my problem it only creates more, maybe some insite on a better way to solve it would work Re: Having problem to output the sum of cubes with sum of squares Programming Software Development by iamthwee Do the cube part separately on its own first. That would be my first step if I were you. Re: Having problem to output the sum of cubes with sum of squares Programming Software Development by C++.java i tried that but it is giving errors i have to do it in one loop can u guide me Re: Having problem to output the sum of cubes with sum of squares Programming Software Development by iamthwee I know you have to do it in one but if you can't do it separately then? Ya know. Post your code. Re: Having problem to output the sum of cubes with sum of squares Programming Software Development by siddhant3s line 20!! shouldnt that be in a loop? and why do you use so many useless variables(d,e,f,g,h). Just say d=(n*(n+1))/2 sum2=pow(d,2)//squaring d Re: Total Cubes Programming Software Development by akulkarni Check out this Math.pow(8,1.0/3.0) does not give value 2. use like this Math.pow(8,1.0/3). sorry it gives i am working on it..... Re: Total Cubes Programming Software Development by Krstevski The Math methods (Math.pow and Math.cbrt) works without any problem, but he uses double variables, and... Math.pow(8, 1.0/3.0)%10 = 2.0 instead 0... or Math.cbrt(27)%10 = 3 instead 0... How can I check if the decimal digit of the number is zero ?