1. Engineering
  2. Computer Science
  3. implement the it less than gt greater than andeq equal...

Question: implement the it less than gt greater than andeq equal...

Question details

Implement the It_ (less than), gt (greater than) and_eq_ (equal) operators. You will be comparing the total cost of the lists in these operators. You cannot change the method declarations. >>> originallist-GroceryList) >>> originalList.readListFromFile (gr.txt) True >>>secondList-GroceryList () >>> secondLǐst.readListFromFile(gr.txt) True >>> originalList.getTotalcost () 30.86 >>> secondLǐst.getT talco s t() 30.86 >>> originalList secondList True >> originalList<secondList False >>> originalList>secondList False >>>originalList.multiplyAllItemsCount (2) True >> originalList.getTotalcost () 61.72 >>> secondLǐst.getTotalCost() 30.86 >>> originalし1st-secondList False >>> originalList<secondList False >>>originalList>secondList True
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution