Results 1 to 7 of 7
Like Tree2Likes
  • 1 Post By Russd772
  • 1 Post By DarrylBurke

Thread: I'm so confused

  1. #1
    minabarnes is offline Member
    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0

    Unhappy I'm so confused

    .......
    Last edited by minabarnes; 01-14-2013 at 12:42 AM.

  2. #2
    Russd772 is offline Member
    Join Date
    Dec 2012
    Posts
    42
    Rep Power
    0

    Default Re: I'm so confused

    Do you know what you should do for any of this? I would recommend starting there if you do. I have seen alot of people post questions like this on the forums and the short answer is always the same. You need to start to work on your own and write up some code that you at least think should work. after you do that you can post your work here and ask specific questions if you need help. i would start with the first item myself and ask myself, how am i going to store my list of instructors, what infor mation needs to be associated with each instructor, and whats the best way to store and retrieve that information? then start there, and at least type up some code and ask more specific questions to get better help here

    hope this helps
    Russ

  3. #3
    minabarnes is offline Member
    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0

    Default Re: I'm so confused

    I'm struggling on how to get bookings to work and how I can determine how many hours have been worked/when to bring part time staff in...

  4. #4
    Russd772 is offline Member
    Join Date
    Dec 2012
    Posts
    42
    Rep Power
    0

    Default Re: I'm so confused

    each session lasts 1 hour and each full time instructor works through 30 sessions per week, you could start there and add an hour to a variable every time a session is booked with that instructor, then you can use a series of if statements to look through each of the 3 instructors to check if hours booked is less than 30, if it is you can return the instructors name or if none of the instructors hoursBooked are less than 30 you return a value to indicate you need to bring in part time instructor.

    please keep in mind im also new to Java and this may not be the best wayt to do this, but its what i would do with the knowledge of the lanhuage that i currently have.

    writing the code is only part of programming, the other part is thinking up how you can do something, im not sure how long you have spent thinking up how your going to accomplish this task but in my opinion i would spend a fair amount of time trying to come up with methods on your own, as you will not get much out of your class if you just type out code that people tell you will work.

    also i might as well bring this up since it is going to come up inevedably, when posting you want to have a more specific title for your thread as it will help people who are knowledgable about the topic identify a thread they can help with, and it will save people who are not so knowleddgable the time of reading the thread just to find out what it is you need help with

    hope this helped
    Russ
    Last edited by Russd772; 01-13-2013 at 08:41 PM.
    Fubarable likes this.

  5. #5
    minabarnes is offline Member
    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0

    Default Re: I'm so confused

    ......................
    Last edited by minabarnes; 01-14-2013 at 01:04 AM.

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default Re: I'm so confused

    Lets see what was removed.
    Quote Originally Posted by minabarnes View Post
    -
    Rossi Riding School is a company that offers motorcycle riding tuition to the public. They already have a system that manages the lessons and their payment. However they need a system to manage the availability of riding instructors. They hire instructors on an hourly basis. They do this because history has shown that there are peak periods in the year where additional instructors are required. They have 3 full-time instructors who are paid monthly. The number of hourly paid instructors will vary from zero upwards depending upon demand.

    Use of Instructors

    When a booking is made for a riding lesson, the manager checks his records for full-time staff first. Full-time staff can teach a max of 30 hours per week. If they have an available slot then the booking is made against these instructors first. If all the full-time staff are fully booked for the week then the manager contacts available hourly-paid instructors by phone. The first available instructor contacted gets the lesson. Each lesson lasts one hour. Since hourly paid staff are classed as part-time employees they can only work 15 hours per week.

    TASK
    The requirements of the new system are:
    Implementation:
    �� Create an instructor class
    �� Implement a main method to allow system testing
    �� Use appropriate text based menu to navigate the system
    �� Input instructor type i.e. part time or full time
    �� Input booked current amount of booked sessions
    �� Display amount of sessions booked for that week
    �� Display amount of available sessions for that week
    �� Allow the user to re-enter the information
    �� Implement this design in Java

    Any help/tips on how to set this out would be helpful, I'm so confused...
    Many Thanks
    Quote Originally Posted by minabarnes View Post
    -
    import java.util.Scanner;
    /**
    * Write a description of class Instructor here.
    *
    * @author Daniel Potts
    * @version (a version number or a date)
    */
    public class Instructor
    {
    private String name;
    private int id;
    private String type;
    private int hours;
    private String fullTime;
    private String partTime;
    private String bookingsFullTime;
    private String bookingsPartTime;
    private String addFullTime;
    private String addPartTime;


    public static void main(String args[]){

    Instructor instructor = new Instructor();
    instructor.instructorType();
    }

    public void instructorType(){

    System.out.println("Press 1 for Full Time, press 2 for Part Time and 3 to exit");
    Scanner scan = new Scanner(System.in);
    int choice = scan.nextInt();

    if (choice == 1){
    fullTime();
    }
    else if (choice == 2){
    partTime();
    }
    else if (choice == 3){
    System.exit(0); //this will terminate the system you can change this if you want
    }
    else{
    System.out.println("This is not a valid function"); // if user has inputted a number that is not a choice it will pop up saying this
    }
    }

    public void fullTime(){
    System.out.println("Select 1 to see amount of sessions booked already, select 2 to book hour lomg session");
    Scanner input = new Scanner(System.in);
    int choice = input.nextInt();
    if (choice == 1){
    bookingsFullTime();
    }
    else if (choice == 2){
    addFullTime();
    }
    else{
    System.out.println("This is not a valid function");

    }
    instructorType();
    }

    public void partTime(){
    System.out.println("Select 1 to see amount of sessions booked already, select 2 to book hour lomg session");
    Scanner input = new Scanner(System.in);
    int choice = input.nextInt();
    if (choice == 1){
    bookingsPartTime();
    }
    else if (choice == 2){
    addPartTime();
    }
    else{
    System.out.println("This is not a valid function");

    }
    instructorType();
    }

    public void bookingsFullTime(){}
    public void addFullTime(){}
    public void bookingsPartTime(){}
    public void addPartTime(){}
    }


    I'm struggling with how to add booking and get the max to be 30 and show part time :(

    would I need to increment the bookings if addbooking was ran?
    In future, don't remove content, and especially not after there are responses in the thread which as a result end up out of context. Ignoring this may lead to you being banned. There will be no further warning.

    This is a forum, not your private helpdesk.

    db
    Fubarable likes this.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default Re: I'm so confused

    Also, before you post here again, go through the following pages:
    Forum Rules
    Guide For New Members
    BB Code List - Java Programming Forum - Learn Java Programming

    db

    THREAD CLOSED
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Confused :?
    By jESTPHROSTY in forum New To Java
    Replies: 2
    Last Post: 10-17-2010, 07:38 PM
  2. I am confused
    By prof.deedee in forum New To Java
    Replies: 6
    Last Post: 10-30-2009, 11:32 PM
  3. Very confused Plz help!!
    By ratb0y in forum NetBeans
    Replies: 0
    Last Post: 02-14-2009, 04:34 PM
  4. Confused
    By coldfire in forum New To Java
    Replies: 3
    Last Post: 01-13-2009, 01:00 PM
  5. a lot confused
    By vineethraj in forum New To Java
    Replies: 4
    Last Post: 01-18-2008, 12:36 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •