Urgenthomework logo
UrgentHomeWork
Live chat

Loading..

Itech1000 Programming-House Deposit Calculator Answers Assessment Answers

This stage requires you to prepare documentation that describes the function of the program and how it is to be tested. There is no coding or code testing involved in this stage. A document template has been provided for your use.
Requirements:
1) Read through Stage 2: Program Development to obtain details of the requirements of this program.
2) Write an algorithm that describes how the program will operate.
a. All program requirements must be included, even if you do not end up including all these requirements in your program code.
b. The algorithm must be structured logically so that the program would function correctly.

3) Prepare and document test cases that can be used to check that the program works correctly,once it has been coded. You do NOT need to actually run the test cases in this stage; this will occur in Stage 3: Testing.
a. All program requirements must be included, even if you do not end up including all these requirements in your program code.
b. Make sure the test cases include checking of data entered by the user to make sure that only valid data is accepted. If the user enters invalid data, the user should be informed of this and given another chance to enter the data. NB: As we have not covered exception handling, you may assume that the user will always enter the expected data type.
c. Test cases should be documented using a template like the one below. You may include extra information if you wish. At this stage, the Actual Result column will be left blank.

Answer:

The program which is given in the JAVA assignment emphasise on HOTEL RECOMMENDATION SYSTEM. This JAVA program helps me to learn and practice lot of things by giving me a platform to use my JAVA skills effectively. In this program, User can see the list of the hotels available with their room price, star rating, occupancy etc. User can also find the cheap hotel from the list of the hotels with a press of a button only. This program also enables user to change the sale price of the room if he wish to change that.

VARIABLES USED IN THE PROGRAM

  • IN HEAD PROGRAM
  • LISTS_HOTEL - This variable store the list of the hotel and it is of array data type.
  • VARIABLE –This variable store the choice of user based on the options available to the user and it of integer data type.
  • IN PRO_HOTEL PROGRAM
  • h_name -This variable stores the name of the hotel and it is of string data type.
  • Address -This variable stores the address of the hotel and it is of string data type.
  • star_rating-This variable stores the star rating of the hotel and it is of integer data type.
  • r_types -This variable stores the room type data and it is of integer data type.
  • r_list -This variable store the room list and of array type.
  • IN PRO_ROOMS
  • r_name –This variable stores the name of the room and of string data type.
  • r_price –This variable stores the regular price of the room and of integer data type.
  • s_price –This variable stores the sale price of the room and of integer data type.
  • max_occupancy –This variable stores the maximum occupancy of the room and of integer data type.
  • no_room –This variable stores the number of the room available and of integer data type.
  • no_vacancy –This variable stores the number of vacancies and of integer data type.

METHODS IN THE PROGRAM

  • IN HEAD FILE
  • public HEAD() – Being a default constructor, it give some value to array.
  • public void ROOMSTART() – This is used to give rooms and hotel some values like address, types of the room, vacancies etc.
  • public void DETAILS_HOTEL() – This is used to show all the details of all the hotels available in the list to the user.
  • public void CHEAP_HOTEL() – This is used to find the cheapest hotels from the list of the hotels.
  • public void PRICE_RENEW() - This helps the user to change the sale price of the room according to its own will.
  • public void SEARCHING() – This is used to search the hotel according to the data entered by the user like occupancy, daily rates etc.
  • IN PRO_HOTEL FILE
  • public PRO_HOTEL() – Default constructer to give some initial values to the data member of the PRO_HOTEL.
  • public PRO_ROOMS[] getR_list() – This method returns the room list.
  • public void setR_list(PRO_ROOMS[] r_list)– This method is used to set the room list.
  • public String getAddress() – This method is used to get the address of the hotel.
  • public String getH_name() - This  method is used to get the name of the hotel.
  • public int getR_types() – This method is used to get the room type.
  • public int getStar_rating() – This method is used to get the star rating of the hotel.
  • public void setAddress(String Address) – This method is used to set the address of the hotel.
  • public void setH_name(String h_name) - This method is used to set the name of the hotel.
  • public void setR_types(int r_types) - This method is used to set the type of the room of the hotel.
  • public void setStar_rating(int star_rating) - This method is used to set the star rating of the hotel.
  • public String toString() – This method display the details of the hotel.
  • IN PRO_ROOMS FILE
  • public PRO_ROOMS() - Default constructer to give some initial values to the data member of the PRO_ROOMS.
  • public int getMax_occupancy() – This method is used to get the maximum occupancy of the room.
  • public int getNo_room() – This method is used to get the number of the rooms.
  • public int getNo_vacancy() - This method is used to get the number of the vacancy.
  • public int getR_price() – This method is used to get the room price.
  • public String getR_name() – This method is used to get the room name.
  • public int getS_price() – This method is used to get the sale price of the room.
  • public void setMax_occupancy(int max_occupancy) – This is used to set the maximum occupancy of the room.
  • public void setNo_room(int no_room) – This is used to set the number of the rooms.
  • public void setNo_vacancy(int no_vacancy) – This is used to set the number of vacancies.
  • public void setR_price(int r_price) – This is used to set the room price.
  • public void setR_name(String r_name) – This is used to set the room name.
  • public void setS_price(int s_price) – This is used to set the room sales price.
  • public String toString() – This is used to show the details of the rooms.

PROCESS IN VOID MAIN

  1. Creating the object of HEAD class.
  2. Calling of ROOMSTART method.
  3. Declaration of the scanner variable.
  4. Creating variable of the integer type.
  5. Showing welcome message to user.
  6. Showing developer details to the user.
  7. Starting of the do-while loop.
  8. Showing options to the user from 1-5 calling various methods like DETAILS_HOTEL, CHEAP_HOTEL, PRICE_RENEW, SEARCHING with the help of the object of the HEAD class .
  9. Taking input from the user for the option.
  10. Starting of the switch case from case 1 to case 5 with default case.
  11. Closing of the switch case.
  12. Closing of the do-while loop.
  13. End of the program.

Buy Itech1000 Programming-House Deposit Calculator Answers Assessment Answers Online


Talk to our expert to get the help with Itech1000 Programming-House Deposit Calculator Answers Assessment Answers to complete your assessment on time and boost your grades now

The main aim/motive of the management assignment help services is to get connect with a greater number of students, and effectively help, and support them in getting completing their assignments the students also get find this a wonderful opportunity where they could effectively learn more about their topics, as the experts also have the best team members with them in which all the members effectively support each other to get complete their diploma assignments. They complete the assessments of the students in an appropriate manner and deliver them back to the students before the due date of the assignment so that the students could timely submit this, and can score higher marks. The experts of the assignment help services at urgenthomework.com are so much skilled, capable, talented, and experienced in their field of programming homework help writing assignments, so, for this, they can effectively write the best economics assignment help services.


Get Online Support for Itech1000 Programming-House Deposit Calculator Answers Assessment Answers Assignment Help Online


); }
Copyright © 2009-2023 UrgentHomework.com, All right reserved.