I'm new this site and to coding in general, please bear with me (I don't really know the proper way to post or ask a question here)! I'm having trouble understanding a certain part of my assignment. I'm supposed to:
Create the structure, which will contain two data members. The year will be stored in the structure as an integer values, and the sales for that year will be stored as a double. The structure will also contain a constructor (which receives a year and sales value as parameters) and a ToString override.
When a button is pressed, an array of ten structures will be created. The structures will contain year values from 2000 to 2009 inclusive, and each year will be assigned a random sales value ranging from $1000.00 to $50,000.00.
I've italicized the part I'm having trouble wrapping my head around. Basically, I'm asking how do I go about this. How do I start? How do I create an array of ten structures? etc.
Any tips, examples, or help in general would be greatly appreciated!