Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: any help with Java assignment please !!!

  1. #1
    Junior Member
    Join Date
    Mar 2014
    Posts
    3
    My Mood
    Cool
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation any help with Java assignment please !!!

    Hello there everyone
    and have a nice day for you all
    First of all (SORRY MY ENGLISH IS BAD ) .
    i just signed in and i don't really know if this is the right place to post this but i hope so
    okay I have an assignment that i did most of it
    but i hope there is someone can explain these to me and what i should do with it

    FIRST ...

    I've got this one here and it says ( A teacher’s responsibility can be either a theoretical or practical.) , well okay can i do it with while or switch idk i just don't get it

    and this one too ( Each teacher is assigned a number of courses ( keep track of the course titles only) ) i declared three variables as private String okay my Q here what does it mean keep track of the course title type .

    thank you and i hope someone would help me


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: any help with Java assignment please !!!

    Welcome to the forum! Please read this topic to learn how to post code correctly and other useful info for new members.

    I moved your topic to a more appropriate place, even though you don't have any code yet. And what is the assignment? Can you post it directly? Perhaps your links were denied, so we need the details. What do you need help with?

  3. #3
    Junior Member
    Join Date
    Mar 2014
    Posts
    3
    My Mood
    Cool
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: any help with Java assignment please !!!

    package communitymember;
     
     
    public class Teacher extends Faculty {
        private String FirstCourse ;
        private String SecondCourse ;
        private String ThierdCourse ;
     
        public Teacher ( String FC , String SC , String TC ,int salary , String fn , String ln  , String id , 
                String cs , String it ,String el   ){
     
            super(salary , fn , ln , id , cs , it , el);
            this.FirstCourse = FC ;
            this.SecondCourse =SC ;
            this.ThierdCourse = TC ;
                }
     
        public void setFirstCourse (String FC){
     
        this.FirstCourse = FC ;
     
        }
     
        public String getFirstCourse () {
        return FirstCourse ;
            }
        public void setSecondCourse (String SC ){
     
            this.SecondCourse = SC ;
     
        }
         public String getSecondCourse (){
          return SecondCourse ;
         }
     
         public void setThierdCourse (String TC ) {
         this.ThierdCourse = TC ;
              } 
     
         public String getThierdCourse (){ 
             return ThierdCourse ;
         }
         public  String teacherresponsibility (){
     
             String T ;
     
     
     
     
     
         }
    }

    thank you and this is the code that i am working on it right know i did write four classes and this is an extends class wish you can help me with it thank you again

    --- Update ---

    ah and this is the Question
    Implement the Teacher class based on the following description:
     Each teacher is assigned a number of courses ( keep track of the course titles only)
     A teacher’s responsibility can be either a theoretical or practical.
     The normal working hours are 40 hours per week, any extra hours will be paid a flat rate of 100SAR per hour (assume that each month has 4 weeks).
    Your class should also define a method Compute salary.
    Your main class should define a Teacher object and supply its information then display its data as well as the computed salary.

    and i only need someone to explain to me the second one what should i do how can i write as a code

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: any help with Java assignment please !!!

    You mean the theoretical or practical part? If so, I suggest a boolean, true if theoretical or false if practical. It could be vice-versa (switched) if you prefer. Doesn't matter. Your choice.

  5. #5
    Junior Member
    Join Date
    Mar 2014
    Posts
    3
    My Mood
    Cool
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: any help with Java assignment please !!!

    oh thank you a lot GregBrannon that was so helpful
    have a nice day

Similar Threads

  1. Java assignment- Need help please
    By JavaStudent100 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: October 6th, 2013, 03:35 PM
  2. Replies: 8
    Last Post: February 12th, 2013, 05:45 AM
  3. Java assignment help
    By Senonzakura21 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 14th, 2011, 09:38 PM
  4. assignment troubles polymorphism (guide for assignment included)
    By tdawg422 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 8th, 2011, 10:01 AM
  5. Replies: 1
    Last Post: February 22nd, 2010, 08:20 AM