Question: In The main method of Testing Class: Now read the BookRecords file to find out: ( ote: Don't just use your own eyes to read

In The main method of Testing Class:
Now read the "BookRecords" file to find out:
(
ote: 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
1
I.
(
3
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Print how many WriterName
(
unique
,
excluding the duplicates
)
are there in the file?.....................
(
.
Make a Writer class object for WriterName
=
"Ayon". And print his TotalEaming?.................
(
8
.
)
So, What is TotalEarning=??
Suppose, for one Writer, his/her total number of PublishedBooks =3.
1s book price is-=10 and sold 5 copies. So total selling for Book1=10x5=50
2ad book price is 5 and sold=3 copies. So total selling for Book1=5x3=15.
3rd book price is=100 and sold =7 copies. So total selling for Book1=100x7=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

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!