• Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt in application development

 
Gaurav Gambhir
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.
 
Campbell Ritchie
Marshal
Posts: 52580
119
  • 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: 52580
119
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!