Computer Science Canada

Really need help with writing this program. i just dont understand what goes where!?

Author:  NedBC [ Thu Feb 07, 2013 2:53 pm ]
Post subject:  Really need help with writing this program. i just dont understand what goes where!?

Write a program to calculate your bill at KFC. the user should enter the quantity of each item into the appropriate text box. the cost of items are, legs = $1.89, wings = $0.25, & chickens = $3.99.
the user should click on a button (btncalculate) to calculate the bill. each item must have an itemized total (quantity * price). Display the subtotal of the entire bill before tax, then the sales tax at a rate of 6% and the final total of the bill. Before the bill is displayed, the entire list box should be cleared. Be sure your list box is large enough to display the entire bill. A clear button should clear all text boxes and the list box.

theres three txt boxes
a calculate button and clear button
and the listbox for results

I started with DIm legs, wings, chickens As Souble

legs = CDbl(txtlegs.text)
wings = CDbl(txtwings.text)
Chickens = CDbl(txtchickens.text)

i dont even know if that is right, im just confused on how to write it so it shows how each of them get priced and separated.

Author:  Tony [ Thu Feb 07, 2013 3:07 pm ]
Post subject:  RE:Really need help with writing this program. i just dont understand what goes where!?

refer to your previous assignments / examples from class. Is there anything that's in any way similar, that you can refer to?


: