Simulate LCD in terminal / command prompt

liunx

Guest
This is really a general problem, although I will have to implement it in Pascal. We have to simulate a petrol pump, not too difficult, except for the LCD. If the price of the petrol is ?.24 it should display<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><br />     __<br />  |    | |  |<br />  |  __| |__|<br />  |  |      |<br />  |  |__    |<br /><!--c2--></div><!--ec2--><br />Pardon the crappy ASCII art. The trouble is, what if it's ?.34? Then I have to replace the 2 with a 3 and this has to be done in the command prompt. The only thing I've thought of is having each line for each permutation but that's a stupid number of permutations. The course teacher is useless and doesn't know / won't help.<br /><br />Any better ideas..?<br />-Craig1709<br /><br />Edit: I now know the name of what I'm trying to emulate: a seven segment LCD display.<br /><br /><span class='edit'>This post has been edited by <b>craig1709</b>: 23 Dec, 2007 - 07:52 AM</span>
</div>
 
Top