Convert the algorithm in pseudocode


Convert the algorithm in pseudocode below to syntactically correct C++ code. 
CalculateTotalCost
Display instructions
Get numberOfUnits
If numberOfUnits > 100 then
discountRate = .5
else if numberOfUnits > 50 then
discountRate = .33
else if numberOfUnitis > 25 then
discountRate = .1
else
discountRate = 0
end if
cost = 99 * numberOfUnits
totalCost = cost - cost * discountRate
display numberOfUnits, discountRate, cost and totalCost
End

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Convert the algorithm in pseudocode
Reference No:- TGS085048

Expected delivery within 24 Hours