Answer:
C. 40
Explanation:
The code uses IF and ELSE statements to carry execute a block of code if any of the statements hold true
OrderTotal here is greater than 100, and this allows the second IF ELSE block to be executed.
The code to be executed is discountAmount = OrderTotal * 0.2
This will be discountAmount = 200 *0.2
therefore, discountAmount = 40.
Answer:
The answer to this question is given below in the explanation section.
Explanation:
Most business applications and websites use and process the credit card for their transaction.
For example, e-commerce website such as ali baba, am a zon, accepting credit card transaction when the customer gets to purchase any product from their stores. Their transactions are processed by in house credit card apps/service. But these apps/services owned by a third party. They just give you API services and related code to integrate the credit card services.
By using their in-house credit card apps/services, they know that user has transferred the money into their account for the purchased product, upon receiving payment confirmation, they then prepare and dispatch the order.
So, the correct answer to this question is:
To process the credit card transactions, they license third-party credit card apps/services backed by the internet merchant who is responsible for handling and managing the money of the business account.
Answer:
public: virtual void print()=0;
Explanation:
An abstract class contains a pure virtual function. Pure virtual class cannot be instantiated but it can be subclassed and the subclass can provide an implementation of the function.
A virtual function declaration in the class is preceded by the virtual keyword. For example, virtual void print();
A pure virtual function declaration is followed by '=0;'
public: virtual void print()=0;