Answered You can hire a professional tutor to get the answer.

QUESTION

Use an Array to store invoice totals: From Murach's Visual Basic 2015 (page 278) Use an Array to store invoice totals: 2) Declare two module-level...

Use an Array to store invoice totals:

From Murach's Visual Basic 2015 (page 278)

Use an Array to store invoice totals:

2) Declare two module-level variables: (1) an array that can hold up to five invoice totals and (2) an index that you can use to work with that array.

3) add code that adds the invoice total to the next element in the array each time the user clicks the calculate button.

4) Add code that displays all the invoice totals in the array in the message box when the user clicks the Exit button. To Do that , use a for each loop to loop through the totals and format the message for the message box.

5) Test the program by entering three invoices and then clicking the exit button. This should display a dialog box like the one that follows. But note that the fourth and fifth elements in the array are also displayed because there were initialized with the zero values. (unable to attach)

SORT THE INVOICE TOTALS

8) Add code to sort the invoice totals in the array.

MODIFY THE PROGRAM SO IT USES A LIST

10) Without changing any of the current code, add code that uses the list() class to hold the invoice totals. Then, when the user clicks the Exit button sort the list elements and add a second For Each loop to format and display the totals stored in the list in a second message box. In other words, display two message boxes: one for the array and one for the list.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question