assignment 8 week 4
Assignment 8a Display the content of the array with a for eachloop
The product AndGate has the cost of 0.05 euro Cent
The product OrGate has the cost of 0.03 euro Cent
The product Buffer has the cost of 0.01 euro Cent
The product Exor has the cost of 0.02 euro Cent
The product NandGate has the cost of 0.09 euro Cent
Addignment 8b Calculate the total price of all products in the array
The total cost the sum of all products is 0.2
Assignment 8c : add a addional product to the aCost array.
The product AndGate has the cost of 0.05 euro Cent
The product OrGate has the cost of 0.03 euro Cent
The product Buffer has the cost of 0.01 euro Cent
The product Exor has the cost of 0.02 euro Cent
The product NandGate has the cost of 0.09 euro Cent
The product NorGate has the cost of 1 euro Cent
Assignment 8d: sort the array from low to high prices.
sorted array:
The product Buffer has the cost of 0.01 euro Cent
The product Exor has the cost of 0.02 euro Cent
The product OrGate has the cost of 0.03 euro Cent
The product AndGate has the cost of 0.05 euro Cent
The product NandGate has the cost of 0.09 euro Cent
The product NorGate has the cost of 1 euro Cent