Question: Java Write a method to calculate the number of chapters in a book. Use integer division (since there are no partial chapters) but allow the

Java

Java Write a method to calculate the number of chapters in a

Write a method to calculate the number of chapters in a book. Use integer division (since there are no partial chapters) but allow the last chapter to be up to 39 pages (integer division will do this for you, you do not have to do any fancy math). So if your book has 763 pages, your method should return 38 chapters, and you can assume the last chapter has 23 pages in it

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!