Keeping things simple

Keeping things simple with a couple easy Windows Form Applications, so once I got past the first problem in - the last post of working out how to get the text box strings to integers so I could do the sum on them, it all flew together for these basic math problems.

Here is a list of problems I was working off.

  1. A delicatessen sells cold cuts by the pound. Write a program which calculates the customer’s bill after accepting the pounds purchased and price per pound.

priceperkg.PNG

  1. Find the cost of broadloom given the length and width of a room in metres. The cost of
    the broadloom is $12 per square metres.

refloor.PNG

  1. Write a program to calculate the percentage markup for any store item, given the cost and
    the selling price.

Markup.PNG

  1. Write a program which accepts a salespersons sales for one week and then determines the
    commission. Commission is 14% of sales.

Commision.PNG

This one I want to revisit and find away so the user can enter how much commission they should be claiming from their sales. Currently I’m not sure how to work that bit out, as the user will enter a % in an integer instead of a decimal number so for 14% commission the math needs to make that number 0.14%. Will come back and look at this at a later date.