/*
Sample Shopping Cart:
ItemId Name Unit Price Quantity
1 iPhone 1000 2
2 iPad 600 1
3 iWatch 400 1
4 Airpods 150 2
5 Pixel 500 3
The above is a sample shopping cart of an Ecommerce website. You are tasked to create the following functions to server shopping cart functionalities.
1) Write a function that calculates the total value of the cart.
2) Ability to apply a 10% off coupon to the whole cart
3) Ability to apply 15% off coupon to ONLY ONE of the highest valued item in the cart.
For example: In the above shopping cart there are two iPhones ordered and the 15% coupon must be applied to only one IPhone.
You don’t have to print any values in the console. Only the code to achieve the use cases above.
You are welcome to any .Net libraries and object oriented concepts.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
public class Program
{
}