#include <iostream>
#include <string>
using namespace std;
struct bookType
{
long ISBN;
string Title;
float price;
};
int countBooks (bookType *list, int size) {
int count = 0;
for (int i = 0; i < size; i++)
if (list[i].price > 30.0) count++;
return count;
}
int main () {
bookType *p;
int size;
cout<<"Array Size = " ;
cin>>size;
p = new bookType [size];
cout<<"Price : " <<endl;
for (int i = 0; i < size; i++)
cin>> p[i].price;
cout<<"Number of books > 30 = " << countBooks(p,size)<<endl;
system ("pause");
return 0;
}