Questions
Driven RC circuit in parallel. A capacitor C is connected in parallel to a resistor R...

Driven RC circuit in parallel. A capacitor C is connected in parallel to a resistor R and an AC source providing a voltage v(t) = V sin(ωt).

(a) Make a phasor diagram at time t showing all relevant based on Kirchhoff’s rules.

(b) Find the impedance of this circuit and make a plot of Z vs. ω.

(c) What are the small and large frequency behaviors of the peak capacitor and resistor currents?

(d) What is the phase difference between the total current and the input voltage? (e) (5pts.) Write an expression for i(t), the total current thought the circuit, if V = 120 V, C = 47 µF, R = 230 Ω, and f = 440 Hz

In: Physics

My physics class is working on Ohm's law and we did a lab about series and...

My physics class is working on Ohm's law and we did a lab about series and parallel circuits. While doing the lab report I got stuck on this question below. Please help!

"What contributed to the percentage difference? In other words, account for sources of errors."

This is my data:

Part I

Voltage (V)

Current (A)

Resistance (Ω)

R = V/I

% diff.

33

0.33A

100

0

45

0.45A

100

0

60

0.60A

100

0

75

0.75A

100

0

90

0.90A

100

0

120

1.20A

100

0

Part II

Voltage (V)

Current (A)

Resistance (Ω)

R = V/I

% diff.

33

0.12A

275

5%

45

0.17A

264.7

5.3%

60

0.22A

272.7

2.7%

75

0.28A

267.8

2.2%

90

0.33A

272.7

2.7%

120

0.44A

272.7

2.7%

Part III:

Voltage (V)

Current (A)

Resistance (Ω)

R =V/I

% diff.

33

1.11A

29.7

2.3%

45

1.51A

29.8

2.2%

60

2.02A

29.7

2.3%

75

2.52A

29.7

2.3%

90

3.02A

29.8

2.2%

120

4.03A

29.7

2.3%

In: Physics

i wish to solve the equations v'=v^3/3-w+i, w'=g(v+a-bw) with a=0.8, b=0.7, g=0.08, i=0.5 using ode45 in...

i wish to solve the equations v'=v^3/3-w+i, w'=g(v+a-bw) with a=0.8, b=0.7, g=0.08, i=0.5 using ode45 in matlab. i solved in on paper but i don't know how to type the codes in matlab.

i googled this but for one unfamiliar with the code, it is hard to fathom what they are solving i also would like the code to show the plots of both variables changing with time and the phase plots of both variables.

In: Computer Science

PYTHON    Generates a list of datetimes given a list of dates and a list of...

PYTHON   

Generates a list of datetimes given a list of dates and a list of times. All possible combinations of date and time are contained within the result. The result is sorted in chronological order.

For example,
Input:
>>> timetable([date(2019,9,27), date(2019,9,30)], [time(14,10), time(10,30)])
Output:
[datetime(2019,9,27,10,30), datetime(2019,9,27,14,10), datetime(2019,9,30,10,30), datetime(2019,9,30,14,10)]

Current code:

from datetime import date, time, datetime

def timetable(dates, times):

lis = []
  
for c in times:
for y in dates:
x = f"(datetime{y},{c})"
lis.append(x)

#doesn't work at all

In: Computer Science

CompSci 251: Intermediate Computer ProgrammingLab 4 – 2019 Introduction For this lab we will be looking...

CompSci 251: Intermediate Computer ProgrammingLab 4 – 2019

Introduction

For this lab we will be looking at static, or class variables. Remember, instance variables are associated with a particular instance, where static variables belong to the class. If there are n instances of a class, there are n copies of an instance variable, but exactly one copy of a static variable. Underlined items are static members of the class.

The lab also uses enums to control what is an acceptable major. Enums are a special kind of class in Java that represent constant values. Enums can also have methods, which I have overridden the toString method. You do not need to change the enum CollegeMajor class. Look at the driver for how they are accessed. Also, they can be compared against other enums as if they were primitive types.

What you need to do

  •  Create a Student class conforming to the diagram above.

  •  Each student has a name, GPA, and major. Assume once a name is chosen it can never be

    changed. This means no setter is required for name.

  •  The class keeps track of how many students have been created and their combined GPA. These

    values are used for getStudentAvg(), which computes the average for all students.

  •  The class also manages the total number of CompSci students and their total GPA. These values

    should only be affected by CompSci majors and are used for getCompSciAvg(). Take note,

    CompSci majors are still considered part of all students.

  •  The setGPA sets the GPA to be between 0.0 and 4.0. When changing a student’s GPA, it must

    accurately update the totalGPA, and possibly totalCompSciGPA, static variable. If the value is not

    in range, nothing happens.

  •  The equals method returns true if all instance variables are equal.

  •  The toString() should return a String in the format.

o Student Name: <name>, Major: <major>, GPA: <gpa>
 A simple driver is provided. When complete your code should look like below.

Driver Output

All students:
Student name: Eva major: Biology GPA: 3.5
Student name: Taiyu major: Computer Science GPA: 4.0 Student name: Shaina major: Civil Engineer GPA: 3.5 Student name: Megan major: Accounting GPA: 3.0
Student name: Antonio major: Computer Science GPA: 3.0 Student name: Jim major: Chemistry GPA: 1.5
Student name: Morgan major: Computer Science GPA: 3.5

Testing equals methods.
Does Eva equal Taiyu?
They are not the same.
Does Antonio equal Antonio?
They are the same.
Testing static variables.
All Students avg = 3.14
All CompSci Students avg = 3.50

Time to set all gpa values to 3.0.
If done correctly, both averages should be 3.0.

All Students avg = 3.00
All CompSci Students avg = 3.00

Time to set all gpa values of CompSci Students to 4.0. If done correctly, both averages should be different.

All Students avg = 3.43
All CompSci Students avg = 4.00

given code

public enum CollegeMajor {

   COMPSCI,BIOLOGY,NURSING,ACCOUNTING,ARCHITECTURE,FINANCE,CHEMISTRY,CIVILENGINEERING;

   @Override
   public String toString() {
       switch(this) {
       case COMPSCI:
           return "Computer Science";
       case BIOLOGY:
           return "Biology";
       case NURSING:
           return "Nursing";
       case ACCOUNTING:
           return "Accounting";
       case ARCHITECTURE:
           return "Architecture and Interior Design";
       case FINANCE:
           return "Finance";
       case CHEMISTRY:
           return "Chemistry";
       case CIVILENGINEERING:
           return "Civil Engineer";
       default:
           return "";
       }
   }

}

ublic class Driver {

   public static void main(String[] args) {

       Student[] students = new Student[7];

       students[0] = new Student("Eva", 3.5, CollegeMajor.BIOLOGY);
       students[1] = new Student("Taiyu", 4.0, CollegeMajor.COMPSCI);
       students[2] = new Student("Shaina", 3.5, CollegeMajor.CIVILENGINEERING);
       students[3] = new Student("Megan", 3.0, CollegeMajor.ACCOUNTING);
       students[4] = new Student("Antonio", 3.0, CollegeMajor.COMPSCI);
       students[5] = new Student("Jim", 1.5, CollegeMajor.CHEMISTRY);
       students[6] = new Student("Morgan", 3.5, CollegeMajor.COMPSCI);

       System.out.println("All students:");
      
       for(Student s: students) {
           System.out.println(s);
       }
      
       System.out.println("\n\nTesting equals methods.\n");
      
       System.out.println("Does " + students[0].getName() + " equal " + students[1].getName() + "?");  
       if(students[0].equals(students[1])) {
           System.out.println("They are the same.");
       } else {
           System.out.println("They are not the same.");
       }
      
       System.out.println("\nDoes " + students[4].getName() + " equal " + students[4].getName() + "?");  
       if(students[4].equals(students[4])) {
           System.out.println("They are the same.");
       } else {
           System.out.println("They are not the same.");
       }
      
       System.out.println("\n\nTesting static variables.\n");
       System.out.printf("All Students avg = %.2f\n", Student.getStudentAvg());
       System.out.printf("All CompSci Students avg = %.2f\n", Student.getCompSciAvg());

       System.out.println("\nTime to set all gpa values to 3.0.");
       System.out.println("If done correctly, both averages should be 3.0.\n");

       for(Student s: students) {
           s.setGPA(3.0);
       }

       System.out.printf("All Students avg = %.2f\n", Student.getStudentAvg());
       System.out.printf("All CompSci Students avg = %.2f\n", Student.getCompSciAvg());

       System.out.println("\nTime to set all gpa values of CompSci Students to 4.0.");
       System.out.println("If done correctly, both averages should be different.\n");

       for(Student s: students) {
           if(s.getMajor()==CollegeMajor.COMPSCI)
               s.setGPA(4.0);
       }

       System.out.printf("All Students avg = %.2f\n", Student.getStudentAvg());
       System.out.printf("All CompSci Students avg = %.2f\n", Student.getCompSciAvg());

   }

}

In: Computer Science

There are 10000 students participate in an exam and the exam score approximately follow a normal...

There are 10000 students participate in an exam and the exam score approximately follow a normal distribution. Given that 359 students get scores above 90 in the exam and 1151 students get lower than 60. If there are 2500 students pass the exam, find out the lowest score to pass

In: Statistics and Probability

Traditionally 35% of the students at Wortham University were in the Business College, 35% of the...

Traditionally 35% of the students at Wortham University were in the Business College, 35% of the students were in the Liberal Arts College, and 30% of the students were in the Education College. To see whether or not the proportions have changed, a sample of 300 students was taken. Ninety of the sample students are in the Business College, 120 are in the Liberal Arts College, and 90 are in the Education College. The hypothesis is to be tested at the 5% level of significance. The critical value from the table equals

In: Statistics and Probability

A history teacher believes that students in an afternoon class score higher than the students in...

A history teacher believes that students in an afternoon class score higher than the students in a morning class. The results of a special exam are shown below. Can the teacher conclude that the afternoon students have a higher score? Use α = 0.01. Morning Students Afternoon Students

n1 = 36 n2 = 41 x1= 83   

x2 = 86 s1 = 5.8 s2 = 6.3

null hypothesis

and t statistic , p value

In: Statistics and Probability

In a class, there are 13 students. Out of those 13, 5 students are freshman a)...

In a class, there are 13 students. Out of those 13, 5 students are freshman

a) If we pick three students, without replacement, what is the chance that at least one of them is a freshman?

b) If we pick 2 students, without replacement, what is the chance that one of them is a freshman and one of them is not a freshman?

c) If we pick five students, without replacement, what is the chance that two of them are freshman and three of them are not freshman?

In: Statistics and Probability

A university financial aid office polled an SRS of undergraduate students to study their summer employment....

A university financial aid office polled an SRS of undergraduate students to study their summer employment. Not all students were employed in the previous summer. Among 797 students, 518 of them were employed.

a. Is there evidence to support that the proportion of students employed during the summer is greater than 60%? Using a significance level 0.05.

b. Construct a 95% confidence interval for the proportion of students who were employed during the summer.

In: Statistics and Probability