Need help with c# project. I need to calculate points earned from total books purchased each month, the result needs to be stored into an array that will keep 6 months of monthly totals and then output it to a message box.
A link to the exercise/project is always helpful, but…
It sounds like you already kind of have a handle on the algorithm. If you break it down into steps, you should be able to accomplish this.
For each of the last 6 months:
- Calculate the total for the first month.
- Add that month’s total to the array.
- Repeat 1 and 2 for each month afterwards.
- Output the result.
You got this!