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:20
Usually, when we sniff packets, we are only interested certain types of packets. we can do that by setting filters in sniffing. scapy’s filter use the bpf (berkeley packet filter) syntax; you can find the bpf manual from the internet. set the following filters and demonstrate your sniffer program again (each filter should be set separately): (a) capture only the icmp packet. (b) capture any tcp packet that comes from a particular ip and with a destination port number 23. (c) capture packets comes from or to go to a particular subnet. you can pick any subnet, such as 128.230.0.0/16; you should not pick the subnet that your vm is attached to.
Answers: 3
question
Computers and Technology, 23.06.2019 16:30
20 points archie wants to use a reflector as he photographs a newlywed couple. what would he consider in his choice? a. shadow and sunny b. homemade and professional c. lamps and boards d. incident and reflected e. neutral density and enhancement
Answers: 3
question
Computers and Technology, 24.06.2019 02:50
Be sure to answer all parts. synthesize the following compound from benzene. a. b. c. d. e. f. reaction [1] conditions: a b c d e f reaction [1] product: draw structure reaction [2] conditions: a b c d e f reaction [2] product: draw structure reaction [3] conditions: a b c d e f reaction [3] product:
Answers: 3
question
Computers and Technology, 24.06.2019 03:00
What is one potential problem associated with an organization purchasing new technology early in its lifecycle
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, 31.03.2021 23:20
question
Mathematics, 31.03.2021 23:20
question
Mathematics, 31.03.2021 23:20
question
Mathematics, 31.03.2021 23:20
Questions on the website: 13722367