Hey guys, here is task number !
As you can see, the name of this is CASHIER.
Plarry the Dinosaur has finally found a job as a cashier! (yay) However, the thing is, he is terrible at mental sum and wants you to write a code to help him in calculating the cost of items.
First line inputs n.
Next n lines input the cost of the ith item.
This line inputs x.
The next x lines are the items the purchaser bought, the number i representing the ith item.
The total cost of all the items.
Explanation for output:
The 1st item costs 0.25 dollars and the 3rd item costs 10.01 dollars. Thus, the total cost is 10.26 dollars.