i need help with this code...i know whats wrong, but i just need to know what i need to do to fix it. i dont want the answer, just what i need to do.
Code:#include<iostream.h> class GroceryItem { private: int stockNum; double priceEach; int quantity; double totalValue; void calculateTotalValue(); public: void setStockNum(); void setPriceEach(); void setQuantity(); void displayGroceryItem(); }; void GroceryItem::setStockNum() { cout<<"Enter the Stock Number: "; cin>>stockNum; }; void GroceryItem::setPriceEach() { cout<<"Enter the price: "; cin>>priceEach; }; void GroceryItem::setQuantity() { cout<<"Enter the quantity in stock: "; cin>>quantity; }; void GroceryItem::calculateTotalValue() { totalValue=priceEach*quantity; }; void GroceryItem::displayGroceryItem() { cout<<"Item #"<<stockNum<<" Price: "<<priceEach<<endl; cout<<"Quantity in stock: "<<quantity<<" Value: "<<totalValue; }; void main() { GroceryItem anItem; void setStockNum(); void setPriceEach(); void setQuantity(); void calculateTotalValue(); void displayGroceryItem(); anItem.setStockNum(); anItem.setPriceEach(); anItem.setQuantity(); anItem.calculateTotalValue(); anItem.displayGroceryItem(stockNum, priceEach, quantity, totalValue); }