Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions