Hello,

i have a question, im in first year university and i have to add Long term benefits to my program, here is the function that i have to add

Long term benefits are charged at $2 per every full $100 of gross weekly earnings to a max of $100 per week. eg $267 of gross pay would equal a $4 deduction.

was just wondering how i would do this calculation i am using pointers in a function, which i can do, i just for some reason cannot figure out a short way to do this. (50 if statements doesnt really work for me. lol)

thank-you

does anyone have any clue as to how this is done?

sorry, figured it out, i used the 'floor' command.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.