Part onenbspnbsp description this logic applies a discount


PART ONE:   Description: This logic applies a discount on an item unless the discounted price is less than the whole sale price Program: applyDiscount  Create variable productPrice as double Create variable discount as double Create variable wholesalePrice as double Create variable discountedPrice as double productPrice = get value from user input discount = get value from user input wholesalePrice = get value from user input      discountedPrice = productPrice * (1 - discount)      if (discountedPrice < wholesalePrice)         discountedPrice = wholesalePrice      end if  Display discountedPrice End program 

PART TWO : 

Present a solution using pseudocode similar to what you saw in part 1.

  • Identify the logic needed to select a payment option, and get payment details.
  • The logic needs to capture the payment option from the user.
  • Two options should be available for the user to select from:
    • Electronic check with routing number and account number
    • Credit card with account number, expiration date and CVV code
  • The logic should check the selected option using a decision-making statement and provide the corresponding statements to capture the payment information based on the selection.

Solution Preview :

Prepared by a verified Expert
Business Management: Part onenbspnbsp description this logic applies a discount
Reference No:- TGS01255487

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)