Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Note: please help me show fthe solution from the scratch. Input n read file Subject: java programming Pls show the result of the solution The
Note: please help me show fthe solution from the scratch. Input n read file Subject: java programming
Pls show the result of the solutionThe following data contains information of guest staying at Hotel B stored in a text file named guest.txt. Each line contains the guest's room no, the guest's name, the type of room, breakfast option, total price for room and date of stay. Write a Java program with a method that does the following: i) Reads the input file guest.txt and display the information onto the screen ii) Count the number of guests who opt "Yes" for breakfast in the file and display the result onto the screen. Input file (guest.txt) 1501 Salina Mohd Sani Deluxe Yes 240 16-17/01/23 812 Abdullah Muhd Ismail Family No 3502425/01/23 1105 Chan Lee Wei Suite Yes 485 23-25/01/23 210 Mohd Firdhaus Hussin Executive Yes 6202224/01/23 608 David Anand Ravi Executive Yes 8451417/02/23 1209 Timothy Lee Anderson Single No 1801819/02/23 Sample Output Guests with a "Yes" for breakfast: 4
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started