Re: Seeking Help for Creating a Circle Generator Tool Programming Game Development by b_985 … was the Minecraft Circle Generator for creating accurate circles and shapes. However, I’ve run into an issue — the website isn… Shapes Programming Software Development by maverick420 …(int i = 0; i < shapes.length; i++) { if (shapes [i] == null) { shapes [i] = new Rectangle(width, height); …case 3: { for (int i = 0; i < shapes.length; i++) { shapes [i] = null; } } break; case 4: { for… Re: Shapes Programming Software Development by maverick420 …rectangle Enter 3 to delete all shapes Enter 4 to display all perimeters of all shapes Enter 5 to display all …Width User input 3 Delete all shapes User input 4 Display all perimeters of all shapes User input 5 Display all areas… of all shapes User input 6 Confirm user exit… Re: Shapes Programming Software Development by maverick420 … rectangle Enter 3 to delete all shapes Enter 4 to display all perimeters of all shapes Enter 5 to display all areas… Re: shapes in console app (win32) Programming Software Development by goyofoyo …circles, rectangles, and other graphic shapes. Does your teacher expect graphic shapes or text shapes ? Are you in a first…then I suspect your teacher only expects text shapes because graphic shapes are more advanced topic.[/QUOTE] yes this …just a way to chose shapes and display them. and by text shapes you mean shapes created by ***** or by… Re: shapes in console app (win32) Programming Software Development by Ancient Dragon That compiler can build GUI programs in which you can draw circles, rectangles, and other graphic shapes. Does your teacher expect graphic shapes or text shapes ? Are you in a first year programming class ? If yes, then I suspect your teacher only expects text shapes because graphic shapes are more advanced topic. shapes and colors program Programming Software Development by rena0514 …String[] args) { JFrame frame= new JFrame("Shapes and Colors"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.…listener); square.addActionListener (listener); label = new JLabel ("Shapes&Colors"); buttonPanel = new JPanel(); buttonPanel.setPreferredSize (new… Re: shapes and colors program Programming Software Development by rena0514 …main(String[] args) { JFrame frame= new JFrame("Shapes and Colors"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().… (this); square.addActionListener (this); label = new JLabel ("Shapes&Colors"); buttonPanel = new JPanel(); buttonPanel.setPreferredSize (new … Re: shapes and colors program Programming Software Development by rena0514 …(String[] args) { JFrame frame= new JFrame("Shapes and Colors"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane…(this); square.addActionListener (this); label = new JLabel ("Shapes&Colors"); buttonPanel = new JPanel(); buttonPanel.setPreferredSize (new… shapes in console app (win32) Programming Software Development by goyofoyo hey I have been looking up shapes in c++ but everyone talks about needing certain compilers and #… and my teacher has just asked us to create different shapes. should i just use characters? and if i should are… Re: Shapes Programming Software Development by stultuske I see you quoting someone, but is that your explanation or someone elses? is there still a question, or do you provide an answer? please be a bit more clear on these parts. Re: Shapes Programming Software Development by JamesCherrill [QUOTE]the program ... does not produce desired output[/QUOTE] That gives us nothing to go on. Exactly what input gives exactly what output, and how exactly does that differ from the correct output? Re: Shapes Programming Software Development by JamesCherrill while (selection < 1 || selection > 6); This will enter an infinite loop if selection is not 1-6 Re: Shapes Programming Software Development by maverick420 Try running the program it will not enter infinite loop if selection is not 1-6. Re: Shapes Programming Software Development by Ezzaral Look at where your while() condition is located. Now trace through what your program will do if input is 1-6. Re: Shapes Programming Software Development by maverick420 It runs but doesn't give the desired output, don't exactly know what am I missing. Re: Shapes Programming Software Development by Ezzaral It's fairly easy to trace manually. Run through it assuming an entry of 1. Re: Shapes Programming Software Development by maverick420 This is my first time JAVA class and really I'm no able to figure what's wrong with this code. Re: Shapes Programming Software Development by Ezzaral How many times will your input do-while loop execute if selection is 1? Re: Shapes Programming Software Development by maverick420 10 times is required Re: Shapes Programming Software Development by Ezzaral That was not my question. How many times will [U]your current code[/U] execute if the user enters 1. Trace that value through your code. Re: Shapes Programming Software Development by maverick420 1 will be the choice form the menu option, if selected user will prompt for RADIUS and after entering the RADIUS again Menu should be displayed, and user can pick the choice form the menu this loop should be 10 times. Re: Shapes Programming Software Development by stultuske he's not asking what it SHOULD be, he is asking how many times it happens. if you're not sure, instantiate a variable int x = 0; before the loop and System.out.println("ran for the " + ++x + " th time"); Re: Shapes function Programming Software Development by Adak To show shapes and ALWAYS to post code << Use [Code] tags &… Using .h (C HEADER FILE) in Shapes.cpp Programming Software Development by Smoking Bros … Please take a look at my Shapes.h file: [CODE] class Shapes { public: Shapes(char shape, int x, int …include <iostream> #include "Shapes.h" using namespace std; Shapes::Shapes(char shape, int x, int y, … 5 C:\Documents and Settings\Benjamin Dahse\Shapes.cpp declaration of `Shapes::Shapes(char, int, int, int, int)'… draw shapes using mouse drag Programming Software Development by hany-h ….println("currentShapedrag="+currentShape); //shapes[shapeType].draw(g); repaint(); } …("shapeCountPaint="+shapeCount); //shapeCount--; shapes[shapeCount-1].draw(g); shapeCount--; }… Application not drawing shapes Programming Software Development by idlackage … { numOfShapes = 0; repaint(); } // Draws the shapes in the shapeObjects array. // Uses instance variable numOfShapes to…== null ) { return; } else { // Otherwise, draw the shapes currentShapeObject.draw( g ); } } private class MouseHandler extends MouseAdapter implements … Re: draw shapes using mouse drag Programming Software Development by JamesCherrill … 0, so you add the shape at index 0, ie shapes[shapeCount] = (the new shape). After that you immediately add…When the second shape is created it goes into shapes[shapeCount] - which is shapes[1], then shapeCount gets incremented to 2. In…all you have to do is loop thru all the shapes between shapes[0] and shapes[shapeCount-1] and draw them all. Re: Application not drawing shapes Programming Software Development by idlackage … void clearDrawing() { numOfShapes = 0; repaint(); } // Draws the shapes in the shapeObjects array. // Uses instance variable numOfShapes to determine…if ( currentShapeObject == null ) { return; } else { // Otherwise, draw the shapes for (int i = 0; i < numOfShapes; i++) { shapeObjects[i… Re: Using .h (C HEADER FILE) in Shapes.cpp Programming Software Development by NathanOliver … shape object but not a pointer the just use[icode] Shapes square("square", 0, 0, 10, 10); [/icode…