Professional Documents
Culture Documents
As per the questions, you are required to take the input from the user for the sales attribute
which includes Goods ID, Description, Price per unit and Quantity only.
4. View Total Sales, simply the sum of all total sales of goods.
5. View Sales Details, Operate for loop to print the values from an array of objects.
6. Exit, use System.exit(0) to exit a java program.
For reference:
1. https://www.geeksforgeeks.org/classes-objects-java/?fbclid=IwAR0bJsOP2YPKmSVzF8
p3ilgR8nj8IwKxH6T8IIm94nvZHm03f2izSTAMaUo
2. https://www.guru99.com/array-of-objects.html