Hotel Management System in Java
The main task for Hotel Management Project in java is ahead to see all the things whether they are running smoothly or not, this software will be capable of doing or performing following tasks:
Reservation.
Registration.
Billing/Clearance of Guest Folio.
Checkout.
This Hotel Management Project in java is developed keeping in mind the various aspects of hotels in public sector as well as in private sector. This software is intended to be developed for Deluxe Class / Super-Deluxe Class Hotels. A Comparison will be done of Deluxe Class Hotels in public sector and in private sector and then the resultant / desired software will be developed.
Keeping records of various customers that visit in the hotel.
Keeping records of various items that are served to the customers.
Keeping records of customer’s Check-in/Check-out timings.
We are looking for passionate developers to join our team.
Solve the challenge below and submit the form, and we will reach out to you!
Find latitude and longitude of utmost 20 countries, ordered by population, with a population greater or equal to the population limit given below and have atleast one currency exclusively for themselves. (countries like Madagascar, Sri Lanka but not India, USA). Use the country details from this dataset.
Your task is to find the sum of the length of all lines (in kms) that can be drawn between co-ordinates of these countries.
Population limit: 8725931
Note: Population limit will change at random intervals. So please make sure answer is computed for the correct population limit before submitting.
Write a program to store 25 numbers in an array. Then display those numbers divisible by 5 only in descending order using sorting and also display how many such numbers found.
Bus Seat Reservation
Please do exactly like this:
1. The program should ask the user to enter what row and seat number to reserve. Indicate
an ‘X’ mark if the seat is reserved.
2. Repeat Step 1; the program will stop until the user enters a negative number.
Please do exactly like this:
Screen/layout
Bus Seat Reservation:
Col 1 Col 2 Col 3 Col 4
row 1 | * * * *
row 2 | * * * *
row 3 | * * * *
row 4 | * * * *
row 5 | * * * *
row 6 | * * * *
row 7 | * * * *
up to row 10
Enter row and column no. to reserve separated by space (enter negative no. to exit): 4 4
Second Seat reservation sample output
Col 1 Col 2 Col 3 Col 4
row 1 | * * * *
row 2 | * * * *
row 3 | * * * *
row 4 | * * X X
up to row 10
Task #12: Using Arrays and Methods
In this task, you are being asked to write methods that manipulate arrays in Java.
Write a method that swaps the value of the array in such a way that all negative values comes
before the positive values in the array. The method should then returns the array.
You may use the following header for this method:
static int[] negativeBeforePositive(int[] array)
NOTE: Declare and initialize the array without taking the input from user.
Treat the 0 as a value greater then negative numbers, but lesser than positive numbers.
You may declare some temporary arrays for your help.
1. Create a program called ArrayNegativeBeforePositiveLab1.java.
2. Create appropriate variables and assign values using a Scanner object.
3. Correctly display appropriate messages.
Page 11
Task #11: Using Arrays and Methods
In this task, you are being asked to write methods that manipulate arrays in Java.
Write a method that returns the smallest value from a given integer array.
You may use the following header for this method:
static int smallest(int[] array)
Write another method that returns the largest value from a given integer array.
You may use the following header for this method:
static int largest(int[] array)
Write a third method that returns the middle value from a given integer array if the array length is
odd, or returns the average of the two middle values if the array length is even.
You may use the following header for this method:
static double middle(int[] array)
NOTE: Declare and initialize the array without taking the input from user.
1. Create a program called ArrayValuesLab1.java.
2. Create appropriate variables and assign values using a Scanner object.
3. Correctly display appropriate messages.
Task #10: Using Arrays and Methods
In this task, you are being asked to write methods that manipulate arrays in Java.
Write a method that returns the reverse of a given integer array.
You may use the following header for this method:
static int[] reverseArray(int[] array)
For example, suppose that the array has 10 values: 10 9 8 7 6 5 4 3 2 1
The method will return an array which would contain the values: 1 2 3 4 5 6 7 8 9 10
NOTE: Declare and initialize the array without taking the input from user.
4. Create a program called ArrayReverseLab1.java.
5. Create appropriate variables and assign values using a Scanner object.
6. Correctly display appropriate messages.
Task #9: Using Arrays and Methods
In this task, you are being asked to write methods that manipulate arrays in Java.
Write a method that swaps the elements of the array as follows:
 Swap the value of n-1’th index with the value of 0th index.
 Swap the value of i’th index with the value of i+1’th index.
You may use the following header for this method:
static int[] arraySwapValues(int[] array)
For example, suppose that the array array has 10 values: 1 2 3 4 5 6 7 8 9 10
The method will return an array which would contain the values: 2 3 4 5 6 7 8 9 10 1
NOTE: Declare and initialize the array without taking the input from user.
1. Create a program called ArraySwapValuesLab1.java.
2. Create appropriate variables and assign values using a Scanner object.
3. Correctly display appropriate messages.
Page 8
Task #8: Using Arrays and Methods
In this task, you are being asked to write methods that manipulate arrays in Java.
Write a method called fillArray() which will take an integer array as input and the fills the array
with the user entered numbers.
You may use the following header for this method:
static void fillArray(int[] array)
Write a method called absoluteArray() which will take an integer array as input and takes the
absolute of all the array elements.
You may use the following header for this method:
static void absoluteArray(int[] array)
Take a number from the user as the size of the array, call the method fillArray(), then call the
method absoluteArray().
NOTE: Perform input validation so that the array size must be greater than 0.
1. Create a program called ArrayAbsoluteLab1.java.
2. Create appropriate variables and assign values using a Scanner object.
3. Correctly display appropriate messages.
Task #7: Using Arrays and Methods
In this task, you are being asked to write methods that manipulate arrays in Java.
Write a method called fillArray() which will take an integer array as input and the fills the array
with the user entered numbers.
You may use the following header for this method:
static void fillArray(int[] array)
Write another method called printSumAverage() which takes an integer array as input and prints
the sum and average of the array elements.
You may use the following header for this method:
static void printSumAverage(int[] array)
Take a number from the user as the size of the array, call the method fillArray(), then call the
method printSumAverage().
NOTE: Perform input validation so that the size must be greater than 0.
1. Create a program called ArraySumAverageLab1.java.
2. Create appropriate variables and assign values using a Scanner object.
3. Correctly display appropriate messages.