Questions
Questions from Roland Joffe’s The Killing Fields (1984) for my HUM2020 class. How are Pran's Buddhist...

Questions from Roland Joffe’s The Killing Fields (1984) for my HUM2020 class.

How are Pran's Buddhist beliefs and values at the core of his character and a determiner of his interactions with everyone?

Consider the three-part structure of the film. How would you characterize those sections? Why?

In: Psychology

In this exercise, you will create a basic data management system for students in the Department...

In this exercise, you will create a basic data management system for students in the Department of Computer Science and Information Technology using the linked list.

You must write two classes – Student class attached, and StudentChart.

Student class consists of student data. StudentChart class contains a linked list of all students in the department.

For this purpose, you must fulfill the following interfaces (note - fields of the objects should be marked as private).

Class: Student chart

Class of Student Chart contains data for all students stored in a linked list. The way to add a student to the list by method addStudent only to the front of the list. At the beginning the student list is empty, the number of students enrolled in the Department is 0. Think what would be the fields of this class, so that you can know much information at any one time.

Constructors:

Creat the class chart according to the private

StudentChart()

.fields(variables).

Methods:

Return type

Method name and parameters

operation

Add student to the front of the linked list.

void

addStudent(Student student

Delete student from the list. Do nothing if the student does not exist in the list. Returns false if student not found in the list

boolean

deleteStudent(Student student)

int

getNumOfStudents()

Returns the number of students in the list.

boolean

isStudent(Student student)

Examine if student exists in the list.

Student

getStudent(int studentNum)

Returns students data for the students with studentNum.

Returns the student average in the course with number

double

getAverage(int course)

course

Returns student average in all courses for all students.

double

getAverage()

(You can use the Student class methods).

Prints the students data for all students as follow:

Student number 1:

<Student String representation> Student number 2:

<Student String representation>

Student number <n>:

<Student String representation> If there are no students print:

void

printStudentChart()

No students!

It is recommended to write tester to present all the methods of the class and to check that they actually work.

The student class :

public class Student {
   private String name;// student name
   private long id; // student identity number
   private int [] grades = new int[5]; // list of student courses grades
   
   //costructor that initialize name and id
   public Student(String name, long id){
       String n = name.toUpperCase();
       name = name.replace(name.charAt(0), n.charAt(0));
       for(int i=0 ; i<name. length(); i++)
           if(name.charAt(i)==' ')
               name = name.replace(name.charAt(i+1), n.charAt(i+1));
       this.name = name;
       this.id=id;
       
   }
   
   //copy constructor
   public Student(Student st){
       this.name= st.name;
       this.id = st.id;
   }
   
   //return the student name
   public String getName(){
       return name;
   }
   //returns the student id number
   public long getId(){
       return id;
   }
   
   // returns the course grade accoring to parameter course(course number) 
   public int getGrade(int course){
       if(grades[course]== 0)
           return -1;
       return grades[course];
       
   }
   // set the name of student with parameter name
   public void setName(String name){
       String n = name.toUpperCase();
       name = name.replace(name.charAt(0), n.charAt(0));
       for(int i=0 ; i<name. length(); i++)
           if(name.charAt(i)==' ')
               name = name.replace(name.charAt(i+1), n.charAt(i+1));
       this.name = name;
       
   }
   
   //sets the student id with parameter id
   public void setId(long id){
       this.id = id;
   }
   //set the course grade with parameter grade 
   public void setGrade(int course, int grade){
       grades[course]= grade;
   }
    // set all the grades of the student from user
   public void setGrades(int [] g){
       for(int i=0; i< grades.length; i++)
           grades[i]=g[i];
            
   }
   //returns the student average in his course
   public double getAverage(){
       int sum= 0;
       int count =0;
       for(int i=0; i< grades.length; i++){
           if(grades[i]!=-1)
          sum=+ grades[i];
           count++;
       }
       return sum/count*1.0;// compute and return average
       
   }
   
   // takes a student object as a parameter and 
   // return true if it is the same as student parameter
   public boolean equals(Student student){
       if(student.id== this.id)
           return true;
       else
           return false;
   }
   //returns a string that represents the student object
   public String toString(){
       
       String [] g = new String[5];
       for(int i=0; i< grades.length; i++)
           if(grades[i]!= -1)
               g[i]= grades[i]+" ";
               else
               g[i]="no grade";
              
       String n1= "Name:"+ name+"\n"+ "ID:  "+ id +"\n"+ "Grades:"+"\n"+
               "Introduction to Programming - "+g[0] +"\n"+"Introduction to Management – "+g[1]+"\n"+
               "Data Structures – "+g[2]+"\n"+"Introduction to Economics – "+g[3]+"\n"+
               "Introduction to Mathematics – "+g[4];
       
       return n1;               
   }
    
}

In: Computer Science

Use the Internet to research the financial statements of Apple. Analyze the cost components of the...

  • Use the Internet to research the financial statements of Apple.
  • Analyze the cost components of the primary manufacturing process and examine the significance of cost behavior analysis to the company.
  • Evaluate the value of using cost behavior analysis to management.

In: Accounting

How to write the about us section of a new website for Nanny Agency online business?...

How to write the about us section of a new website for Nanny Agency online business? Please write in a professional format. Their main services would be that they a reliable platform for families and nannies both to get their work done and are trustworthy.

In: Operations Management

Answer the following questions: a) List Zappos’ 10 Core Values. b) Now, pretend you are the...

Answer the following questions:

a) List Zappos’ 10 Core Values.

b) Now, pretend you are the HR manager at Zappos and you are preparing to

interview an applicant for a customer service position at Zappos. The position

requires this person to answer customer questions about its products, over the

phone.

Select 3 core values and write 2 interview questions for each of the 3 core values

(Yes, you will be writing a total of 6 interview questions).

C. Be sure to explain why you are using the interview question and what you hope it

will reveal about the applicant. You are not allowed to use one of the interview

questions presented in the video or in the attached document. Come up with your

own interview questions. Be creative!

In: Operations Management

Could you please give me several real-life examples of marketing communications that try to persuade consumers...

Could you please give me several real-life examples of marketing communications that try to persuade consumers by utilizing both aspirational and dissociative reference group appeals? It needs to be real-life example!

In: Operations Management

public static BagInterface<String> intersection (BagInterface<String> bagA, BagInterface bagB) This method must return a new bag which...

public static BagInterface<String> intersection (BagInterface<String> bagA, BagInterface bagB)

This method must return a new bag which is the intersection of the two bags: bagA and bagB. An element appears in the intersection of two bags the minimum of the number of times it appears in either. For example, {1,1,2} ∩{1,1,2,2,3}= {1,1,2}. Do not forget to state the big Oof your method implementation.

two file java main and test

by netbeans java

data structure and algorithem

In: Computer Science

Create a research paper that lists and explains the methods available to a business for opening...

Create a research paper that lists and explains the methods available to a business for opening a business in a foreign country. In other words, what avenues can be sued to enter the market in another country. Do some research being attentive to APA source citation and referencing guidelines.

In: Operations Management

QUESTION 1. Kroger management and Meijer management decide to have a sit down face to face...

QUESTION 1. Kroger management and Meijer management decide to have a sit down face to face meeting. The Kroger people agree NOT to open any stores north of the stores in Midland and Mt. Pleasant. Further, any new stores that will be opened in Michigan will not be within 12 miles of any Meijer Stores. In exchange, Meijer agrees NOT to open any stores in Indiana. Further, Meijer agrees NOT to open any stores west of the western border of Ohio and to stay out of the Southwest area of Michigan from St. Joe’s to Big Rapids.

You work for IGA and you hear rumors about this agreement between your competitors. You consult with your friends at Wal-Mart and they have not only heard the same rumors, but, they have obtained documentation evidencing the agreement. You, acting on behalf of IGA as well as a rep from Wal-Mart, contact Tom Terrific, (TT), your favorite anti-trust attorney. Please share with us what advice he gave you as well as any specific cases, statutes, or principals of law in support of the attorney’s position.

In: Operations Management

C Programming Language Question The following program sums up a number from a user input argv[1]...

C Programming Language Question

The following program sums up a number from a user input argv[1] by using a single thread. For example, argv[1] of 100 is going to give us a sum of 5050 using just a single thread.

I need to modify it so that it takes 2 command lines args, argv[2] for number of threads. In other words, the program needs to use multi-threads to solve it. The number of threads is going to divide the work between them and then join together to sum the numbers.

For example, a command line of 100 10 will give us a sum of 5050 using 10 threads.

#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>

int sum; // this data is shared by the threads
void *runner(void *param); // threads call this function

int main(int argc, char *argv[])
{
pthread_t tid; // thread identifier
pthread_attr_t attr; // set of thread attributes

// set the default attributes of the thread
pthread_attr_init(&attr);
// create the thread
pthread_create(&tid, &attr, runner, argv[1]);
// wait for the thread to exit
pthread_join(tid, NULL);

printf("Sum = %d\n", sum);
}

void *runner(void *param)
{
int i, upper = atoi(param);
sum = 0;

for (int i = 1; i <= upper; i++)
sum += i;

pthread_exit(0);
}

In: Computer Science

Using initial rate, in Chemical Kinetics, what is the missing number in the table? No other...

Using initial rate, in Chemical Kinetics, what is the missing number in the table? No other information is given. Could you also please explain how you got the answer? I will rate your answer. :D

[A] M Initial Rate (M/s)

0.100

0.00160
0.200 0.0128
0.300 0.0432
0.400 0.102
0.250 ???????

Thanks in advance.

In: Chemistry

what do you think are some factors that allowed this system of racial control to simply...

what do you think are some factors that allowed this system of racial control to simply evolve and replicate itself for the 150 years?

In: Psychology

Low birth weights are considered to be less than 2500 g for newborns. Birth weights are...

Low birth weights are considered to be less than 2500 g for newborns. Birth weights are normally distributed with a mean of 3150 g and a standard deviation of 700 g.

a) If a birth weight is randomly selected what is the probability that it is a low birth weight?

b) Find the weights considered to be significantly low using the criterion of a probability of 0.02 or less. That is, find the weight ranked as the lowest 2%.

c) Find the weight ranked as the highest 2%

d) Find the probability of a birth weight between 2600 g and 3500 g.

In: Math

IN JAVA Create an array and add random values to it, and then find the sum...

IN JAVA

Create an array and add random values to it, and then find the sum of the values using recursion.

In: Computer Science

Is the Calphalon acquisition a way to enhance Newell's capabilities, or a violation of its strategy?...

Is the Calphalon acquisition a way to enhance Newell's capabilities, or a violation of its strategy? Will the same strategy that worked well in the past work here? The strategy is the cost leadership strategy.

In: Operations Management