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

  Describe and assess the evaluation method by the testing

Describe and assess the evaluation method being used by the testing company, i.e., nonvisual and verbal recording of browser activities and tester's vocal comments.

  Optimum solution without scaling the design variables

Develop an optimization problem for which you do not obtain the optimum solution without scaling the design variables.

  Unique ids of network adapters

Network adaptors are manufactured by many companies in many countries. How can these companies ensure no two adaptors will have the same MAC address?

  Determine gradient magnitude and gradient direction of image

Consider the sub-image. Determine gradient magnitude and gradient direction at center entry using following operators.

  Users complain about slow network access

Business uses all hubs. Users complain about slow network access. Write a business case memo to the owner justifying the purchase of switches to replace the hubs. 2pages

  Terms of their average negotiation profit

For each month in 2014, display the total profit (i.e. using the attributes purchasedPrice and agreedPrice) generated from car sales only. Do not consider any discounts.

  Monitoring systems section of lecture

In the Monitoring Systems section of this lecture (attached), we mentioned that: It should be noted that these example protocols are not really related to computer systems.

  What three groups of people at the law firm

The law firm of Dewey, Cheatham, & Howe is considering the implementation of a new information system. To that end, they have hired your firm to perform the Systems Analysis process. They understand that a successful system must be aligned with th..

  The iss clinic investment in electronic medical records

Do you think that the ISS Clinic investment in electronic medical records added value for the organization? How would you recommend measuring this "value"

  Difference between interactive processing and real-time

difference between interactive processing and real-time processing?

  The complete procedure for enabling windows

The complete procedure for enabling Windows Remote Management and executing a command that uses the adatumAdministrator account to create a local user account for a user called Mark

  Analysis of decision-making process

While analyzing your decision, keep in mind that everything from the interest rates to the price of gasoline is driven by the economy in one way or another.

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