College Program Assignment (Program with classes)
$30-5000 USD
Pagado a la entrega
Imagine a publishing company that markets both book and audiocassette versions of its works. Create a class Publication (base class) that sotres the title (a string) and price (type float) of a publication. Drom this class derive two classes: Book, which adds a page count (type int); and Tape, which adds playing time in minutes (type float). Each of these three classes should have a getData() function to get its data from the user at the keyboard, ad a putData() function to display its data. Write a main() program to test the Book and Tape classes by creating instances of them, asking the user to fill in data with getData(), and then display the results with putData.
## Deliverables
The file for the main() program must have a header that contains the following information. Program Title, Date, Details:Input(what input is required for this segment to accomplish its task and the input data types and variable names.) Output(What output does this code segment produce and the output data types and variable names) Intermediate variables (used for holding or computing intermediate results, intermediate data types and variable names) Global Variables (Global data types and varable names or None) Design: A description of the algorithm(s) or logic used in the design of the program. Steps used to create the program solution. (Include any neccessary explanations to understand the program)
## Deadline information
This program must be completed by july 8th because it is due for class on July 9th.
Nº del proyecto: #2823625