Assume a computer store gives a 5% discount for all students of purchases under $50, 10% discount to students whose total purchase is between $50 and $99, and 15% on purchases of $100 or more. Write a pseudocode algorithm that will print the amount of money owed. Use structured pseudocode as demonstrated in the lectures for code, ensure all variables are declared, prompt the user for the appropriate input, and display a meaningful output message. Make sure that the total purchase is greater than 0
Comments
Leave a comment