Is it possible to mess up the programming in a universal remote?

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

Was this solution helpful to you?

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:

Just Added Q & A:

Find solution

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.