Question automatic calculation

dilse4sk

New member
Joined
Nov 28, 2011
Messages
2
Programming Experience
Beginner
hi every body. i would like to ask for some ideas. basically i am developing a vb.net application where i want to add the price of a product per day and at the end of 1 week it should automatically sum up the last 7 days product prices. And when i click on weekly report it should give me 1 week individual product prices plus a total..please give some ideas.i am really stuck
 
You need to declare an array to hold the price of the product for 7 days. Create a For loop to repeat 7 times. Get the price and place it inside the array for that day's index. Use an accumulator variable inside the loop to total the price each day. After the loop ends, display the values in each index of the array, and the total.
 
Back
Top