Question

In: Computer Science

Problem (by java): Every year, many students graduate from CCSIT set to fulfill their dreams and...

Problem (by java): Every year, many students graduate from CCSIT set to fulfill their dreams and build their careers. The college would like to keep an electronic record of its graduates and what career paths they have chosen. Each graduate has an id, name, and a current you’re your assignment is to create:

  1. An empty constructor for the class.
  2. A constructor that initializes the 3 attributes.
  3. A constructor that initializes the id and name.

Solutions

Expert Solution

In case of any query do comment. Please rate answer as well. Thanks

======Graduate.java=====

public class Graduate{
    //private data members
    private int id;
    private String name;
    private String current;
    
    //empty constructor
    public Graduate(){
    }
    
    //constructor which initalizes id , name and current
    public Graduate(int id,String nm, String curr){
        this.id = id;
        this.name = nm;
        this.current = curr;
    }
    
    //constructor which initalizes id , name
    public Graduate(int id,String nm){
        this.id = id;
        this.name = nm;
    }
    
    //below method did not ask in your question ,just provided to access yoru data members
    //accessors
    public int getId(){
        return this.id;
    }
    
    public String getName(){
        return this.name;
    }
    
     public String getCurent(){
        return this.current;
    }
    
    //mutators
     public void setId(int id){
        this.id = id;
    }
    
    public void setName(String nm){
        this.name = nm;
    }
    
     public void setCurent(String curr){
        this.current = curr;
    }
    
}

Related Solutions

Many students accumulate debt by the time they graduate from college. Shown in the following table...
Many students accumulate debt by the time they graduate from college. Shown in the following table is the percentage of graduates with debt and the average amount of debt for these graduates at four universities and four liberal arts colleges. University % with Debt Amount($) College % with Debt Amount($) 1 72 32,970 1 83 28,754 2 68 32,110 2 94 29,000 3 58 11,228 3 56 10,201 4 64 11,853 4 49 11,015 a. If you randomly choose a...
Java Complete Example.java to fulfill the following problem statement: Write a program to accept a list...
Java Complete Example.java to fulfill the following problem statement: Write a program to accept a list of numbers, one per line. Input is provided from a file if one is provided as the first command line argument. If a file is not provided, input should be read from the terminal. The numbers can either be whole numbers or floating point numbers. The program should continue to accept input until a number equal to 00 is input. Of course, if the...
Many students graduate from college deeply in debt from student loans, credit cards, and so on....
Many students graduate from college deeply in debt from student loans, credit cards, and so on. Curious about the impact of debt on decisions about the future, a WCU sociologist took a random sample of 401 single students at WCU, classified them by a binary view of gender, and asked, “Would you consider marrying someone who was $25,000 or more in debt?” The results of this survey are shown in the following table. Test at a 1% significance level if...
1. A university asked 10 graduate students how many hours of homework they were planning to...
1. A university asked 10 graduate students how many hours of homework they were planning to do that week. Here are their responses: 14 13 15 21 19 24 25 28 25 31 A. What's the mean number of hours of homework done by the students per week? What is the median? Why are these figures different? B. What is the range of data? C. Is the data skewed? If so, in what direction? How do you know? Please show...
Many mathematics teachers advise their students that if every question in an examination carries the same...
Many mathematics teachers advise their students that if every question in an examination carries the same marks, they should spend about equal amount of time on each question even though they cannot answer some of the questions within the time limit. Comment on this strategy based on what you learned about decision making in this course. Explain your answer in terms of no more than one bias. (Additional Information) Biases in Decision Making 1. Sunk cost 1.1 Repay monetary losses...
Thirty graduate students were asked how many credit hours they were taking in the current quarter.
Student Number Credit Hours 1 4 2 11 3 3 4 5 5 7 6 11 7 10 8 8 9 12 10 12 11 6 12 6 13 12 14 7 15 8 16 5 17 6 18 7 19 10 20 11 21 12 22 8 23 6 24 10 25 11 26 3 27 5 28 12 29 8 30 11 Thirty graduate students were asked how many credit hours they were taking in the current quarter....
1.) How many relations are there from a set of size n to a set of...
1.) How many relations are there from a set of size n to a set of size m? 2.) Determine the number of entries in the following sequences: a.) {13, 19, 25, . . . , 601} b. {7, 11, 19, 35, 67, . . . , 131075}
From a sample of 36 graduate​ students, the mean number of months of work experience prior...
From a sample of 36 graduate​ students, the mean number of months of work experience prior to entering an MBA program was 36.95. The national standard deviation is known to be 19 months. What is a 95​% confidence interval for the population​ mean? A 95​% confidence interval for the population mean is left bracket nothing comma nothing right bracket . ​(Use ascending order. Round to two decimal places as​ needed.)
It has been determined, with 90% confidence, that the proportion of students who graduate from college...
It has been determined, with 90% confidence, that the proportion of students who graduate from college are able to find a job in their field of study lies between 64% and 83%. Using this information answer the following questions. What is the sample proportion? What is the margin of error? Interpret this confidence interval in the context of this problem. ​​​​​​​​​​​​​​What would happen to this interval if the confidence level were to increase to 95%?
Professor Y. Doncha Findwork is in charge of placement of graduate students from the Barzini Institute...
Professor Y. Doncha Findwork is in charge of placement of graduate students from the Barzini Institute of Business and Public Affairs (Sicily). Her goal is to find great job offers for students that they cannot refuse. Professor Findwork follows up with students one year post-placement to see if they are satisfied with their positions. She wants to know how effective the placements have been, as measured by student satisfaction. Help Professor Findwork by analyzing the data she has collected below....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT