The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
**1-2 Pages
Examine the pseudocode sample provided, and explain what it does line by line.
Click here to access the sample. (ATTACHED)
Present a solution using pseudocode similar to what you saw above.
Â
Unit 5 Pseudocode SampleDescription: This function applies discount percentage on an itemprice unless the item price is less than the whole sale price. Forexample, a product at $10 with a wholesale price of $5 and a discountof 10% returns $9.function applyDiscount(productPrice : Double,wholesalePrice : Double,discount : Double)Return DoubleCreate variable discountedPrice as doublediscountedPrice = productPrice * (1 – discount)if (discountedPrice < wholesalePrice)discountedPrice = wholesalePriceend ifreturn discountedPriceEnd function
Attachments:
-----------