Exam4Training

You have implemented a simple bookshop CAP application for the purpose of selling books. You want to implement an event handler in the bookshop-service, that calculates a discount of 10 % on the price of books written in English ("en"). In all other cases, you want to calculate a discount of 5 %. The price should be calculated after books are read from the service. Drag the code snippets from below into the correct parts of the event handler implementation

DRAG DROP

You have implemented a simple bookshop CAP application for the purpose of selling books. You want to implement an event handler in the bookshop-service, that calculates a discount of 10 % on the price of books written in English ("en"). In all other cases, you want to calculate a discount of 5 %. The price should be calculated after books are read from the service. Drag the code snippets from below into the correct parts of the event handler implementation.

Drag the key and value items from below into the correct parts of the descriptor file.

Answer:

Explanation:

‘bookshop-service’, after, ‘READ’, forEach, ‘book.language == ‘en’, ‘book.price = book.price * 0.95, book.price= book.price * 0.9

Latest C_CPE_13 Dumps Valid Version with 80 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version