Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Doubt in application development  RSS feed

 
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An application is to be developed that manages the wardens and prisoners at a prison. Each prisoner is identified by a unique number. Details, such as name and number of days left to serve in prison, need to be stored for each prisoner as well as the unique identifier. Some prisoners are categorised as high security prisoners, in which case additional information must be stored, such as security level and whether or not the prisoner can share a cell with another prisoner. Wardens have a rank in the range 1 to 5, where a rank of 5 indicates the highest level of experience. The application must provide the following functionality

1.Add,Find,Delete and Release prisoner
2.Add,Find and Delete warden
3.Check if the prison has an appropriate set of wardens for the current prisoners. The prison should have no less than 1 warden for every 5 prisoners. The prison must have 2 wardens of rank 3 or above for every 4 high security prisoners.

Now question is how in GUI to check if the prison has an appropriate set of wardens for the current prisoners. The prison should have no less than 1 warden for every 5 prisoners. The prison must have 2 wardens of rank 3 or above for every 4 high security prisoners.
 
Marshal
Posts: 64496
225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Gaurav Gambhir wrote: . . .
Now question is how in GUI to check if the prison has an appropriate set of wardens for the current prisoners. . . .

There is a very simple answer to that question: not at all. A GUI is for displaying things, and you should have an application which will run on its own without the GUI before you try adding the GUI.
Also, we never give out complete solutions as you seem to be asking. Please show us what you have already and let us think about what you have.
 
Gaurav Gambhir
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanking you I got the answer in your statement " you should have an application which will run on its own without the GUI "
 
Campbell Ritchie
Marshal
Posts: 64496
225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome

Make sure your app has a public API which you can use to run it from instructions via the GUI.
 
Shiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!