Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 398 Weeks Ago, 3 Days Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 27 Aug 2017 My Price 12.00

pseudocode sample

Part 1

Examine the pseudocode sample provided, and explain what it does line by line.

 

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

discountedPrice = wholesalePrice

end if

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 select a payment option and get payment details.

  • Declare all variables and their data types.

  • Display two options for the user to select from:

    • Electronic check with routing number and account number

    • Credit card with account number, expiration date and CVV code

  • Capture the payment option that the user selects.

  • Check the selected option using a decision-making statement and provide the corresponding statements to capture the payment information based on the selection.

Answers

(5)
Status NEW Posted 27 Aug 2017 08:08 AM My Price 12.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll

Not Rated(0)