im basically trying to make a driver program. So i made a function but having trouble calling the function. Help with the cout statement outputting the amount in dollar form such as $2.00 or $3.45. The set precision and show point isnt working for me. thanks
When you invoke a function, you're supposed to pass a value equivalent of the type specified. For instance, you've specified that calculateRetail() takes 2 floating-point numbers. So when you call that function, you pass it two floating-point values, like so:
The project says to write a function that receives the wholesale cost and percentage as arguements and returns the retail price of the item. so i wont know what the values are until the user inputs the info. so when i enter 5 or 5.00 and 50 for teh percentage it only displays 7.5 instead of 7.50