Is there a way to take the value of checkbox?

Is there a way to take the value of checkbox?

I need to design a form using checkbox.

activity:
abc/$100
cde/$200
xyz/$123

i need to count the total price of activity?
How can i take the input of selection of checkbox on validate?