Identify the logic needed to select a payment option

Assignment Help Basic Computer Science
Reference no: EM131073416

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.

Reference no: EM131073416

Questions Cloud

How you might overcome your weaknesses : Using what you know about a philosophy statement and the information you learned from your self-assessments, self-reflection, feedback from others, and your general self-knowledge, you will produce a first person professional philosophy statement ..
Calculate the impact of the exhibit on company profit : Infinity Designs, an interior design company, has experienced a drop in business due to an increase in interest rates and a corresponding slowdown in remodeling projects. To stimulate business, the company is considering exhibiting at the Home and Ga..
Service department cost allocated to production department : Motorcade Company has three service departments (S1, S2, and S3) and two production departments (P1 and P2). The following data relate to Motorcade's allocation of service department costs: The number of employees is used as the allocation base for a..
Problem regarding the leadership and motivation : You were recently appointed as a new manager.  You face a number of issues in your new position.  Please address each. The previous manager used a transactional leadership approach, which has been relatively ineffective. Evaluate one leadership sty..
Identify the logic needed to select a payment option : Examine the pseudocode sample provided, and explain what it does line by line.
Methods of improving both by analyzing customer needs : Given the importance of customer satisfaction and loyalty, apply methods of improving both by analyzing customer needs, gathering customer information, using surveys, complaint resolution, and customer relationship management.
What should be the price of the stock today : Namath Corporation's stock is expected to pay a dividend of $1.25 at the end of the year. The dividend is expected to grow by 20% for each of the following two years, and then at a constant rate of 8% per year, thereafter. The stock has a required re..
The dividend is expected to grow at constant rate : A company just paid a $2 per share dividend on its common stock (D0=$2.00). the dividend is expected to grow at a constant rate of 7 percent per year. the stock currently sells for $42 a share. if the company issues additional stock, it must pay its ..
Model links to customer expectations : The customer is always right." Do you agree or disagree with this statement? Support your answer with examples of how quality should be defined and how the Kano model links to customer expectations.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd