2016-10: Order Total
Suppose you have a numeric vector that is the list of prices for a set of retail products.
You also have a numeric vector that is the number ordered of each product.
Write code that takes as its second argument a vector of prices and as its first argument a numeric vector that indicates the number ordered and returns the total cost for the order.
Examples
Implementation
You can also run the tests via ⌘/shift + enter