1914: A Statistic of Books

内存限制:128 MB 时间限制:1.000 S
评测方式:文本比较 命题人:
提交:26 解决:17

题目描述

Define a book class which consists of three non-static data fields ,including "bookName"(the name of a book), "bookPrice"(the price of a book),and "bookNums"(the number of a book),and two static data fields, named serialNumber" which implements an automatic numbering started from 1 for each book, and "totalNums" (the total number of all books).

 Define the object array in the main method, and find the total number of books.

输入

There are several lines of input, and each line is the information of a book, including a book's name,a book's price, and the number of book.

输出

Output the information of all books according to the sample.

样例输入 复制

4
Flipped 79.8 20
Pride 49.8 2
living 35.0 2
happiness 69.0 1

样例输出 复制

The information of books:
1# Flipped 79.8¥ 20
2# Pride 49.8¥ 2
3# living 35.0¥ 2
4# happiness 69.0¥ 1
the total number is 25