Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21096

Help surrounding a VB program to develop.

$
0
0
Ok, so here's my brief that I've been given for a VB6 project:

"Construct a VB program that will allow the creation of a list of 12 monthly electricity readings (the number of units used). The user will input the number of units used for each of the 12 months. The program will find the highest electricity usage, the lowest usage and the average usage for the year. The program should sort the twelve numbers into ascending order and display them to the user."

Could anyone let me know how I'm best off tackling this one?

Obviously I'm going to need 2 fields (Month & Reading), I know how to sort in VB when only dealing with numbers and I'm confident enough to make the other calculations (highest, lowest, average) but what would be the best way to approach sorting when I need to keep the a "Month" tag on the line of data as well?

Any advice would be greatly appreciated!

Viewing all articles
Browse latest Browse all 21096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>