posted 8 years ago
Hello all, I just wrote the following program:
In the SubmitMethodClick method, I have assigned array values using these tables
Price Table for Plain Cheese Pizza
Small Medium Large
Thin 5.25 8.25 11.25
Thick 6.00 9.00 12.00
Deep Dish 7.25 10.25 13.25
Price Table for Toppings
Small Medium Large
Meat 1.00 1.50 2.00
Veggies 0.50 0.75 1.00
This program is supposed to print a value based on radio buttons/check boxes the user clicks, and look in the array to find the value.
Not really sure if I am going at this the correct way. Is there a way to assign a whole row/column to a radio button/check box.
So I could say something like
Where plainCost [0][] is referring to the entire first row.
That is most definitely the wrong syntax, but I think it gets across what I am trying to do.
Any tips are appreciated. Thank you!