【问题描述】编写程序,从键盘输入n(n<10)本书的名称和定价并存入结构数组中,从中查找定价最高和最低的书的名称和定价,并输出
【输入形式】先输入书本数n(整型,n<10),再依次输入每本书的名称(字符串)和定价(实型)。
【输入输出样例】(下划线部分表示输入)
Input n:3
Input the name,price of the 1 book:C 21.5
Input the name,price of the 2 book:VB 18.5
Input the name,price of the 3 book:Delphi 25.0
The book with the max price:Delphi,price is:25.0
The book with the min price:VB,price is:18.5
【样例说明】
输出价格最高的书的名称和定价,再输出价格最低的书的名称和定价,格式为
The book with the max price:%s,price is:%0.1lf
The book with the min price:%s,price is:%0.1lf
标点符号全部为英文: