Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How do you make a seven segment display in turing?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
turinghelp101




PostPosted: Thu Jan 19, 2012 7:06 pm   Post subject: How do you make a seven segment display in turing?

What is it you are trying to achieve?
<Replace all the <> with your answers/code and remove the <>>
I need to make a seven segment diplay for an isp.

What is the problem you are having?
<Answer Here>
I havent started yet, im wondering how difficult it is, how many lines it would probabbly take, and in general what you need to do to make one.

Describe what you have tried to solve this problem
<Answer Here>
I need answers to the questions above before I start


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
<Answer Here>

Turing:


<Add your code here>



Please specify what version of Turing you are using
<Answer Here>
4.1.1
Sponsor
Sponsor
Sponsor
sponsor
RandomLetters




PostPosted: Thu Jan 19, 2012 7:40 pm   Post subject: RE:How do you make a seven segment display in turing?

It will be relatively simple if you already know how to use arrays and graphics.

The size of the code will depend largely on the implementation and interface you choose to create. Will it just get a number and display it? Can you have multiple lights? What about a graphical user interface? I would think it might take around 80 lines?, Most of it is because each number will have to be manually defined in terms of which lights are on. And then to draw polygons for each light.

One way to implement a 7 segment is to have an array of 7 boolean variables. This way, you can loop through the array to decide which lights to color.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: