Question: Needs to be written in Java using only material covered in chapters 1-6 of textbook Introduction to Java Programming and Data Structures by Y. Daniel

Needs to be written in Java using only material covered in chapters 1-6 of textbook Introduction to Java Programming and Data Structures by Y. Daniel Liang. An image of this textbook is attached.  Needs to be written in Java using only material covered in
chapters 1-6 of textbook Introduction to Java Programming and Data Structures by
Y. Daniel Liang. An image of this textbook is attached. Part II.

Part II. (80 pts.) Write a program to solve the following problem. Name the Java program ASYourName ava (use your own name) and upload this file to Blackboard Assignment #5 link. File bookorders.txt on Blackboard contains some unknown number of lines of book data 2 bookonders.tud- Notepad listing a book title, ISBN number, course, and Fite dr mat View Help number currently enrolled Introduction to Spreadsheets 978-1-269-50982-4 COS183 An ISBN uniquely identifies a book. It is a 1345 digit code though may contain dashes (-) as separators in various positions. The 13h digit is called the check digit and must satisfy the following algorithm. If the computed check digit does not match the listed digit, a transmission error may have occurred. An Introduction to Programming using Visual Basic 978-8-13-4542782 COS120 Introduction to Java 978-8-13-467894-2 COS125 95 The calculation of an ISBN-13 check digit begins with the first 12 digits of the thirteen-digit ISBN (thus excluding the check digit itself). Each digit, from left to right, is alternately multiplied by 1 or 3, then those products are summed modulo 10 to give a value ranging from 0 to 9. Subtracted from 10, that leaves a result from 1 to 10. A zero (0) replaces a ten (10), so, in all cases, a single check digit results For example, the ISBN-13 check digit of 978-0-306-40615-? is calculated as follows: s=9x1 + 7x3 + 8x1 + 0x3 + 3x1 + 0x3 + 6x1 + 4x3 + 0-1 + 6x3 + 1+1 + 5x3 9+218+0 3+ 0+6 12+18+115 93 93 / 10 = 9 remainder 3 10 Thus, the check digit is 7, and the complete sequence is ISBN 978-0-306-40615-7 This program will read each line of data, report the data as shown to the screen (or file) and compute the number of books to order. Invalid ISBN numbers are flagged. Book order Progr by student Course cosies CO5120 COS125 Cos213 COS220 COS221 COS235 COS312 COS331 Enrollment Title Introduction to Spreadsheets ISSN 9781269509824 #ToOrder 50 Introduction to Progroming using visual Basic 97881 34542782 95 110 96 Introduction to Dava Succeeding in Business with Microsoft Excel Introduction to Programing with CH Data Structures and Algorithes in C+ Computer Organization and Architecture Gane Graphics Programming Operating Systems 9780134678942 9781255099149 9788133252811 INVALID ISBN INVALID ISBN INVALID ISBN INVAL EO ISBN 92 52 52

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!