Wednesday, May 6, 2020
Java programming of Rocky Budget Hotel - Myassignmenthelp.Com
Question: Discuss about the Java programming of Rocky Budget Hotel. Answer: Flowchart for checking Days Value validation Purpose The purpose of this java console application is to take user inputs from a number of customers who will check-in to the Rocky Budget Hotel. The customers must enter their name and the days they wish to stay. The application further checks if the user has actually entered a name and otherwise prompt an error message and continue input until the user enters a name. Then, the users days are entered and if it lies beyond the 1-14 range, then yet again an error message is displayed and the input process continues until the user enters a valid input. Further, the application outputs the charges applied per customer. Later, the statistical data of the hotel is displayed. General Discussion It took me about 2.5 hours to design and develop the whole program. However, I had to face quite a few tricky situations while writing the codes. One of the noticable issues that I had faced was that, on execution, the program was skipping the Name inputs in the loop. After spending some quality time on research, I noticed that there needed to be separate Scanner class objects for the integer and String inputs, and thus the problem was solved. Output Testing Screenshots General Discussion It took me about 2.5 hours to design and develop the whole program. However, I had to face quite a few tricky situations while writing the codes. One of thenoticableissues that I had faced was that, on execution, the program was skipping the Name inputs in the loop. After spending some quality time on research, I noticed that there needed to be separate Scanner class objects for the integer and String inputs, and thus the problem was solved.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.