Project 16 Profit equations

1 view
Skip to first unread message

Aaron Smith

unread,
Aug 2, 2011, 2:34:04 PM8/2/11
to BYU 142 Summer 2011
My stock and business profit methods returned negative numbers that
should have been positive, and they didn't seem to make sense, but
maybe I looked at them wrong, heres my new ones...

Rental
int profit = (monthlyRent * monthsRented) - repairCost-
purchasePrice ;

Stock
int profit = currentValue- purchasePrice;

Aaron Smith

unread,
Aug 2, 2011, 2:34:38 PM8/2/11
to BYU 142 Summer 2011
Are these right?? or am I doing something wrong?

Lane - TA

unread,
Aug 2, 2011, 2:51:22 PM8/2/11
to byu-142-s...@googlegroups.com
Those look right. I think Rob switched a couple things on accident when writing the lab, but what you put makes sense.

Adad64 - Adam Wilson

unread,
Aug 6, 2011, 1:08:35 AM8/6/11
to BYU 142 Summer 2011
I was just going to ask about that... :P
Reply all
Reply to author
Forward
0 new messages