Questions
A teacher needs list to fill student scores on five assignments.There are 15 students in her...

A teacher needs list to fill student scores on five assignments.There are 15 students in her class.The students are numbered 1 through 15.Use nested for loops to print out the list for the teacher.

In: Computer Science

Sally, a used-car broker needs to transport her inventory of cars from Irvine and Santa Ana...

Sally, a used-car broker needs to transport her inventory of cars from Irvine and Santa Ana to used-car auctions being held in Anaheim and Huntington Beach. Sally currently uses a trucking company that charges her for each car shipped. The transportation costs from each origin city and destination city are:

Origin

Destination

Cost per Car Shipped

Capacity (# Cars)

Irvine

Costa Mesa

$8

10

Irvine

Santa Ana

$5

10

Santa Ana

Costa Mesa

$9

10

Santa Ana

Huntington Beach

$20

20

Costa Mesa

Anaheim

$6

No limit

Costa Mesa

Huntington Beach

$7

No limit

Huntington Beach

Anaheim

$6

10

Sally has 15 cars in Irvine and 15 cars in Santa Ana. She wants to ship 20 cars to Anaheim and 10 cars to Huntington Beach in the cheapest way possible. She knows that it might make sense to ship some cars through Costa Mesa; there is a parking lot there where cars can be transferred from one truck to the next.

Formulate this problem as a linear program (algebraically define all decision variables, all constraints and the objective function). Do not solve it.

In: Operations Management

Question 2 (10 marks) Like other higher education institutions, York University is intensely preparing for the...

Question 2

Like other higher education institutions, York University is intensely preparing for the start of the new academic year in September, when a large new cohort of students will enter York for their first year of higher education. For the purpose of this question, we will assume that this preparation includes a contingency plan to deal with the a situation where limits will still be in place on in-person gatherings during the start of the fall 2020 term. Considering our course content on socialization and organizational culture, describe your own socialization process to York. Use your own socialization experiences when you came to York U as examples when you apply relevant concepts. Then, identify challenges and opportunities for the socialization process of newly admitted students that are expected to start their studies at York in September 2020. Explain why it is important for organizations such as York U to get the socialization process right in September. Ensure to articulate your arguments clearly and provide support for your claims, using and applying relevant concepts.

In: Operations Management

Which study design is best to minimize confounders--cohort or case-control?

Which study design is best to minimize confounders--cohort or case-control?

In: Advanced Math

Part A - Palindromic Bitlists Write a function palindrome binary(n) which returns a list of bitlists...

Part A - Palindromic Bitlists Write a function palindrome binary(n) which returns a list of bitlists of length n, where every bitlist is a palindrome. The returned list of bitlists must be in lexicographical order (think about the order of your options). You must use backtracking to solve this problem (i.e. do not use brute force).

Part B - All Paths Write a function all paths(M, u, v) which takes as input an adjacency matrix of a graph, M, and two vertices u, v and returns a list of all paths from u to v in M. A path is a list of vertices. Note that a path cannot use the same vertex twice, but two different paths can use some of the same vertices. The returned list of paths must be in lexicographical order. You must use backtracking to solve this problem (i.e. do not use brute force).

PYTHON CODE

In: Computer Science

Cohort Study Design Suppose that you have been hired by the UF student health services department...

Cohort Study Design

Suppose that you have been hired by the UF student health services department to design a cohort study to assess the following hypothesis among UF students: Irregular sleep patterns increase the risk of headaches.

Be sure that your design addresses the following elements:

  1. Refine the study hypothesis so that it is as specific as possible and contains all elements of a “good” hypothesis.
  2. How will you identify and define the cases?
    • Are there any exclusion criteria that you would apply?
  3. How will you sample from the underlying population for your “controls”?
    • Who will you select as controls?
    • How will you select them?
  1. How will you define the exposure of interest?
    • How will you collect the information on exposure?
  2. What other information do you want to know about participants that may be related to the exposure of interest and/or the outcome (potential confounders)? Of these, what will you be able to collect and what will you be unable to collect?
  3. Which measures of disease frequency and association will you calculate?
  4. What are the strengths and limitations of your study?
    • Which limitations could be removed by using a different study design?
  5. What other information would you like to know to design this study?
  6. there is no such data, this is just hypothetical study case that what we can do in this case? also there is another question on chegg but not answer in detail like HOW and WHAT

In: Advanced Math

Your task is to calculate the average height of students in the class. You will gather...

Your task is to calculate the average height of students in the class. You will gather each of the student’s height and put it in a list. then you will throw out the shortest and tallest height to take care of any statistical anomalies. Then you will add the heights and divide by the number of student’s in the class.

Heights of Students in inches

Max=77
Josefine=67
Hannah=66
Mia=65
Ben=74
Kevin=70
Marie=64
Aidan=70

Steps On Python:

Declare a list to contain the heights in inches

Ask the user to input values

Add each value to the list

Use appropriate list function to find smallest object

Use appropriate list function to remove that smallest object

Use appropriate list function to find largest object

Use appropriate list function to remove that largest object

Use appropriate list function to add objects in the list,

Then Use appropriate list function to divide that amount by the number of objects in the list

Then print the objects and the average height of students in the class.

In: Computer Science

Using the 3 program files below to read the sample students.txt file and create a singly...

Using the 3 program files below to read the sample students.txt file and create a singly linked-list of students. The code in sll_list.h and mainDriver.c shouldn't be changed, only sll_list.c. The finished program should print out a list that initializes the sampled 5 students and allows the user to use the functions found in mainDriver.c.

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

// mainDriver.c //

#include "sll_list.h"

int main()

{

   int choice,list_size,id;

   do

   {

       printf("1. initialize list of students\n2. add additional student to front of list\n3. add additional student to rear of list\n4. delete student\n5. sort students alphabetically\n6. sort students by idNum\n7. show number of students in list\n8. print students\n9. quit program\n");

     scanf("%d",&choice);

       list_t l;

       l.head=NULL;

       l.tail=NULL;

       switch(choice)

       {

           case 1://initialize list of students

                   scanf("%d",list_size);

                   l.size=list_size;

                   intializeList(list)t *list, FILE *inFile);

                   break;

           case 2://add additional student to front of the list:

                   addToFront(l);

                   break;

           case 3://add additional student to tail of the list:

                   addToRear(l);

                   break;

           case 4://delete student

                   scanf("%d",id);

                   deleteStudent(l,id);

                   break;

           case 5://sort students aplhabetically

                   sortListByLN(l);

                   break;

           case 6://sort students by id

                   sortListByNum(l);

                   break;

           case 7:   //number of students in the list

                   size(l);

                   break;

           case 8:   //printing students in the list

                   printStudents(l);

                   break;

           case 9:

                   printf("quiting from the program");

                   break;

       }

   }while(choice!=9);

   return 0;

}

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx

// sll_list.c //

#include "sll_list.h"

list_t *newList(){

list_t *m;

m=(list_t *)malloc(sizeof(list_t));

m->head = NULL;

m->tail = NULL;

m->size = 0;

return m;

}

student_t *addStudent( FILE *inFile, int whichInput)

{

student_t *k;

sscanf(inFile, "%d %d %d %s %d %s %s %f", &(k->cuid),&(k->age),&(k->dob.day),

(k->dob.month),&(k->dob.year),(k->firstName),(k->lastName),&(k->gpa));

return k;

}

int printMenu(){

int choice;

    printf("1. initialize list of students\n2. add additional student to front of list\n3. add additional student to rear of list\n4. delete student\n5. sort students alphabetically\n6. sort students by idNum\n7. show number of students in list\n8. print students\n9. quit program\n");

    scanf("%d",&choice);

    while( 0>choice && choice>10){

    printf("Enter valid choice 1-9");

    printf("1. initialize list of students\n2. add additional student to front of list\n3. add additional student to rear of list\n4. delete student\n5. sort students alphabetically\n6. sort students by idNum\n7. show number of students in list\n8. print students\n9. quit program\n");

    scanf("%d",&choice);

}

return choice;

}

void intializeList(list_t *list, FILE *inFile)

{

int size = 0;

int whichInput= 0;

sscanf(inFile, "%d", &size);

for(size; size > 0; size--);

{

    addToFront(list, whichInput *inFile);

}

}

void addToFront(list_t *list, int whichInput, FILE *inFile)

{

student_t *k;

k=addStudent(*inFile, whichInput);

k->next = list->head->next;

list->head->next = k;

}

void addToRear( list_t *list, int whichInput, FILE *inFile )

{

student_t *k;

k=(student_t *)malloc(sizeof(student_t));

scanf("%d %d %d %s %d %s %s %f",&(k->cuid),&(k->age),&(k->dob.day),(k->dob.month),&(k->dob.year),(k->firstName),(k->lastName),&(k->gpa));

k->next=l.tail;

l.tail=k;

}

void deleteStudent(list_t l,int cuid)

{

student_t *k,*p;

if(l.head!=NULL)

{

    k=l.head;

    while(k!=NULL)

    {

      if(k->cuid==cuid)

      {

        p->next=k->next;

        free(k);

        break;

      }

      else

      {

        p=k;

        k=k->next;

      }

    }

}

}

void sortListByLN( list_t *list )

{

student_t *t,*p;

int i=0;

if(l.head==NULL)

{

}

else{

    t = l.head;

    p=NULL;

    while(t->next != p)

    {

      if(strcmp(t->firstName,t->next->firstName)>0)

      {

        swap(t,p);

        i==1;

      }

      t=t->next;

    }

    p=t;

}

}

void swap(student_t *s,student_t *p)

{

student_t temp;

temp.age=s->age;

temp.cuid=s->cuid;

temp.gpa=s->gpa;

temp.dob.day=s->dob.day;

strcpy(temp.dob.month, s->dob.month);

temp.dob.year=s->dob.year;

strcpy(temp.firstName,s->firstName);

strcpy(temp.lastName,s->lastName);

s->age=p->age;

s->cuid=p->cuid;

s->gpa=p->gpa;

s->dob.day=p->dob.day;

strcpy(s->dob.month, p->dob.month);

s->dob.year=p->dob.year;

strcpy(s->firstName,p->firstName);

strcpy(s->lastName,p->lastName);

p->age=temp.age;

p->cuid=temp.cuid;

p->gpa=temp.gpa;

p->dob.day=temp.dob.day;

strcpy(p->dob.month, temp.dob.month);

p->dob.year=temp.dob.year;

strcpy(p->firstName,temp.firstName);

strcpy(p->lastName,temp.lastName);

}

void sortListByNum( list_t *list )

{

student_t *t,*p;

int i=0;

if(l.head==NULL)

{

}

else{

    t = l.head;

    p=NULL;

    while(t->next != p)

    {

      if(t->cuid>t->next->cuid)

      {

        swap(t,p);

        i==1;

      }

      t=t->next;

    }

    p=t;

}

}

void count_students(list_t l)

{

student_t temp;

int count=0;

if(l.head==NULL)

{

    printf("Student list is empty");

}

else

{

    student_t *temp=l.head;

    count=0;

    while(temp!=NULL)

    {

      count++;

      temp=temp->next;

    }

    printf("student list contains:%d students",count);

}

}

void print_students(list_t l)

{

student_t *temp;

if(l.head==NULL)

{

    printf("Student list is empty");

}

else

{

    temp=l.head;

    printf("id\t last_name\t firstname\t date\t month\t year\t gpa\n");

    while(temp!=NULL)

    {

      printf("%d \t%s \t%s \t%d \t%s \t%d \t%f \n",temp->cuid,temp->lastName,temp->firstName,temp->dob.day,temp->dob.month,temp->dob.year,temp->gpa);

      temp=temp->next;

    }

}

}

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

// sll_list.h //

#ifndef SLL_LIST_H

#define SLL_LIST_H

#include <stdio.h>

#include <stdlib.h>

#include <string.h>

typedef struct {

                char month[4];

                int day, year;

} dateOfBirth;

typedef struct student {

int age;

float gpa;

int cuid;

dateOfBirth dob;

char lastName[20];

char firstName[15];

struct student *next;

} student_t;

typedef struct list {

student_t *head;

student_t *tail;

int size;

} list_t;

list_t *newList( );

student_t *addStudent( FILE *inFile, int whichInput );

int printMenu( );

void initializeList( list_t *list, FILE *inFile );

void addToFront( list_t *list, int whichInput, FILE *inFile );

void addToRear( list_t *list, int whichInput, FILE *inFile );

void deleteStudent( list_t *list, int idNum );

void swap( student_t *s, student_t *p);

void sortListByLN( list_t *list );

void sortListByNum( list_t *list );

int size( list_t *list );

int isEmpty( list_t *list );

void printStudents ( list_t *list );

#endif /* SLL_LIST_H */

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

// student.txt //

5

19 3.2 123456789 Jan 31 1999 Smith David

20 3.0 456789123 Mar 7 1998 Jackson Susan

18 2.9 789123456 May 14 2000 Miller Scott

19 3.4 987654321 Sep 12 1999 Wilson Marie

20 3.7 654321987 Jun 21 1998 Johnson Curtis

In: Computer Science

Explain measures of interpretation in cohort studies, and provide at least one relevant example.

Explain measures of interpretation in cohort studies, and provide at least one relevant example.

In: Statistics and Probability

what is the difference between case control and cohort trial with examples for each trial?

what is the difference between case control and cohort trial with examples for each trial?

In: Statistics and Probability