Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
squares
- Page 1
Squares program: sentinel value and size of 0
Programming
Software Development
16 Years Ago
by vileoxidation
… am very new to C++, and am attempting the classic
squares
program. I have the meat of it all done, but…
Re: Squares program: sentinel value and size of 0
Programming
Software Development
16 Years Ago
by vileoxidation
…; endl; goto beginning; } cout << counter << "
squares
printed. Average length: " << average << endl…
Disappearing squares program...please help!
Programming
Software Development
18 Years Ago
by docfish
…the top-left corner of the monitor. Continue drawing
squares
that become steadily smaller as they are displayed to …create a method, called drawSquare, which actually draws the
squares
and calls itself recursively until the base case is … Version The 80 point version draws one set of
squares
from left to right, starting with a 200X200 square…
Number of "different" rectangles that can be created by 1<=n<=10000 squares..
Programming
Software Development
14 Years Ago
by crash1989
…this question in some programming contest.. Given are N
squares
with side 1. How many "different"… rectangles can one form using these
squares
? Two rectangles are considered different if none of them… rectangle construction, you can neither deform the
squares
nor put any
squares
upon any other ones. sample input : 6…
Re: Number of "different" rectangles that can be created by 1<=n<=10000 squares..
Programming
Software Development
14 Years Ago
by VernonDozier
… create a rectangle using an odd number of
squares
, using all of the
squares
. By your formula, r (8) = floor ((3 times… r(9) - r(8) = # of rectangles created using exactly 9
squares
, which in this case is 2, not 1: [code] ********* *** *** *** [/code…
Re: Number of "different" rectangles that can be created by 1<=n<=10000 squares..
Programming
Software Development
14 Years Ago
by siddhant3s
…(9) - r(8) = # of rectangles created using exactly 9
squares
, which in this case is >>2, not 1…: r(9)=# of rectangles created using 9
squares
(or less) , which 12 The OP want # of square …using n or less
squares
. The OP wants r(9) [code] 9 these: ######### ######## ####### ###### ##### #### ### ## # plus …
Re: Number of "different" rectangles that can be created by 1<=n<=10000 squares..
Programming
Software Development
14 Years Ago
by VernonDozier
…) - r(8) = # of rectangles created using exactly 9
squares
, which in this case is >>2, not 1…: r(9)=# of rectangles created using 9
squares
(or less) , which 12 The OP want # of …square using n or less
squares
. The OP wants r(9) [code] 9 these: ######### ######## ####### ###### ##### #### ### ## #…
problem with program finding "magic squares"
Programming
Software Development
19 Years Ago
by j206
… write finds and prints "magic
squares
" which are numbers that are perfect
squares
and a sum of consecutive numbers (1…+2+3,etc.) Ex. the first 2 magic
squares
are 1 and 1225 it seems simple, but what i… the main program and it is the number of perfect
squares
the user wants starting with 1) public void magicSquare(int…
I want to know how to display the "adding" part of a sum of squares
Programming
Software Development
14 Years Ago
by mmgoicochea
… into a function that calculates the sum of
squares
from 1 to that integer the output should …where I can add all the numbers (sum of
squares
) of any number input by the user... I…if I input this integer 5 the sum of
squares
is 55.... what I want to know is…6; cout<<"the sum of
squares
is"<<sum<<i++<…
The "Disappearing Squares" Program
Programming
Software Development
10 Years Ago
by amir4g
…,int y,int width,int height) //the first set of
squares
{ if (width>4 && x<1000…,int y,int width,int height) //the second set of
squares
{ if (width>4 && x<1000) //…int)(width*.75),(int)(height*.75)); //the second set of
squares
System.out.println(height); g.fillRect(x, y, width…
Having problem to output the sum of cubes with sum of squares
Programming
Software Development
15 Years Ago
by C++.java
// Sum of
Squares
and Cubes.cpp : Defines the entry point for the console … actual question.... 5. Write a program that adds up the
squares
and adds up the cubes of integers from 1 to… entered by the user: Upper Limit: 5 The sum of
Squares
is 55 The sum of Cubes is 225 Do this…
Recursive row of squares
Programming
Software Development
14 Years Ago
by why1991
… simple graphics and need to display a straight row of
squares
from left to right decreasing in size. I also have… to program this recursively so that it makes the
squares
following the first one by itself. My problem right now… is that it does not display any of the
squares
besides the first one. Here is my recursive method I…
finding perfect squares and counting.
Programming
Software Development
13 Years Ago
by Mikhailvs
… a program to find all integers that have 5 perfect
squares
within 30 of them... here is what i have so… because past 6^2 there are no five consecutive perfect
squares
with a range of less than or equal to 30… have value of n^2: creates the array of perfect
squares
locationOfSquare++; } int count = 0; for (int k = -14; k <…
Drawing Concentric Squares
Programming
Software Development
12 Years Ago
by Slobo_89
I need to write a program for drawing concentric
squares
. Program with the first click of the mouse determines … I wrote the first part of a program that draws
squares
, and I began the second part, which should with the…the standard packages. It shoud look like this (number of
squares
is not important): [URL="http://th02.deviantart.net/fs71…
Java: Finding perfect squares (beginner)
Programming
Computer Science
12 Years Ago
by joankim
…make a program that will find the first x perfect
squares
. I have done and redone this many times, but…} public void loops(){ System.out.println("How many magic
squares
do you want?"); int input = in.nextInt(); for(… System.out.print(x + ", "); // prints all magic
squares
a++; // stops "for" loop when it has reached…
Re: Java: Finding perfect squares (beginner)
Programming
Computer Science
12 Years Ago
by joankim
…out.print(x + ", "); // prints all magic
squares
a++; // stops "for" loop when it has reached…public void loops(){ System.out.println("How many magic
squares
do you want?"); int input = in.nextInt(); …out.print(x + ", "); // prints all magic
squares
a++; // stops "for" loop when it has reached…
Re: I want to know how to display the "adding" part of a sum of squares
Programming
Software Development
14 Years Ago
by n21115
…;<"\nEnter the number till which the sum of
squares
is to be computed : "; cin>>n; for…
Re: I want to know how to display the "adding" part of a sum of squares
Programming
Software Development
14 Years Ago
by mmgoicochea
… is a formula I got.it finds the sum of
squares
of //a given number. cout<<square; if (i…
Re: finding perfect squares and counting.
Programming
Software Development
13 Years Ago
by Mikhailvs
in this case a "right" integer would be one that has exactly five perfect
squares
within 30 of it. for example, -14 has within 30 of it exactly five perfect
squares
: 0,1,4,9,16 some of the code is really messed up, like the while loop near the end
Re: Java: Finding perfect squares (beginner)
Programming
Computer Science
12 Years Ago
by joankim
…(); } public void loops(){ System.out.println("How many magic
squares
do you want?"); int input = in.nextInt(); for(int… square. System.out.print(x + ", "); // prints all magic
squares
a++; // stops "for" loop when it has reached…
Re: Java: Finding perfect squares (beginner)
Programming
Computer Science
12 Years Ago
by joankim
…(); } public void loops(){ System.out.println("How many magic
squares
do you want?"); int input = in.nextInt(); System.out… nr " + num + ": " + (int)x); // prints all magic
squares
System.out.println(); a++; // stops "for" loop when…
Highlighting squares in chessboard
Programming
Software Development
18 Years Ago
by sarahjane
… the queen(counter) is supposed to travel over all 64
squares
in 16 moves and it must highlight or mark…
squares
allready passed over. Been at this for last two nights …
Fiddled inside - now I get white squares
Hardware and Software
Hardware
17 Years Ago
by zico2000
…, put it all back together and now I have white
squares
all over the screen. You can see Windows in the… I've been heavy handed and somehow caused these white
squares
? The RAM slot looks fine with no sign of damage…
How to sum cubes and squares of the number input by the user
Programming
Software Development
15 Years Ago
by C++.java
5. Write a program that adds up the
squares
and adds up the cubes of integers from 1 to … entered by the user: Upper Limit: 5 The sum of
Squares
is 55 The sum of Cubes is 225 Do this…
switch, and while loop outputting integer numbers and their squares
Programming
Software Development
15 Years Ago
by MoOou
… between two integers. 3.Output the integer numbers and their
squares
between two integers. 4.Output the sum of the square…*firstNum; }//end switch firstNum++; }//end loop (while) //output Numbers and
squares
between The First Number and The Second. i=firstNum; j…
generating squares in random points with a random sizes
Programming
Software Development
14 Years Ago
by javanub123
… a lab monday which requires me to generate random sized
squares
random poinst. im not to familiar with the random class… only does one square. i want it to do many
squares
at once. [CODE] import javax.swing.*; import java.awt.*; import…
Recursive row of squares
Programming
Software Development
14 Years Ago
by why1991
… to make a row of decreasing
squares
with a recursive method, but none of the
squares
comes up besides the first one…
Creating a python program that creates squares instead of circles
Programming
Software Development
13 Years Ago
by Fo.katia
… of circles. It also has to draw additional
squares
for each mouse click, and at the end print a …
Re: Drawing Concentric Squares
Programming
Software Development
12 Years Ago
by Slobo_89
I can not figure out how to draw multiple
squares
at once. I understood how to use mouse listeners, but …
Re: Drawing Concentric Squares
Programming
Software Development
12 Years Ago
by NormR1
[QUOTE]how to draw multiple
squares
at once[/QUOTE] Your code uses third party classes that …
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC