Computer Science Canada Programming C, C++, Java, PHP, Ruby, Turing, VB   Username:   Password: Wiki   Blog   Search   Turing   Chat Room  Members
Binary/ASCII Counter with GUI
Author Message
joe333

Posted: Fri Apr 16, 2004 2:59 pm   Post subject: Binary/ASCII Counter with GUI

I am lost. I have to use a GUI and make a program with procedures that will let the user select from a menu whether they want to see the binary counter, the ASCII Convertor or a Light Pattern. There also has to be 8 circles on the screen that blink as the program counts from 1 to 255 in binary. Any idea where I can begin?

AsianSensation

Posted: Fri Apr 16, 2004 3:48 pm   Post subject: (No subject)

First, make a binary counter, a ASCII converter, and a Light Pattern Program.

then, make the buttons for the GUI. When you say GUI, I'm assuming you have to use the GUI widget from Turing.

lastly, for flashing circles, just every time when the binary counter goes up, get a random color, and draw a circle of that color.
McKenzie

Posted: Sat Apr 17, 2004 1:24 pm   Post subject: (No subject)

Did you figure out your Dec -> Binary conversion from the other day or are you allowed to use strint for this one? You will need this for both the counter and the Light problems. The ASCII problem is easy all you have to do is use chr().
As AS says start by solving each of the small problems. Make each one a procedure, that will make the GUI part easy. For example the easy one will look something like:
 code: proc showASCII      for i:1..255           locate(10,10)           put i:3, chr(i):3           delay(100)      end for end showASCII
joe333

Posted: Sat Apr 17, 2004 8:20 pm   Post subject: (No subject)

so how would i turn the other binary covertor into a counter and then put it into a procedure? Do i use something similar to the code you put above? Could you give me an example for the binary counter?
Tony

Posted: Sat Apr 17, 2004 9:15 pm   Post subject: (No subject)

 code: for i:1..10 put intstr(i,8,2) end for
Tony's programming blog. DWITE - a programming contest.
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First

Page 1 of 1  [ 5 Posts ]
 Jump to:  Select a forum  CompSci.ca ------------ - Network News - General Discussion     General Forums   -----------------   - Hello World   - Featured Poll   - Contests     Contest Forums   -----------------   - DWITE   - [FP] Contest 2006/2008   - [FP] 2005/2006 Archive   - [FP] 2004/2005 Archive   - Off Topic     Lounges   ---------   - User Lounge   - VIP Lounge     Programming -------------- - General Programming     General Programming Forums   --------------------------------   - Functional Programming   - Logical Programming   - C     C   --   - C Help   - C Tutorials   - C Submissions   - C++     C++   ----   - C++ Help   - C++ Tutorials   - C++ Submissions   - Java     Java   -----   - Java Help   - Java Tutorials   - Java Submissions   - Ruby     Ruby   -----   - Ruby Help   - Ruby Tutorials   - Ruby Submissions   - Turing     Turing   --------   - Turing Help   - Turing Tutorials   - Turing Submissions   - PHP     PHP   ----   - PHP Help   - PHP Tutorials   - PHP Submissions   - Python     Python   --------   - Python Help   - Python Tutorials   - Python Submissions   - Visual Basic and Other Basics     VB   ---   - Visual Basic Help   - Visual Basic Tutorials   - Visual Basic Submissions     Education ----------- - Student Life   Graphics and Design ----------------------- - Web Design     Web Design Forums   ---------------------   - (X)HTML Help   - (X)HTML Tutorials   - Flash MX Help   - Flash MX Tutorials   - Graphics     Graphics Forums   ------------------   - Photoshop Tutorials   - The Showroom   - 2D Graphics   - 3D Graphics     Teams ------ - dTeam Public

 Style: Appalachia blueSilver eMJay subAppalachia subBlue subCanvas subEmjay subGrey subSilver subVereor Search: