Quote:
|
Your lack of help disturbs me. You do the delving and I do the correcting.
|
ha, bleeding ha, thats not the way it works, we give you pointers on how
you resolve
your problem. in exceptional circumstances contributors may provide code, and may provide partially worked answers. however that rarely happens with assignments. in part thats becuase you need to do the steps to learn and demonstrate that you have learn't from the process. demanding answers short changes you and your education. if styudents are preapred to work at it most contributors will
help, especially if there is a thorny problem that you can't get round and shown committment to develop a soultion.
I'm guessing the assignment deadline has passed, however if it hasn't
you need to write a process / function which adds the cost of all items ordered
declaring a global variable isn't a smart idea.. its bad programming practise. granted there are some times when y'have to break the rules, but this isn't one of them
not knowing how you store you order items makes it difficult to know how to satrt
if you stroe items ordered in a table then its a simple recordset
if its in a combo box then you need to iterate through the combobox. you can store infromation in a combo box and not display.. Its nbot good practise to dispoaly codes such as AT94... it may make sense to the business, but it means stuff all to the customer. after all they want an iron, not an AT94.
so say you stuffed the code, description, price, sales tax and quatity ordered into a combo box
you could iterate through that combobox doing your calcualtion as required
heres a hint
open up your copy of Visual Studio
press the F1 key and read up on combo boxes, read up on the for each construct read up on the properties of a combo box