I need Help with a self assesment i cant seem to understand.

question:
Write a function named tax() that accepts an amount of Rands and a tax rate as formal Parameters and returns the tax due on amount. For example, if the values 100.00 and 0.06 are passed to function, the value returned should be 6.00, which is 100.00 * 0.06. Include the tax() function in a working program. The main () function should input the values, correctly call tax() and display the value returned by the function, all with appropriate messages.

I am having a hard time understanding parameters and functions I don't even know where to start.

Any help?
https://www.youtube.com/watch?v=tvC1WCdV1XU&list=PLAE85DE8440AA6B83&ab_channel=thenewboston

Video 9-11 has tutorials of functions, functions with one parameter and functions with multiple parameter.

After watching these videos, and maybe something else of that playlist that you dont understand. Start coding, get started with literally anything. Then post it here, with code tags http://www.cplusplus.com/articles/jEywvCM9/

And I'll help you out :)

If you prefer reading, here is about functions - http://www.cplusplus.com/doc/tutorial/functions/
Topic archived. No new replies allowed.