I need to write a VB program which takes customer type, number of books purchased and cost of each book as an input.Then calculate the total sum after deducting discount that is to be paid by customer. Note that it needs to show both the total before discount and after discount.

There are 2 types of customers:

Individual and Educational.

if customer is individual then disc is as follows

If (numberbooks < 5) Then discount = 0

If (numberbooks > 4 And numberbooks < 25) Then discount = 15

If (numberbooks > 24) Then discount = 25

If customer is educational then

If (numberbooks < 5) Then discount = 5

If (numberbooks > 4 And numberbooks < 15) Then discount = 10

If (numberbooks > 14 And numberbooks < 25) Then discount = 15

If (numberbooks > 24 And numberbooks < 50) Then discount = 20

If (numberbooks > 49) Then discount = 30