Question: This is a Visual Basic question: A grocery store sells apples for 79 cents per pound. Write code to get the number of pounds of
This is a Visual Basic question:
A grocery store sells apples for 79 cents per pound. Write code to get the number of pounds of apples purchase from the txtPounds textbox (this could contain floating-point values) and the amount of cash given to the clerk from the txtCash controls on the form. Then calculate and display the change due in the lblChange label as currency. If the cash is not enough, the message I need $x.xx more should be displayed instead, where $x.xx is the difference between the cash and the total cost. Declare your variables.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
