hi
Im trying to write a program to store info on books (title, author, number of pages and price) i have a class for books that works and the program accepts input from the user correctly but my problem is that it has to throw a exception when the price is higher than 10 cents per page and i cant figure out how to do this . Any help would be appreciated .

Ketsuekiame commented: Pure laziness. A simple google of the problem would have told you immediately. +0
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.