Questions
1 How internet came into existence?? 2 Why internet replaced media?? 2.b it is a good...

1 How internet came into existence??

2 Why internet replaced media??

2.b it is a good thing?

In: Economics

12. Object 1 has twice the mass of Object 2. Object 2 has the same momentum...

12. Object 1 has twice the mass of Object 2. Object 2 has the same momentum as Object 1. Which of the following is true? a. One object has 0.707 times the kinetic energy of the other. b. One object has twice the kinetic energy of the other. c. One object has 4 times the kinetic energy of the other. d. Both objects have the same kinetic energy.

In: Physics

2. Consider a firm with the following production function: Q = K 1/3 L 2/3 (a)...

2. Consider a firm with the following production function: Q = K 1/3 L 2/3

(a) Consider an output level of Q = 100. Find the expression of the isoquant for this output level.

(b) Find the marginal product of labor, MPL. Is it increasing, decreasing, or constant in the units of labor, L, that the firm uses?

(c) Find the marginal product of capital, MPK. Is it increasing, decreasing, or constant in the units of capital, K, that the firm uses?

(d) Use your result in parts (b)-(c) to find the marginal rate of technical substitution, MRTS, for this firm.

(e) Is the MRTS increasing or decreasing in the units of labor, L? What does that imply about the shape of the isoquant?

(f) Given your result in part (d), what can you say about the firm’s ability to substitute one input for another? (g) Assume now that the firm were to increase all inputs by a common factor > 0. What happens to the output that the firm produces? [Hint: check whether the firm’s production function exhibits increasing, decreasing, or constant returns to scale.]

In: Economics

Part 2: For each of the following therapies. 1. Cognitive Behavioral Therapy 2. Psychodynamic Psychotherapy 3....

Part 2: For each of the following therapies.

1. Cognitive Behavioral Therapy 2. Psychodynamic Psychotherapy 3. Dialectical Behavioral Therapy 4.Parent-child Interaction Therapy 5. Parent Management Training 6. Multisystemic Therapy

A. Describe the therapy.

B. Discuss how the therapy may benefit someone with an impulse control disorder.

C. What type(s) of impulse control disorder(s) would be treated using this therapy?

In: Nursing

For the following causal difference equation, given that y[-1] = 2, y[-2] = 3, and x[n]...

For the following causal difference equation,
given that y[-1] = 2, y[-2] = 3, and x[n] = 3nu[n], solve using z-Transforms.
(Hint: convert to delay operator form, find the z-Transform, use PFE to find the inverse z-Transform)

y[n + 2] – 3y[n + 1] + 2y[n] = x[n + 1]

In: Electrical Engineering

Create an HTML form with the following: 2 text input fields 1 text area 2 radio...

Create an HTML form with the following:

  • 2 text input fields
  • 1 text area
  • 2 radio buttons or 3 checkboxes
  • 1 button
  • Include labels for fields

In: Computer Science

2. Discuss the concepts of emotional expressions and relationships in early development (1-2 paragraphs) 6. Discuss...

2. Discuss the concepts of emotional expressions and relationships in early development (1-2 paragraphs)
6. Discuss the process of brain development in early childhood. How ford the concept of nature v. Nurture relate to this issue? (1-2 paragraphs)

In: Psychology

1. Please explain in detail what is internal marketing (2 sentences 2 point). Think of four...

1. Please explain in detail what is internal marketing (2 sentences 2 point). Think of four strategies that can enhance a company’s internal marketing (4 sentences 6 points).

2. Please list five different approaches to innovate service (5 sentences 5 points) and give an example (try not to repeat the same examples in the slides) for each approach (5 sentences 5 points).

3. Service providers often use instrumental controls and normative controls to influence customer behavior. For example, car rental companies may want to use these control methods to make their customers follow the non-smoking policy. In this case, please provide an instrumental control method and a normative control method (2 sentences 4 points). Please discuss the conditions under which the normative control method will be more effective? (2 sentences 2 points)

In: Operations Management

Let’s define a new number system, where we represent a number by the remainder we get...

Let’s define a new number system, where we represent a number by the remainder we get on
dividing by successive primes, i.e., by 2, 3, 5, 7, 11, 13, 17, etc. Thus, 15 might be represented as
[1,0,0], and 27 might be [1,0,2].

1.) What numbers do [1, 1, 1, 1] and [1, 2, 3, 4] represent? Are the representations unique? What
other numbers might these lists represent?

2.) We know that 15 + 27 = 42. What is the representation of 42? Can you see how to get this from
the representations for 15 and 27?

In: Computer Science

Task Create a class called Mixed. Objects of type Mixed will store and manage rational numbers...

Task

Create a class called Mixed. Objects of type Mixed will store and manage rational numbers in a mixed number format (integer part and a fraction part). The class, along with the required operator overloads, should be written in the files mixed.h and mixed.cpp.

Details and Requirements

  1. Finish Lab 2 by creating a Mixed class definition with constructor functions and some methods.

  2. The Mixed class should have public member functions Evaluate(), ToFraction(), and Simplify(). The Evaluate() function should return a double, the others don’t return anything. These functions have no parameters. The names must match the ones here exactly. They should do the following:

    • Evaluate function should return the decimal equivalent of the mixed number.
    • Simplify function should simplify the mixed number representation to lowest terms. This means that the fraction part should be reduced to lowest terms, and the fraction part should not be an improper fraction (i.e. disregarding any negative signs, the numerator is smaller than the denominator).
    • ToFraction function should convert the mixed number into fraction form. (This means that the integer part is zero, and the fraction portion may be an improper fraction).
  3. Create an overload of the extraction operator >> for reading mixed numbers from an input stream. The input format for a Mixed number object will be:

    integer numerator/denominator

    i.e. the integer part, a space, and the fraction part (in numerator/denominator form), where the integer, numerator, and denominator parts are all of type int. You may assume that this will always be the format that is entered (i.e. your function does not have to handle entry of incorrect types that would violate this format). However, this function should check the values that come in. In the case of an incorrect entry, just set the Mixed object to represent the number 0, as a default. An incorrect entry occurs if a denominator value of 0 is entered, or if an improper placement of a negative sign is used. Valid entry of a negative number should follow this rule - if the integer part is non-zero, the negative sign is entered on the integer part; if the integer part is 0, the negative sign is entered on the numerator part (and therefore the negative sign should never be in the denominator). Examples:

    Valid inputs: 2 7/3 , -5 2/7 , 4 0/7 , 0 2/5 , 0 -8/3

    Invalid inputs: 2 4/0 , -2 -4/5 , 3 -6/3 , 0 2/-3

  4. Create an overload of the insertion operator << for output of Mixed numbers. This should output the mixed number in the same format as above, with the following exceptions: If the object represents a 0, then just display a 0. Otherwise: If the integer part is 0, do not display it. If the fraction part equals 0, do not display it. For negative numbers, the minus sign is always displayed to the left.

    Examples: 0 , 2 , -5 , 3/4 , -6/7 , -2 4/5 , 7 2/3

  5. Create overloads for all 6 of the comparison operators ( < , > , <= , >= , == , != ). Each of these operations should test two objects of type Mixed and return an indication of true or false. You are testing the Mixed numbers for order and/or equality based on the usual meaning of order and equality for numbers. (These functions should not do comparisons by converting the Mixed numbers to decimals – this could produce round-off errors and may not be completely accurate).
    • Hint: You can define most of the operation through a combination of == and <.
  6. Create operator overloads for the 4 standard arithmetic operations ( + , - , * , / ) , to perform addition, subtraction, multiplication, and division of two mixed numbers. Each of these operators will perform its task on two Mixed objects as operands and will return a Mixed object as a result - using the usual meaning of arithmetic operations on rational numbers. Also, each of these operators should return their result in simplified form. (e.g. return 3 2/3 instead of 3 10/15, for example).

    • Use function __gcd (you need to add #include <algorithm>) for calculation of the greatest common divisor) for simplification of the fractions. For subtraction and division, you can use inverse rules to simplify your code, see Inverse of rational number.

    • In the division operator, if the second operand is 0, this would yield an invalid result. Since we have to return something from the operator, return 0 as a default (even though there is no valid answer in this case). Example:

        Mixed m(1, 2, 3);  // value is 1 2/3
        Mixed z;           // value is 0
        Mixed r = m / z;   // r is 0 (even though this is not good math)
      
  7. Create overloads for the increment and decrement operators (++ and –). You need to handle both the pre- and post- forms (pre-increment, post-increment, pre-decrement, post-decrement). These operators should have their usual meaning – increment will add 1 to the Mixed value, decrement will subtract 1. Example:

     Mixed m1(1, 2, 3);             //  1 2/3
     Mixed m2(2, 1, 2);             //  2 1/2
     cout << m1++;                    //  prints 1 2/3, m1 is now 2 2/3
     cout << ++m1;                    //  prints 3 2/3, m1 is now 3 2/3
     cout << m2--;                    //  prints 2 1/2, m2 is now 1 1/2
     cout << --m2;                    //  prints 1/2  , m2 is now 0 1/2
    
  8. The Mixed class declaration is provided.

Driver Program

The sample driver program that is provided can be found below. Note, this is not a comprehensive set of tests. It is just some code to get you started, illustrating some sample calls.

#include <iostream>
#include "mixed.h"
using namespace std;

int main(){
Mixed m0(1, 1, 1); // 1 1/1 == 2
m0.Simplify();
cout << m0 << endl; // prints 2
m0.ToFraction();
cout << m0 << endl; // prints 2/1
Mixed m1(1, 2, 3);   // 1 2/3
m1.Print(); // prints 1 2/3
cout << m1++ << endl; // prints 1 2/3, m1 is now 2 2/3
cout << ++m1 << endl; // prints 3 2/3, m1 is now 3 2/3
Mixed m2(2, 5, 3);   // 2 5/3
cout << m2 << endl; // prints 2 5/3
cout << m2.Evaluate() << endl; // prints 3.6666
m2.Simplify(); // m2 is now 3 2/3
cout << m2 << endl; // prints 3 2/3
Mixed m3 = m1 + m2; // m3 is now 7 1/3
cout << m3 << endl; // prints 7 1/3
cout << m3.Evaluate() << endl; // prints 7.3333
Mixed m4(1, 2, 3);   // 1 2/3
m4.ToFraction();
cout << m4 << endl; // prints 5/3
Mixed m5 = m4 + Mixed(1);
cout << m5 << endl; // prints 2 2/3
Mixed m6(1);
cout << m6 << endl; // prints 1
m6.ToFraction();
cout << m6 << endl; // prints 1/1
cout << m6-m4 << endl; // prints -2/3
Mixed m7(0,3,4);
cout << m5*m7 << endl; // prints 2 (= 8/3 * 3/4)
cout << m5/m7 << endl; // prints 3 5/9 (32/9 = 8/3 * 4/3)
cout << "m4 == m4: " << boolalpha << (m4 == m4) << endl;
cout << "m5 != m4: " << boolalpha << (m5 != m4) << endl;
cout << "m5 > m4: " << boolalpha << (m5 > m4) << endl;
cout << "m5 >= m4: " << boolalpha << (m5 >= m4) << endl;
cout << "m4 < m5: " << boolalpha << (m4 < m5) << endl;
cout << "m4 <= m4: " << boolalpha << (m4 <= m4) << endl;
}

In: Computer Science