I am very new to C++ programming and any other programming. I have written below code to return the value with sign based on indicator value, If indiccator is Y, programme should written +Amount or else -Amount.
Could you please assist with feedback or provide me the correct code if it is wrong.
AmountSign returns double value, with sign depending on the second parameter, if you want to output this value like "+Value" or "-Value", you need to use code, written in main (you can put it somewhere else). main only inputs the value and the char, after that outputs it in needed format (with sign in front of it).