Ok, so me and a firend are working on a project called virus scanner. It does nothing really, just pretends to scan for viruses, thus wasting the calculator. Here is the code now
Code:
So far that just does a bunch of fancy work to scan, pause for the user, and show a random number of viruses. We plan to add more code that will delay the calculator for X seconds, based on the number of viruses. What we need help with is two features . 1- (this will change the current way the # of viruses is displayed)we want to have the calculator check if has already run, and if so, display o viruses. If not, then the calculator makes up a number of viruses and runs.
2-(adds a progress bar) When the program first runs it displays Scanning... X percent complete. We want to add a visual progress bar to the screen. What we mean is every 6.25 cycles of the previous display, it adds a symbool to the last line displayed, giving the user a visual representation of how much progress has passed.
Code:
:ClrHome
:0→P:0→Q:0→R:0→V:0→W:0→C
:For(P,0,100,1)
:Disp "SCANNING FOR"
:Disp "VIRUSES"
:Disp C
:Disp "PERCENT"
:Disp "COMPLETED"
:For(Q,0,25,.1)
:End
:ClrHome
:C+1→C
:End
:Pause "PRESS TO CONT."
:ClrHome
:For(W,0,10,1)
:Disp "FOUND VIRUSES!"
:For(V,0,100,1)
:End
:ClrHome
:End
:Disp "FOUND"
:randInt(100,1000)→A
:Disp A,"VIRUSES"
:Pause
So far that just does a bunch of fancy work to scan, pause for the user, and show a random number of viruses. We plan to add more code that will delay the calculator for X seconds, based on the number of viruses. What we need help with is two features . 1- (this will change the current way the # of viruses is displayed)we want to have the calculator check if has already run, and if so, display o viruses. If not, then the calculator makes up a number of viruses and runs.
2-(adds a progress bar) When the program first runs it displays Scanning... X percent complete. We want to add a visual progress bar to the screen. What we mean is every 6.25 cycles of the previous display, it adds a symbool to the last line displayed, giving the user a visual representation of how much progress has passed.