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 19:20
1)consider the following code snippet: #ifndef book_h#define book_hconst double max_cost = 1000.0; class book{public: book(); book(double new_cost); void set_cost(double new_cost); double get_cost() const; private: double cost; }; double calculate_terms(book bk); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_cost should be removed since header files should not contain constants.c)the definition of book should be removed since header files should not contain class definitions.d)the body of the calculate_terms function should be added to the header file.
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
How to launch an app: steps to be successful? launching an app is a great idea, but it’s not that easy as we supposed to think. the majority of mobile applications don’t generate revenue because companies aren’t ready to be competitive. referring to our experience in successfully building and launching apps we hope to you omit these difficulties. we are going to talk about ideas, marketing, testing your product, its development, distribution and support. you will learn 8 product launch stages to succeed.
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
How much current flows through the alternator brushes? a. 2–5 a b. 25–35 a, depending on the vehicle c. 5–10 a d. 10–15 a
Answers: 2
question
Computers and Technology, 23.06.2019 20:10
Leo is a recruitment executive for a large company. he has identified new labor resource requirements in both the marketing and production departments. what should be his first step in recruiting candidates for the positions? a. conduct background checks of candidates b. make job offers c. arrange interviews d. conduct reference checks e. place job ads on job sites
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, 08.04.2020 05:53
question
Computers and Technology, 08.04.2020 05:53
question
Mathematics, 08.04.2020 05:53