Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 7 Online
OpenStudy (anonymous):

Write a pseudo-code of or flowchart that calculates the discount in a given scale. Assuming the rate is dependent on the quantity of items sold and determined by the table below. The program request the total sale amount as well as the number of items sold. Items ordered discount rate % first10 10 Next 15 10 Next 25 15 Next 30 20

OpenStudy (anonymous):

int itemsOrdered = 0; int discountRate = .10; int increment1 = .05; int increment2=.10; if (itemsOrdered <= 25){ discountRate; } elseif (itemsOrdered >25 && itemsOrdered <=30) { discountRate += increment1; } else{ discountRate += increment2 }

OpenStudy (anonymous):

Thanks

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!