pleas egive the source code. need it for college project. have tried it but it is not compiling. anyone who can help???????????
Posts: 8,059
Threads: 1
Joined: Mar 2014
java code silver blooms is a hostel in scholar s hub university campus under graduate students of university is given ac
1. Silver Blooms is a hostel in Scholar’s Hub University campus. Under graduate students of university is given accommodation in this hostel. Each room in hostel can accommodate 3 students. When a student joins the hostel a room is allotted to the student. Student’s preference is looked into while allotting a room. If the preferred room is not available, then the hostel allots any available room. The monthly rent is calculated on the basis of total expenses incurred in a month. The total expense is divided by the number of inmates to find the share of rent each person should pay. In addition to this an inmate has to pay mess fee also for the number of days food was availed from the mess. Since the number of inmates is increasing, Silver Blooms is finding it difficult to manage various activities. Write a program to manage:
a. Room allocation
b. Room de-allocation
c. Calculation of monthly rent
2. Monopoly bank offers various fixed deposit schemes. Customers of the bank can choose to deposit money under various schemes. For every scheme there is a minimum amount of money that should be deposited. An interest is paid for the deposit amount as mentioned in the scheme under which deposit is made. Every scheme states a time period for which the money is deposited. A penalty amount as specified by the scheme needs to be paid if the money needs to be withdrawn before the mentioned period. In this case interest will be paid only for the time period for which money was deposited. Write a program to:
a. Add a new scheme
b. Add a new customer
c. Open a deposit for a customer
d. Calculate amount payable for a deposit, at the end of deposit period
e. Calculate amount payable for a deposit, if the money is withdrawn before specified period