Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

So far, all of the programming problems we have encountered have given us the re

ID: 3544343 • Letter: S

Question

So far, all of the programming problems we have encountered have given us the requirements around what to program.  In real life, however, things are not wrapped up so neatly.  Often developers are tasked with gathering the requirements for a program on their own.  They may be tasked with defining the problem and then defining the solution along with developing the program.  You can read more about requirements gathering here. http://www.sitepoint.com/requirements-gathering/

Using the information above, choose one problem from the Random Hacks of Kindness site. http://www.rhok.org/problems

Write a short paper on the problem you are trying to solve and how your application will address this issue.  If you need to create your own class with your own methods, elaborate of what those methods would be.  If they are value-returning, what are the parameters? Lastly, what is  the overall impact of your application?

Explanation / Answer


Problem:

This institution is current challenged with getting a database for Training Institutions in the Gambia. I am not sure what is the best platform for it now but would like to submit to the programmers to help us develop a system to capture all the data on the institution on;


1. Student enrolment and graduates
2. Teacher data
3. Course offer and fees charged
4. Registered trainers, assessors and verifiers etc

My code will help to maintain the databases of all the staffs concerned



class staff

{

String code;

String name;

/* Input parameters for the constructor are:

String c: staff code.

String n: staff name.

*/


public staff(String c, String n)

{

code = c;

name = n;

}

/* set/get methods for the staff code. */

public void setCode(String c)

{

code = c;

}

public String getCode()

{

return code;

}

/* set/get methods for the staff name. */

public void setName(String n)

{

name = n;

}

public String getName()

{

return name;

}

}

/* This class represents all the teacher staff */

class teacher extends staff

{

private String subject;

private String publication;

String code;

/* Input parameters for the constructor are:

String c: staff code.

String n: staff name.

*/

public teacher(String c, String n)

{

super(c, n);

}

/* Input parameters for the constructor are:

String c: staff code.

String n: staff name.

String sub: teacher subject.

String pub: array of teacher publication

*/

public teacher(String c, String n, String sub, String pub)

{

super(c, n);

subject = sub;

publication = pub;

}

public void setCode(String s)

{

super.setCode(s);

}

/* set/get methods for subject */

public void setSubject(String s)

{

subject = s;

}

public String[] getSubject()

{

return subject;

}

/* set/get methods for publications */

public void setPublication(String p)

{

publication = p;

}

public String getPublication()

{

return publication;

}

}

/* This class represents all typist staff */

class typist extends staff

{

int speed;

/* Input parameters for the constructor are:

String c: staff code.

String n: staff name.

int s: typist speed.

*/

public typist(String c, String n, int s)

{

super(c, n);

speed = s;

}

/* set/get methods for the typist speed. */

public void setSpeed(int s)

{

speed = s;

}

public int getSpeed()

{

return speed;

}

}

/* This class represents all the officer staff */

class officer extends staff

{

int grade;

/* Constructor input parameters are:

String c: staff code.

String n: staff name.

int g: officer's grade.

*/

public officer(String c, String n, int g)

{

super(c, n);

grade = g;

}

/* set and get methods for the officers' grade */

public void setGrade(int g)

{

grade = g;

}

public int getGrade()

{

return grade;

}

}

/* This class represents all the regular typist staff */

class regular extends typist

{

/* Input parameters for the constructor are:

String c: staff code.

String n: staff name.

int s: typist speed.

*/

public regular(String c, String n, int s)

{

super(c, n, s);

}

}

/* This class represents all casual typists */

class casual extends typist

{

float daily_wages;

/* Input parameters for the constructor are:

of a casual typist:

String c: staff code.

String n: staff name.

int s: typist speed.

float w: casual's daily wages.

*/

public casual(String c, String n, int s, float w)

{

super(c, n, s);

daily_wages = w;

}

/* This method set the daily wages for a casual staff */

public void setWages(float w)

{

daily_wages = w;

}

/* This method returns the amount of the daily wages */

public float getWages()

{

return daily_wages;

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote