/**
 * CS1010 AY2011/2 Semester 2 Lab2 Ex4
 *
 * book.c
 * <Fill in a description of this program>
 *
 * <Type your name here>
 * <Type your discussion group here>
 */

#include <stdio.h>

int main(void)
{
    double initialPrice,    // initial price of a book
           finalPrice;      // final price of a book

    int numEdition1 = 0,    // number of books of edition 1
        numEdition2 = 0,    // number of books of edition 2
        numEdition3 = 0,    // number of books of edition 3
        numEdition4 = 0,    // number of books of edition 4
        numEdition5 = 0;    // number of books of edition 5


    printf("Enter number of books: ");


    for (...)
    {
        // read info. of a book
        printf("Book %d\n", i);
        printf("\tEdition: ");


        printf("\tYear of publish: ");


        printf("\tInitial price: ");


        // calculate final price of a book
        // 1. If the depreciated price falls below $20, restore the final
        //    price to $20;
        // 2. If the initial price is below $20, then keep the final
        //    price the same as the initial price.






        // print out final price of a book
        printf("\tFinal price: %.2f\n", <complete your code here>);


        // update edition statistics






    } // end of for loop


    // print out edition statistics







    return 0;
}

