Part one: simple checkout
The checkout program records purchases. An item code is to be entered by the user. If it
is an existing item code that matches an item in the items array (as given in
CheckoutProgram .java), a description of the item with its unit price is displayed.
For example, if the user types the item code “1000” and then presses the Enter key,
“low-fat milk (1 litre)/$2.15” is displayed on...
User Profile
Collapse
-
Discounting program
Can anyone teach me how to wirte this
Many Thanks
Supermarkets sometimes have discounts on multiple purchases. For example, the unitprice for “mango” is $1.89, but buying two of the product will cost $2.50. The discount information is stored with each item in the items array.
For those items that offer a discount for multiple purchases, the discounted price is shown when it applies.
An example... -
-
Need Urgent Help With Arrays
Can anyone teach me how to An item code is to be entered by the user. If it
is an existing item code that matches an item in the items array , a description of the item with its unit price is displayed.
For example, if the user types the item code “1000” and then presses the Enter key,“low-fat milk (1 litre)/$2.15” is displayed on the screen, followed by
another prompt for typing the next item code.
...
No activity results to display
Show More
Leave a comment: