need help for my practicals

can someone please help me with this question!!
Define a class named Publisher in C++ with the following descriptions :
Private members
Id long
title 40 char
author 40 char
price , stockqty double
stockvalue double
valcal() A function to find price*stockqty with double as return type
Public members
->a constructor function to initialize price , stockqty and stockvalue as 0
->Enter() function to input the idnumber , title and author
->Takestock() function to increment stockqty by N(where N is passed as argument to this function) and call the function valcal() to update the stockvalue().
->sale() function to decrease the stockqty by N (where N is sale quantity passed to this function as argument) and also call the function valcal() to update the stockvalue
->outdata() function to display all the data members on the screen.


Topic archived. No new replies allowed.