Questions
Pendulum experiment: 1) create a plot of length (x axis) versus average period (y axis). Make...

Pendulum experiment:

1) create a plot of length (x axis) versus average period (y axis). Make sure to clearly label your axes and indicate units.

(2) create a plot of length (x axis) versus (average period)2 (y axis). Add a linear trend line. Record the slope of the best fit line.

(3) recall that the period of an ideal simple pendulum is given by the following relation: T= 2pi sq rt of L/g

squaring both sides of the equation gives us this relation: T^2=4pi^2L/g= 4pi^2/g*L. Using the slope of your T2 versus L plot determine the acceleration due to gravity.

(4) how close is your experimentally determined gravitational acceleration to 9.81m/s^2? What are potential sources for error in this experiment?

(5) for small angles does the pendulums period of oscillation depend in the initial angular displacement from equilibrium? Explain.

(6) why is it a good idea to use a relatively heavy mass in this experiment? What would you say to a colleague that wanted to use only one washer as the pendulum mass?

(7) use the relation of the period of an ideal simple pendulum. = 2pi square rt of L/g to calculate the ratio of the periods of identical pendulums on the earth and on mars. Note the gravitational acceleration on the surface of mars is approx 3.7 m/s^2.

In: Physics

6.) In the 1952 Hershey-Chase experiment showed that DNA is the genetic material of bacteriophage. Explain...

6.) In the 1952 Hershey-Chase experiment showed that DNA is the genetic material of bacteriophage. Explain where the protein labeled with 35S ended up and where the DNA labeled with 32P ended up after centrifugation in their experiment. a. Draw a diagram of the experiment in support of your explanation. b. Is it possible to do the reverse labeling? (protein labeled with 32P and DNA is labeled with 35S) Why or why not?

7.) For each base-pair set, state if the two pairs are distinguishable using the minor groove, the major groove, or both. a. G:C vs. C:G ________ b. A:T vs. G:C _________

c. A:T vs. T:A _________

8.) Ethidum bromide (EtBr) is a large flat, multiringed cation. Its flat shape allows it to insert itself between the stacked base pairs of double stranded (dsDNA). Because it fluoresces when exposed to UV light and because its fluorescence increases dramatically after intercalation, it is used as a stain to visualize DNA. When ethidium intercalates it causes the DNA to unwind by about 26 degrees, reducing the normal rotation per base pair, decreasing the twist (T) of the DNA.

a. What effect would this change have on the writhe (W) of the plasmid?

b. When EtBr is used to visualize a relaxed covalently closed circular plasmid by gel electrophoresis, what effect would this have on the migration of the plasmid?

In: Biology

Consider the following matched samples representing observations before and after an experiment. Assume that the sample...

Consider the following matched samples representing observations before and after an experiment. Assume that the sample differences are normally distributed. Use Table 2.

  Before 2.5 1.8 1.4 -2.9 1.2 -1.9 -3.1 2.5
  After 2.9 3.1 3.9 -1.8 0.2 0.6 -2.5 2.9

Let the difference be defined as Before – After.

a.

Construct the competing hypotheses to determine if the experiment increases the magnitude of the observations.

H0: μD = 0; HA: μD ≠ 0
H0: μD ≥ 0; HA: μD < 0
H0: μD ≤ 0; HA: μD > 0
b-1.

Implement the test at a 5% significance level. (Negative value should be indicated by a minus sign. Round all intermediate calculations to at least 4 decimal places and final answer to 2 decimal places.)

  Test statistic   
b-2.

What is the p-value?

0.005 < p-value < 0.01
0.01 < p-value < 0.025
0.025 < p-value < 0.05
0.05 < p-value < 0.10
0.1 < p-value < 0.2
b-3.

What is the conclusion to the hypothesis test?

We (Click to select)rejectdo not reject H0. At the 5% significance level, We (Click to select)cancannot conclude that the experiment increases the magnitude of the observations.

c. Do the results change if we implement the test at a 1% significance level?
Yes
No

In: Math

Java Program Suppose a student was taking 5 different courses last semester. Write a program that...

Java Program

Suppose a student was taking 5 different courses last semester. Write a program that

(a) asks the student to input his/her name, student ID, marks for these 5 courses,

(b) calculate the average,

(c) determine the letter grade of each course.

(d) record the number of courses whose final letter grade is A+, A, A-, .... , F+, F, F-.

(e) Output the following information in a nice format: student name, student ID, listing of marks, the average, letter grade for each course, and the number of courses in each letter grade category.

I dont know how to do part ( d )

here is my code:

import java.util.Scanner;

public class Question_2 {

   public String Grade(int mark) {

       String GradeLetter = "";

       if (mark >= 93 && mark <= 100)

           GradeLetter = "A+";

       if (mark >= 86 && mark < 93)

           GradeLetter = "A";

       if (mark >= 80 && mark < 86)

           GradeLetter = "A-";

       if (mark >= 77 && mark < 80)

           GradeLetter = "B+";

       if (mark >= 73 && mark < 77)

           GradeLetter = "B";

       if (mark >= 70 && mark < 73)

           GradeLetter = "B-";

       if (mark >= 67 && mark < 70)

           GradeLetter = "C+";

       if (mark >= 63 && mark < 67)

           GradeLetter = "C";

       if (mark >= 60 && mark < 63)

           GradeLetter = "C-";

       if (mark >= 57 && mark < 60)

           GradeLetter = "D+";

       if (mark >= 53 && mark < 57)

           GradeLetter = "D";

       if (mark >= 50 && mark < 53)

           GradeLetter = "D-";

       if (mark >= 35 && mark < 50)

           GradeLetter = "F";

       if (mark >= 0 && mark < 35)

           GradeLetter = "F-";

       return GradeLetter;

   }

   public static void main(String[] args) {

       Question_2 q2 = new Question_2();

       // declare variables

       String name;// student name

       int studentID;// student ID

       int mark1, mark2, mark3, mark4, mark5;// student marks in each 5 courses

       // asks the student to input his/her name

       System.out.println("Input your first name: ");

       Scanner input = new Scanner(System.in);

       name = input.nextLine();

       // asks the student to input student ID

       System.out.println("Input your StudentID (integer in 5 digits),ex:000000 :");

       studentID = input.nextInt();

       // asks the student to input marks of 5 different courses last semester

       System.out.println("Input your courses grade (0-100)integer number ");

       System.out.println("Your course1's grade: ");

       mark1 = input.nextInt();

       System.out.println("Your course2's grade: ");

       mark2 = input.nextInt();

       System.out.println("Your course3's grade: ");

       mark3 = input.nextInt();

       System.out.println("Your course4's grade: ");

       mark4 = input.nextInt();

       System.out.println("Your course5's grade: ");

       mark5 = input.nextInt();

       // Calculate the average of 5 different courses last semester

       double average = (mark1 + mark2 + mark3 + mark4 + mark5) / 5.0;

       /*

       * Output the following information in a nice format: student name,

       * student ID, listing of marks, the average, letter grade for each

       * course, and the number of courses in each letter grade category.

       */

       System.out.println("**********************************************");

       System.out.println("Student Name: " + name);

       System.out.println("Student ID : " + studentID);

       System.out.println(name + " grade in " + "Course1: " + mark1 + " " + q2.Grade(mark1));

       System.out.println(name + " grade in " + "Course2: " + mark2 + " " + q2.Grade(mark2));

       System.out.println(name + " grade in " + "Course3: " + mark3 + " " + q2.Grade(mark3));

       System.out.println(name + " grade in " + "Course4: " + mark4 + " " + q2.Grade(mark4));

       System.out.println(name + " grade in " + "Course5: " + mark5 + " " + q2.Grade(mark5));

       System.out.println(name + " avaerage grade is: " + average);

       System.out.println("**********************************************");

   }

}

In: Computer Science

Java Program Suppose a student was taking 5 different courses last semester. Write a program that...

Java Program

Suppose a student was taking 5 different courses last semester. Write a program that

(a) asks the student to input his/her name, student ID, marks for these 5 courses,

(b) calculate the average,

(c) determine the letter grade of each course.

(d) record the number of courses whose final letter grade is A+, A, A-, .... , F+, F, F-.

(e) Output the following information in a nice format: student name, student ID, listing of marks, the average, letter grade for each course, and the number of courses in each letter grade category.

I dont know how to do d

here is my code:

import java.util.Scanner;

public class Question_2 {

   public String Grade(int mark) {

       String GradeLetter = "";

       if (mark >= 93 && mark <= 100)

           GradeLetter = "A+";

       if (mark >= 86 && mark < 93)

           GradeLetter = "A";

       if (mark >= 80 && mark < 86)

           GradeLetter = "A-";

       if (mark >= 77 && mark < 80)

           GradeLetter = "B+";

       if (mark >= 73 && mark < 77)

           GradeLetter = "B";

       if (mark >= 70 && mark < 73)

           GradeLetter = "B-";

       if (mark >= 67 && mark < 70)

           GradeLetter = "C+";

       if (mark >= 63 && mark < 67)

           GradeLetter = "C";

       if (mark >= 60 && mark < 63)

           GradeLetter = "C-";

       if (mark >= 57 && mark < 60)

           GradeLetter = "D+";

       if (mark >= 53 && mark < 57)

           GradeLetter = "D";

       if (mark >= 50 && mark < 53)

           GradeLetter = "D-";

       if (mark >= 35 && mark < 50)

           GradeLetter = "F";

       if (mark >= 0 && mark < 35)

           GradeLetter = "F-";

       return GradeLetter;

   }

   public static void main(String[] args) {

       Question_2 q2 = new Question_2();

       // declare variables

       String name;// student name

       int studentID;// student ID

       int mark1, mark2, mark3, mark4, mark5;// student marks in each 5 courses

       // asks the student to input his/her name

       System.out.println("Input your first name: ");

       Scanner input = new Scanner(System.in);

       name = input.nextLine();

       // asks the student to input student ID

       System.out.println("Input your StudentID (integer in 5 digits),ex:000000 :");

       studentID = input.nextInt();

       // asks the student to input marks of 5 different courses last semester

       System.out.println("Input your courses grade (0-100)integer number ");

       System.out.println("Your course1's grade: ");

       mark1 = input.nextInt();

       System.out.println("Your course2's grade: ");

       mark2 = input.nextInt();

       System.out.println("Your course3's grade: ");

       mark3 = input.nextInt();

       System.out.println("Your course4's grade: ");

       mark4 = input.nextInt();

       System.out.println("Your course5's grade: ");

       mark5 = input.nextInt();

       // Calculate the average of 5 different courses last semester

       double average = (mark1 + mark2 + mark3 + mark4 + mark5) / 5.0;

       /*

       * Output the following information in a nice format: student name,

       * student ID, listing of marks, the average, letter grade for each

       * course, and the number of courses in each letter grade category.

       */

       System.out.println("**********************************************");

       System.out.println("Student Name: " + name);

       System.out.println("Student ID : " + studentID);

       System.out.println(name + " grade in " + "Course1: " + mark1 + " " + q2.Grade(mark1));

       System.out.println(name + " grade in " + "Course2: " + mark2 + " " + q2.Grade(mark2));

       System.out.println(name + " grade in " + "Course3: " + mark3 + " " + q2.Grade(mark3));

       System.out.println(name + " grade in " + "Course4: " + mark4 + " " + q2.Grade(mark4));

       System.out.println(name + " grade in " + "Course5: " + mark5 + " " + q2.Grade(mark5));

       System.out.println(name + " avaerage grade is: " + average);

       System.out.println("**********************************************");

   }

}

In: Computer Science

Retrieve the Annual Report for a firm and analyze financial ratios for two consecutive years. Analyze...

Retrieve the Annual Report for a firm and analyze financial ratios for two consecutive years.

Analyze the ratios and describe the change of the financial condition over two years.

Additionally, the student should examine the IFRS standards on U. S. financial accounting and compare and contrast its position with that of U.S. GAAP. Also do vertical and horizontal analysis.

Disney 2016 and 2017

Cost of Goods Sold Ratio 2016 58.62% 2017 59.99%

Gross Profit 2016 22.94 billion                  2017 21.98 billion

Operating Ratio 2016 15.8% 2017 14.89%

Operating Income Ratio 2016 25.18% 2017 24.72%

Profit Margin 2016 16.96% 2017 16.35%

Working Capital 2016 $-1.08 2017 -$4.99

Current Ratio 2016 93.59% 2017 74.54%

Receivable turnover 2016 6.14% 2017 6.39%

Inventory turnover 2016 21.58% 2017 22.07%

Profit Margin 2016 16.96% 2017 16.35%

debt equity ratio 2016 1.033% 2017 1.20%

shareholder equity ratio 2016 47.08% 2017 43.14%

Return on equity 2016 21.7% 2017 21.73%

Return on assets 2016 10.42% 2017 9.56%

P/E ratio 2016 17.43 2017 18.43%

Cash --
Cash & Equivalents 4,017.0
Short Term Investments --
Cash and Short Term Investments 4,017.0
Accounts Receivable - Trade, Net 7,826.0
Notes Receivable - Short Term --
Receivables - Other 807.0
Total Receivables, Net 8,633.0
Total Inventory 1,373.0
Prepaid Expenses 445.0
Other Current Assets, Total 1,421.0
Total Current Assets 15,889.0
Property/Plant/Equipment, Total - Gross 57,443.0
Accumulated Depreciation, Total (29,037.0)
Property/Plant/Equipment, Total - Net 28,406.0
Goodwill, Net 31,426.0
Intangibles, Net 14,476.0
Long Term Investments 3,202.0
Note Receivable - Long Term 1,688.0
Other Long Term Assets, Total 702.0
Other Assets, Total --
Total Assets 95,789.0
Accounts Payable 6,490.0
Payable/Accrued --
Accrued Expenses 1,819.0
Notes Payable/Short Term Debt 0.0
Current Port. of LT Debt/Capital Leases 6,172.0
Other Current liabilities, Total 5,114.0
Total Current Liabilities 19,595.0
Long Term Debt 19,119.0
Capital Lease Obligations --
Total Long Term Debt 19,119.0
Total Debt 25,291.0
Deferred Income Tax 4,480.0
Minority Interest 4,837.0
Other Liabilities, Total 6,443.0
Total Liabilities 54,474.0
Redeemable Preferred Stock, Total --
Preferred Stock - Non Redeemable, Net 0.0
Common Stock, Total 36,248.0
Additional Paid-In Capital --
Retained Earnings (Accumulated Deficit) 72,606.0
Treasury Stock - Common (64,011.0)
ESOP Debt Guarantee --
Unrealized Gain (Loss) 8.0
Other Equity, Total (3,536.0)
Total Equity 41,315.0
Total Liabilities & Shareholders' Equity 95,789.0
Shares Outs - Common Stock Primary Issue 1,500.00
Shares Outstanding - Common Issue 2 --
Shares Outstanding - Common Issue 3 --
Shares Outstanding - Common Issue 4 --
Total Common Shares Outstanding 1,500.00
Total Preferred Shares Outstanding
Revenue 55,137.0
Other Revenue, Total --
Total Revenue 55,137.0
Cost of Revenue, Total 30,306.0
Gross Profit 24,831.0
Selling/General/Admin. Expenses, Total 8,176.0
Research & Development --
Depreciation/Amortization 2,782.0
Interest Expense, Net - Operating --
Interest/Investment Income - Operating --
Interest Expense(Income) - Net Operating --
Unusual Expense (Income) 20.0
Other Operating Expenses, Total --
Total Operating Expense 41,284.0
Operating Income 13,853.0
Interest Expense, Net Non-Operating (507.0)
Interest/Invest Income - Non-Operating 442.0
Interest Income(Exp), Net Non-Operating --
Gain (Loss) on Sale of Assets --
Other, Net --
Net Income Before Taxes 13,788.0
Provision for Income Taxes 4,422.0
Net Income After Taxes 9,366.0
Minority Interest (386.0)
Equity In Affiliates --
U.S. GAAP Adjustment --
Net Income Before Extra. Items 8,980.0
Accounting Change --
Discontinued Operations --
Extraordinary Item --
Tax on Extraordinary Items --
Net Income 8,980.0
Preferred Dividends --
General Partners' Distributions --
Miscellaneous Earnings Adjustment --
Pro Forma Adjustment --
Interest Adjustment - Primary EPS --
Income Available to Com Excl ExtraOrd 8,980.0
Income Available to Com Incl ExtraOrd 8,980.0
Basic Weighted Average Shares 1,568.00
Basic EPS Excluding Extraordinary Items 5.727
Basic EPS Including Extraordinary Items 5.727
Dilution Adjustment --
Diluted Weighted Average Shares 1,578.00
Diluted EPS Excluding ExtraOrd Items 5.691
Diluted EPS Including ExtraOrd Items 5.691
DPS - Common Stock Primary Issue 1.560
Gross Dividends - Common Stock 2,445.0
Total Special Items 20.0
Normalized Income Before Taxes 13,808.0
Effect of Special Items on Income Taxes 6.4
Inc Tax Ex Impact of Sp Items 4,428.4
Normalized Income After Taxes 9,379.6
Normalized Inc. Avail to Com. 8,993.6
Basic Normalized EPS 5.736
Diluted Normalized EPS 5.699
Net Income/Starting Line 9,366.0
Depreciation/Depletion 2,782.0
Amortization --
Deferred Taxes 334.0
Non-Cash Items (29.0)
Changes in Working Capital (110.0)
Cash from Operating Activities 12,343.0
Capital Expenditures (3,623.0)
Other Investing Cash Flow Items, Total (488.0)
Cash from Investing Activities (4,111.0)
Financing Cash Flow Items (1,125.0)
Total Cash Dividends Paid (2,445.0)
Issuance (Retirement) of Stock, Net (9,092.0)
Issuance (Retirement) of Debt, Net 3,703.0
Cash from Financing Activities (8,959.0)
Foreign Exchange Effects 31.0
Net Change in Cash (696.0)

--

In: Finance

Write code to read a list of song names and durations from input. Input first receives...

Write code to read a list of song names and durations from input. Input first receives a song name, then the duration of that song. Input example: Time 424 Money 383 quit.

#include <iostream>
#include <string>
#include <vector>
using namespace std;

class Song {
public:
void SetNameAndDuration(string songName, int songDuration) {
name = songName;
duration = songDuration;
}
void PrintSong() const {
cout << name << " - " << duration << endl;
}
string GetName() const { return name; }
int GetDuration() const { return duration; }

private:
string name;
int duration;
};

int main() {
vector<Song> songPlaylist;
Song currentSong;
string currentName;
int currentDuration;
unsigned int i;

cin >> currentName;
while (currentName != "quit") {

/* Your code goes here */

}

for (i = 0; i < songPlaylist.size(); ++i) {
currentSong = songPlaylist.at(i);
currentSong.PrintSong();
}

return 0;
}

In: Computer Science

We have a class defined for vehicles. Create two new vehicles called car1 and car2. Let...

We have a class defined for vehicles. Create two new vehicles called car1 and car2. Let car1 to be a red convertible worth $60,000.00 with a name of Fer, and car2 to be a blue van named Jump worth $10,000.00.

# define the Vehicle class

class Vehicle:

             name = ""

             kind = "car"

             color = ""

             value = 100.00

  

def description(self):

                         print (“Name of car =”,self.name)

print (“Kind of car =”,self.kind)

print (“Color of car =”,self.color)

print (“Value of car =”,self.value)

# test code

car1.description()

car2.description()

Using the program above, add in your own codes in order to complete the program to produce the output as below:

Name of car = Fer

Kind of car = Convertible

Color of car = Red

Value of car = $60,000

Name of car = Jump

Kind of car = Van

Color of car = Blue

Value of car = $10,000

#Python

In: Computer Science

For the following commands you must be logged in as user “system”. You will need to...

For the following commands you must be logged in as user “system”. You will need to do some research on the commands CREATE USER; GRANT CREATE SESSION; GRANT CREATE…..; GRANT ALTER …., GRANT SELECT….; REVOKE ……; and EXECUTE …..

5. Create two database users:  The first is a concatenation of your first and last name (e.g. johndoe).  The second is a concatenation of your instructors first and last name (e.g. sallysmith)

6. Assign the two users privileges to connect to the database.

7. Assign the user with your first and last name the privilege to select data from the employees table.

8. Assign the user with your instructors first and last name all privileges to the Departments table.

9. Assign the user with your first and last name the privilege to execute any procedure.

10. Take away the instructors privilege to execute any SQL commands on the Departments table

In: Computer Science

1. Dictionaries and Lists. a) Implement a list of student dictionaries containing the following data: name:...

1. Dictionaries and Lists.

a) Implement a list of student dictionaries containing the following data:

name: Andy, classes: ET580 MA471 ET574

name: Tim, classes: ET574 MA441 ET575

name: Diane, classes: MA441 MA471 ET574

name: Lucy, classes: ET574 ET575 MA471

name: Steven, classes: ET574 MA441 ET580

b) Implement a dictionary of courses and set each courses enrollment to 0: ET580: 0 ET574: 0 ET575: 0 MA441: 0 MA471: 0

c) Use a loop and if statements to read class data from the list of students and update the enrollment for each course.

d) Print the updated list of courses. If the above steps are done correctly your output should match the output example.

Output Example

ET580 2 ET575 2 ET574 5 MA441 3 MA471 3

In: Computer Science