Jump to content

flowchart with loop needed.Help me please

- - - - -

  • Please log in to reply
1 reply to this topic

#1
deme

deme

    Newbie

  • Members
  • Pip
  • 1 posts
:crying:Secondhand Rose Resale shop is having a 7 day sale during which the price of any unsold item drops 10% each day. The inventory File includes an item number, description, and original price on day one. For example, an item that costs $10.00 on the 1st day costs 10% less, or $9.00, on the 2nd day. On the 3rd day the same item is 10% less than $9.00 or $8.10. Design an application that reads inventory records and produces a report that shows the price of every item on each day, one through seven.

#2
DEViANT

DEViANT

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 358 posts
for each ( item ) do
= > for (day = 1; day <=7; day ++)
= = >print out (original price * (0.1 * day))

That would be how :) Nested Loops

:D You should rep+ me so that I can win :D

My Blog | Ask me!
Error : Satan did it




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users