#P296. 【例50.2】 计算书费
【例50.2】 计算书费
Description
Below is a price list for books:
- Introduction to Computing yuan/book
- Data Structures and Algorithms yuan/book
- Digital Logic yuan/book
- C++ Programming Tutorial yuan/book
- Artificial Intelligence yuan/book
- Computer Architecture yuan/book
- Compiler Principles yuan/book
- Operating Systems yuan/book
- Computer Networks yuan/book
- JAVA Programming yuan/book
Given the quantity of each book purchased, calculate the total cost.
Input Format
One line containing integers (between and inclusive), representing the quantity of each book purchased: "Introduction to Computing", "Data Structures and Algorithms", "Digital Logic", "C++ Programming Tutorial", "Artificial Intelligence", "Computer Architecture", "Compiler Principles", "Operating Systems", "Computer Networks", and "JAVA Programming". The integers are separated by spaces.
Output Format
One line containing a floating-point number , representing the total cost, rounded to one decimal place.
Sample
1 5 8 10 5 1 1 2 3 42140.2
Related
In following homework: