Hello, I am a first year student studying programming with C++. As this is my first project, I will need some help or advice please.
I am using Microsoft Visual C++ 2010, and my error is in the output. No matter what way I word it, or even if I put in a double 0.2, the value for the netProfit always seems to never be correct. It should multiply the 0.2 and the grossProfit together but it only seems to subtract it rather than multiply. This is extremely frustrating and I would greatly appreciate any help. The following is my program:
string movieName; // name of the movie
double netProfit; // theater's net profit
double grossProfit; // theater's gross profit
double distributorAmt; // amount paid to distributor
int adultTickets; // number of adult tickets sold
int childTickets; // number of child tickets sold