subject

Write a program for the following scenario. It should take between 30 minutes to 1 hour to write this code. Your code needs to process an order placed by a user. Order is for a single product. Check inventory of the product from a persistent store. bool Check Inventory(string productId, int qty) If there are enough quantities in the store, a. Call a 3rd party payment service to verify the credit card info. For simplicity assume incoming Order contains user's credit card. Payment gateway has the following service interface. Every time we call this interface they charge us a fee! bool ChargePayment(string credit Card Number, decimal amount) b. Send an e-mail to shipping department instructing them to ship the order. Do not send real emails, while running your tests. You are expected to write unit tests. Do not write full scale implementations for data access, web services.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:00
The following function returns a string of length n whose characters are all 'x'. give the order of growth (as a function of n) of the running time. recall that concatenating two strings in java takes time proportional to the sum of their lengths. public static string f(int n) { if (n == 0) return ""; if (n == 1) return "x"; return f(n/2) + f(n - n/2); } options: a) constant b) logarithmic c) linear d) linearithmic e)quadratic f)cubic g) exponential
Answers: 2
question
Computers and Technology, 22.06.2019 18:10
Assume that to_the_power_of is a function that expects two int parameters and returns the value of the first parameter raised to the power of the second parameter. write a statement that calls to_the_power_of to compute the value of cube_side raised to the power of 3 and that associates this value with cube_volume.
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
What are some websites that you can read manga (ex: manga rock)
Answers: 1
question
Computers and Technology, 24.06.2019 17:30
List at least one thing to check for when you're checking the clarity and professionalism of a document.
Answers: 1
You know the right answer?
Write a program for the following scenario. It should take between 30 minutes to 1 hour to write thi...
Questions
question
Mathematics, 26.10.2020 04:40
question
Mathematics, 26.10.2020 04:40
question
Mathematics, 26.10.2020 04:40
Questions on the website: 13722361