Where did i mess up (programming) ?
-
computing the price of an item on sale for 20% off start input origPrice set discount = price * 0.20 set finalPrice = origPrice - discount output final stop
-
Answer:
You should output finalPrice since that's what you've calculated. +add Also, you have a origPrice and a price. Decide which identifier you want to use.
poopedyp... at Yahoo! Answers Visit the source
Other answers
I also don't know what language that is but it is probably possible to make it simpler as in: start input origPrice set finalPrice = origPrice * .80 output finalPrice stop Or maybe: start input origPrice output origPrice * .80 stop
It would be helpful to know the language you are using to program this.
Related Q & A:
- Where can I buy Dr Dobbs journal and other programming magz in Malaysia?Best solution by Yahoo! Answers
- Where can I take an online programming aptitude test/exam?Best solution by Stack Overflow
- How can I get into programming?Best solution by cplus.about.com
- Where can I learn about computer programming?Best solution by Yahoo! Answers
- Where can I find a computer programming internship?Best solution by ChaCha
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.