Write a java program to read from a file called "input.txt". The file includes name price for unknown number of items. The file is as the sample below. The program should print on Screen, the following:
Write a java program to read from a file called "input.txt". The file includes name price for unknown number of items. The file is as the sample below. The program should print on Screen, the following:
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 9PE
Related questions
Question
Solve using Java
![Write a java program to read from a file called "input.txt". The file includes
name price for unknown number of items. The file is as the sample below.
The program should print on Screen, the following:
- Total number of items
The items (name, and price) for all items with price increased by 10%.
o Hint: new price = old price + old price*10/100;
Input.txt
Table 30.500
Chair 100.00
Output on Screen
Number of items = 25
Items with new price:
Table 33.550
Chair 110.000](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F05de28d5-dfc6-4fe7-8564-b78f358ec135%2F1c9bf325-3e51-437e-ac40-77c3935d5b84%2F30m7wsu_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Write a java program to read from a file called "input.txt". The file includes
name price for unknown number of items. The file is as the sample below.
The program should print on Screen, the following:
- Total number of items
The items (name, and price) for all items with price increased by 10%.
o Hint: new price = old price + old price*10/100;
Input.txt
Table 30.500
Chair 100.00
Output on Screen
Number of items = 25
Items with new price:
Table 33.550
Chair 110.000
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning