Click here to Skip to main content
15,899,126 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Given the following declarations, write the code to add each row
of a 2 dimensional array
salesDecimal and store the row totals in the
one dimensional array weeklyTotalDecimal. Assume that the values
have already been loaded into the SalesDecimal array. Include
any Dim statements for any additional variables that you might
need to create.

Dim SalesDecimal (3, 6) As Decimal
Dim WeeklyTotalDecimal(3) As Decimal
Dim RowInteger As Integer
Dim ColInteger As Integer
Posted
Updated 9-Nov-14 18:55pm
v3
Comments
dan!sh 10-Nov-14 1:16am    
2 for loops. one for rows and one for column. Write nested loops that can tell computer to move cells sequentially: (0,0), (0,1) and so on.

1 solution

so, what are you stuck on ? what can we help you with (except writing your homework for you that is)

you might need to think about for loops, array vs subscripts etc
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900