General
Purpose Packages
Automated
Systems
Commercial Data
Processing
Computer Systems
Hardware
Computer Systems
Software
Programming Course
Arrangements

Running Totals

 

Play this video
Using a variable to keep a Running Total! Go Full Screen to see in greater detail?

Loops make it easy to create code quickly, but can produce problems when trying to add up a list of numbers entered inside the loop.

Here, we look at how a running total is often used when using a loop with numbers entered inside the loop having to be added up.

 

 

 

 

 

 

What you have to do!

  1. Watch Movie 22 which shows you the code to include Running Totals in your program.
  2. Click on the button to download the program folder Test_Average. Make sure you choose Save.
  3. Move the folder into your VB Programs folder.
  4. Right Click and choose Extract All or Extract Files. Click OK or Next and keep going until the process is Finished..
  5. Create the code for the program and check it works with various input values.
  6. Tick off your Progress Grids.

 

Mark off Exercise 15 in your progress grids.

 

 

What you should now be able to do!

 

Continue to Exercise 16: DO Loop UNTIL

 


 

 

 

 

Home | S1 Topics | S2 Topics
Computing Standard Grade | Info Systems Intermediate II | Info Systems Higher | Internet Safety
Log into Glow | School Website | Contact Us