Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

There is already a file called BookRecords in your system ( inside your project folder ) which holds the details of some Books and their

There is already a file called "BookRecords" in your system (inside your project folder) which holds the details of
some Books and their Prices and how many copies Sold.
It holds the following details: (you don't need to write code for writing to the file)
In The main method of Testing Class:
Now read the "BookRecords" file to find out:
(Note: Don't just use your own eyes to read the file.)
Print The name of the most popular book in the file and who wrote it.
Print how many WriterName (unique, excluding the duplicates) are there in the file?
Make a Writer class object for WriterName = "Ayon". And print his TotalEarning?
So, What is TotalEarning =??
Suppose, for one Writer, his/her total number of PublishedBooks =3.
1st book price is =10 and sold =5 copies. So total selling for Book 1=105=50.
2nd book price is =5 and sold =3 copies. So total selling for Bookl =53=15.
3rd book price is =100 and sold =7 copies. So total selling for Book 1=1007=700.
So, for this writer, total selling =50+15+700=765.
A writer gets 15% of total selling.
So, that writer's TotalEarning =15% of 765
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

Students also viewed these Databases questions