Questions
Comment on the validity of Bernoulli’s equation Comment on the comparison of the calculated and measured...

  • Comment on the validity of Bernoulli’s equation Comment on the comparison of the calculated and measured total heads in this experiment.

  • Discuss your results, referring, in particular, to the following:

  • Energy loss and how it is shown by the results of this experiment, and the components of Bernoulli’s equation  

  • Indicate the points of maximum velocity and minimum pressure with venture tube  

  • Suppose mercury instead of water was used as the manometer fluid. How would this affect the accuracy of the measurements?

In: Mechanical Engineering

In a laboratory experiment, 50.0 g of gaseous propane (C3H8) was heated in the presence of...

In a laboratory experiment, 50.0 g of gaseous propane (C3H8) was heated in the presence of air (O2) to produce gaseous carbon dioxide and gaseous water. upon completion of the experiment, 13.0 g of carbon dioxide were obtained.

Balanced Equation: C3H8 (g) + 5O2 (g) --> 3CO2 (g) + 4H2O (g)

a) What is the limiting reactant?

b) what is the theoretical yield?

c) what is the percent yield?

In: Chemistry

In an experiment, an acidic compound is separated from the contaminant (either a basic or neutral...

In an experiment, an acidic compound is separated from the contaminant (either a basic or neutral compound) using liquid-liquid extraction.

List of organic extraction solvents available:

- Dichloromethane

- Diethyl ether

- Ethanol

- Ethyl acetate

- Hexanes

- Methanol

- 3 M HCl

- 3 M NaOH

What will be your approach to determining the best extraction solvent to use in this experiment from the possible organic solvents listed?

In: Chemistry

The 2016 Form 10-K of Dow Chemical disclosed the following: Deferred tax assets increased by $939...

The 2016 Form 10-K of Dow Chemical disclosed the following: Deferred tax assets increased by $939 million and Deferred tax liabilities increased by $336 million. Dow Chemical also reports income tax expense for 2016 of $9 million.
Determine the amount Dow Chemical paid in cash for income taxes for 2016.

In: Accounting

Compare the GNI Index PPP and GDP PPP between Brazil and the United States for years...

Compare the GNI Index PPP and GDP PPP between Brazil and the United States for years 2015 and 2016.

GNI per capita PPP Brazil for 2015 is:
GNI per capita PPP United States for 2016 is:

GDP per capita PPP Brazil for 2015 is:
GDP per capita PPP United States for 2016 is:



In: Economics

1. Translational motion (Particle in a box) We want to design an experiment about energy quantization...

1. Translational motion (Particle in a box) We want to design an experiment about energy quantization of a hydrogen atom via radiating a light. It is needed to predict which range of light do we have to radiate to excite an electron. Let’s assume the electron feels same potential(V=0) in certain distance(L) from the nucleus of hydrogen. 1. Let’s assume L=5.30x10-11m, me(electron mass)=9.11x10-31kg and ℏ=1.05x10-34m2 kgs-1 .

(a) Make a Hamiltonian for an electron in a hydrogen atom.

(b) Solve the Schrödinger equation using the Hamiltonian you made with applying boundary conditions.

(c) If the electron is in a ground state, which wavelength of light do we need to excite electron to 2nd state? What range the light belongs to (infrared, visible light etc.)?

(d) Which wavelength of light do we need to excite electron from nth state to n+1th state? Does wavelength of light get bigger when n increases?

2. Rotational motion

(a) Show that [?̂ ?,?̂ ?] = ?ℏ?̂ ? , [?̂ ?,?̂ ? ] = ?ℏ?̂ ?, [?̂ ? ,?̂ ?] = ?ℏ?̂ ?.

(b) Show that [?̂2 ,?̂ ? ] = 0, and then, without further calculations, justify the remark that [?̂2 ,?̂ ?] = 0 for all ? = ?, ?, and ?. What does this mean in terms of uncertainty principles?

In: Physics

IN C++ 7.22 LAB*: Program: Online shopping cart (Part 2) This program extends the earlier "Online...

IN C++

7.22 LAB*: Program: Online shopping cart (Part 2)

This program extends the earlier "Online shopping cart" program. (Consider first saving your earlier program).

(1) Extend the ItemToPurchase class per the following specifications:

  • Parameterized constructor to assign item name, item description, item price, and item quantity (default values of 0). (1 pt)
  • Public member functions
    • SetDescription() mutator & GetDescription() accessor (2 pts)
    • PrintItemCost() - Outputs the item name followed by the quantity, price, and subtotal
    • PrintItemDescription() - Outputs the item name and description
  • Private data members
    • string itemDescription - Initialized in default constructor to "none"

Ex. of PrintItemCost() output:

Bottled Water 10 @ $1 = $10


Ex. of PrintItemDescription() output:

Bottled Water: Deer Park, 12 oz.


(2) Create three new files:

  • ShoppingCart.h - Class declaration
  • ShoppingCart.cpp - Class definition
  • main.cpp - main() function (Note: main()'s functionality differs from the warm up)

Build the ShoppingCart class with the following specifications. Note: Some can be function stubs (empty functions) initially, to be completed in later steps.

  • Default constructor
  • Parameterized constructor which takes the customer name and date as parameters (1 pt)
  • Private data members
    • string customerName - Initialized in default constructor to "none"
    • string currentDate - Initialized in default constructor to "January 1, 2016"
    • vector < ItemToPurchase > cartItems
  • Public member functions
    • GetCustomerName() accessor (1 pt)
    • GetDate() accessor (1 pt)
    • AddItem()
      • Adds an item to cartItems vector. Has parameter ItemToPurchase. Does not return anything.
    • RemoveItem()
      • Removes item from cartItems vector. Has a string (an item's name) parameter. Does not return anything.
      • If item name cannot be found, output this message: Item not found in cart. Nothing removed.
    • ModifyItem()
      • Modifies an item's description, price, and/or quantity. Has parameter ItemToPurchase. Does not return anything.
      • If item can be found (by name) in cart, check if parameter has default values for description, price, and quantity. If not, modify item in cart.
      • If item cannot be found (by name) in cart, output this message: Item not found in cart. Nothing modified.
    • GetNumItemsInCart() (2 pts)
      • Returns quantity of all items in cart. Has no parameters.
    • GetCostOfCart() (2 pts)
      • Determines and returns the total cost of items in cart. Has no parameters.
    • PrintTotal()
      • Outputs total of objects in cart.
      • If cart is empty, output this message: SHOPPING CART IS EMPTY
    • PrintDescriptions()
      • Outputs each item's description.

Code:

#include <iostream>

#include <string>

#include "ItemToPurchase.h"

using namespace std;

//main

int main()

{

//Declare two objects

ItemToPurchase p1,p2;

string myName;

int myPrice,myQuant;

//Get item1 details

cout<<"Item 1"<<endl;

cout<<"Enter the item name:";

getline(cin,myName);

cout<<"Enter the item price:";

cin>>myPrice;

cout<<"Enter the item quantity:";

cin>>myQuant;

p1.SetName(myName);

p1.SetPrice(myPrice);

p1.SetQuantity(myQuant);

cin.ignore();

//Get item2 details

cout<<"\nItem 2"<<endl;

cout<<"Enter the item name:";

getline(cin,myName);

cout<<"Enter the item price:";

cin>>myPrice;

cout<<"Enter the item quantity:";

cin>>myQuant;

p2.SetName(myName);

p2.SetPrice(myPrice);

p2.SetQuantity(myQuant);

//print total cost

cout<<"\nTOTAL COST"<<endl;

cout<<p1.GetName()<<" "<<p1.GetQuantity()<<" @ $"<<p1.GetPrice()<<" = $"<<p1.GetQuantity()*p1.GetPrice()<<endl;

cout<<p2.GetName()<<" "<<p2.GetQuantity()<<" @ $"<<p2.GetPrice()<<" = $"<<p2.GetQuantity()*p2.GetPrice()<<endl;

cout<<"\nTotal: $"<<p1.GetQuantity()*p1.GetPrice()+p2.GetQuantity()*p2.GetPrice()<<endl;

system("pause");

return 0;

}

In: Computer Science

Articles of Organization Pick a name for a name for your LLC and check with the State of Maryland Department of Assessment and Taxation to see if the name is available.

Articles of Organization Pick a name for a name for your LLC and check with the State of Maryland Department of Assessment and Taxation to see if the name is available. Research the necessary form and adapt that form to properly create the Articles of Organization for your new limited liability company. In creating your new company, choose an address, a resident agent and an address for the resident agent. Identify the purpose of the company and the members of the company who are authorized to sign the document. The Articles of Organization should be sufficient to be accepted by the State of Maryland.

In: Operations Management

Name three innate physical barriers to infection.  Just name them.  3pts Name one skin and one gastrointestinal innate...

  1. Name three innate physical barriers to infection.  Just name them.  3pts
  2. Name one skin and one gastrointestinal innate chemical barrier to infection. 3 pts
  3. Name three domains of the Toll-like receptor. 5 pts
  4. Define what a PAMP is. 5 pts
  5. Name  8 PAMPs and the TLR that recognizes them.  Name the microbe the PAMP is associated with.  8 pts
  6. Define an inflammasome.  How is it activated and in which cells of the body can it be activated in,  when it is activated, what is the cellular response and how does that response contribute to inflammation.  10 pts
  7. Define opsonization.  What are opsonins.  Name three opsonins.  5 pts

In: Biology

***In Java language***The first programming project involves writing a program that computes the salaries for a...

***In Java language***The first programming project involves writing a program that computes the salaries for a collection of employees of different types. This program consists of four classes. 1. The first class is the Employee class, which contains the employee's name and monthly salary, which is specified in whole dollars. It should have three methods: a. A constructor that allows the name and monthly salary to be initialized. b. A method named annualSalary that returns the salary for a whole year. c. A toString method that returns a string containing the name and monthly salary, appropriately labeled. 2. The Employee class has two subclasses. The first is Salesman. It has an additional instance variable that contains the annual sales in whole dollars for that salesman. It should have the same three methods: a. A constructor that allows the name, monthly salary and annual sales to be initialized. b. An overridden method annualSalary that returns the salary for a whole year. The salary for a salesman consists of the base salary computed from the monthly salary plus a commission. The commission is computed as 2% of that salesman's annual sales. The maximum commission a salesman can earn is $20,000. c. An overridden toString method that returns a string containing the name, monthly salary and annual sales, appropriately labeled. 3. The second subclass is Executive. It has an additional instance variable that reflects the current stock price. It should have the same three methods: a. A constructor that allows the name, monthly salary and stock price to be initialized. b. An overridden method annualSalary that returns the salary for a whole year. The salary for an executive consists of the base salary computed from the monthly salary plus a bonus. The bonus is $30,000 if the current stock price is greater than $50 and nothing otherwise. c. An overridden toString method that returns a string containing the name, monthly salary and stock price, appropriately labeled. 4. Finally there should be a fourth class that contains the main method. It should read in employee information from a text file. Each line of the text file will represent the information for one employee for one year. An example of how the text file will look is shown below: 2014 Employee Smith,John 2000 2015 Salesman Jones,Bill 3000 100000 2014 Executive Bush,George 5000 55 The year is the first data element on the line. The file will contain employee information for only two years: 2014 and 2015. Next is the type of the employee followed by the employee name and the monthly salary. For salesmen, the final value is their annual sales and for executives the stock price. As the employees are read in, Employee objects of the appropriate type should be created and they should be stored in one of two arrays depending upon the year. You may assume that the file will contain no more than ten employee records for each year and that the data in the file will be formatted correctly. Once all the employee data is read in, a report should be displayed on the console for each of the two years. Each line of the report should contain all original data supplied for each employee together with 2 that employee's annual salary for the year. For each of the two years, an average of all salaries for all employees for that year should be computed and displayed. The google recommended Java style guide, provided as link in the week 2 content, should be used to format and document your code. Specifically, the following style guide attributes should be addressed:  Header comments include filename, author, date and brief purpose of the program.  In-line comments used to describe major functionality of the code.  Meaningful variable names and prompts applied.  Class names are written in UpperCamelCase.  Variable names are written in lowerCamelCase.  Constant names are in written in All Capitals.  Braces use K&R style. In addition the following design constraints should be followed:  Declare all instance variables private  Avoid the duplication of code Test cases should be supplied in the form of table with columns indicating the input values, expected output, actual output and if the test case passed or failed. This table should contain 4 columns with appropriate labels and a row for each test case. Note that the actual output should be the actual results you receive when running your program and applying the input for the test record. Be sure to select enough different kinds of employees to completely test the program.

In: Computer Science