I just want to understand

Hey guys please help me with this assignment we were given the other day.
I have yet to understand since my lecturer was too fast.
Would appreciate your feedback.

Kambo Company pays employee gratuity on retirement that can be computed using the formula: Gratuity = (Salary x Fixed Rate x Number of Years Worked) + One Month Salary. Formulate an Algorithm that can be used to calculate the gratuity and write a C++ program that can be used for the computation
Hello Dero8080,

Start with a simple main function. Add some variables you can get variable names form this:
Gratuity = (Salary x Fixed Rate x Number of Years Worked) + One Month Salary
. For a start this looks like all the variables you will need or at least 90%+.

Then add any input that you might need.

Use the above formula to calculate "gratuity" and print it to the screen,

It is not a mistake use lower case letters to start a variable name. And something like Years Worked would be "yearsWorked".

Hope that helps,

Andy
Hello Andy,

Thanks for the response.

Let me try if I get stuck I will let u know
Topic archived. No new replies allowed.