Part 1
Examine the pseudocode sample provided, and explain what it does line by line.
Description: This logic applies a discount on an item price
Program: applyDiscount
Create variable productPrice as double
Create variable discount as double
Create variable discountedPrice as double
productPrice = get value from user input
discount = get value from user input
discountedPrice = productPrice * (1 - discount)
Display discountedPrice
End program
Part 2
Present a solution using pseudocode similar to what you saw in Part 1 to identify the logic needed to capture the information for a
credit card payment.
Declare all variables and their data types.
Get user inputs for credit card information such as card number, expiration date, and CVV code from the back of the card.
Print the captured information to the screen.