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.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
136 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.