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:

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 9PE
icon
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
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
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Constants and Variables
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning