The details given indicate that there is to be a net profit of 10%.
Your code seems to allow for a net profit of zero percent. Your code is working out how much markup to apply to the goods to break even. You're not meant to be breaking even. You're meant to calculate how much to charge to make a profit.
As you have now discovered, programming is thinking. It's thinking about the problem and the context, understanding it, and then efficiently solving it in a way that can be expressed programatically. The bit at the end, when syntax is typed in, isn't the programming bit. That's just writing. Programming is thinking.
So, if I add up all the expensive and times it by 1.10
E * 1.10 --> Price marked up for Profit
Then if I do
E * .15 (markup up amount)
Then add that to the profit
Profit + markup
This is what I came up with... not sure if it makes any sense. Going to try it out in a bit, but I am at work typing this during my break. By the time I get off, this assignment would be due in the next 30 min from then
ahhhhh some save me lol. It's been like 4 days hahah man I suck.