P.S: This is just a study guide. The questions may not appear exactly like this.
1. Assume you are given the following If structure.
Assume that X = 15, Y = 20, and Z = 20. What will be the output?
2. Assume you are given the following If structure.
Assume that R = 6, S = 5, and T = 6. What will be the output?
3. Write a pseudocode algorithm for a computer store that inputs the type of customer and the amount of the purchase, and will print the discount amount and the amount of money owed. Assume the store gives a 5% discount for all students on purchases less than $50, a 10% discount to students whose total purchase is between $50 and $99, and 15% on purchases of $100 or more. Nonstudents do not get a discount. Use structured pseudocode as demonstrated in the lectures for code, ensure that 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.