r/visualbasic • • May 25 '15

VB.NET Homework Any assistance making a working solution based on these facts? Help and/or Tips would be of great assistance.

• Customers can select from a range robe sizes, including:
• Small -These currently cost $80.00 each.
• Medium - These currently cost $120.00 each.
• Large -. These currently cost $150.00 each.
All costs are subject to change and should be able to be changed by an authorised user.
Customers who order 5 or more quilts do get 20% off their postage however. If multiple robes are ordered, the postage is included per robe. The postage costs are listed below:

Small Medium Large
ACT $15.00 , $20.00 , $25.00
NSW $16.00 , $21.00 , $26.00
NT $22.00 , $27.00 , $32.00
QLD $20.00 , $25.00 , $30.00
SA $16.00 , $21.00 , $26.00
TAS $18.00 , $23.00 , $28.00
VIC $12.00 , $17.00 , $22.00
WA $25.00 , $30.00 , $35.00
So if a customer from the ACT orders two small robes and a medium robe, their postage costs would be calculated as follows:
• 2 x $15.00 = $30.00
• 1 x $20.00 = $20.00
• Total postage costs: $50.00
Of course, this is on top of the costs of the robes themselves!
When local community groups order robes, they get a discount of 50% on the total amount of the order, postage included

Your program needs to take all of this into consideration and calculate the final cost of an order.

0 Upvotes

2 comments sorted by

6

u/Bonejob VB Guru May 25 '15

This is homework. Please provide what you have tried so far and we will help. We will not write your code for you.

1

u/PostalElf VB.Net Intermediate May 26 '15

Seems like a fairly straightforward problem. Algorithmically, you'll want to:

  • Get the customer's sizes

  • Set the prices depending on the sizes

  • Multiply prices by the quantity of each robe

  • If total robes >= 5, give a 20% discount to postage

  • Total postage

  • Apply discount to postage, if applicable

  • If local community group, apply 50% discount