foudn it: cout << "\n"
<< computeTax(monthlytax); here you send monthlytax which is zero.. and that's why you get zero.. you need to send monthlyincome..
when you send something to other function, it's not necessarily what you want to be returned. it's just something you want to work with and the function can return something else depending on your needs. in that case you sent monthlytax but as you can see the value of it before you send it is NULL. because it's NULL than by this comand: yearlyincome = (monthlyincome * 12); your yearlyincome also became NULL, therefore you got zero all the time