This class defines an Exer object that can set and get item name and total cost attributes. It contains methods to set the item name and total cost based on quantity and price inputs, get the item name and calculate total cost, and read input and write output related to an item purchase including name, quantity, price, and amount due.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
132 views
Lab Exercise (Programming)
This class defines an Exer object that can set and get item name and total cost attributes. It contains methods to set the item name and total cost based on quantity and price inputs, get the item name and calculate total cost, and read input and write output related to an item purchase including name, quantity, price, and amount due.