Home / Expert Answers / Computer Science / write-a-program-to-calculate-hostel-fee-for-student-the-hostel-has-different-types-of-rooms-with-pa753

(Solved): Write a program to calculate hostel fee for student. The hostel has different types of rooms with ...



Write a program to calculate hostel fee for student. The hostel has different types of rooms with different rates. This progr

Write a program to calculate hostel fee for student. The hostel has different types of rooms with different rates. This program should be able to display a report that contains the fee that will be charged to the student based on types of the room. The student must stay in the hostel for ONE year (two semester). (i) Write a setDetails() method that can receive input from user to store students information. (ii) Write a setRoom() method to receive user selection of room. (iii) Write a selectRoom() method that determined the payrate for selected room type. (iv) Write a displayTotal() method to calculate the room fee for one year and display the report onto screen. (v) Write a default constructor for this program. This constructor will call appropriate method to store information from user. (vi) Write a separate program which contain a main method. Instantiate an array of objects and invoke appropriate methods to calculate room fee for 5 different students.


We have an Answer from Expert

View Expert Answer

Expert Answer


Problem statement: Write a
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe