Expand the function f(z) = (z − 1) / z^ 2 (z + 1)(z − 3) as a Laurent series about the origin z = 0 in all annular regions whose boundaries are the circles containing the singularities of this function.
In: Advanced Math
Given the code segment:
def f1(a, b = 2):
if a :
print(1)
f1(1)
what is the result of executing the code segment?
a) Syntax error
b) Runtime error
c) No error
d) Logic error
in which scenario(s) is using a dictionary useful?
a) To store the dates of lesson that each student is absent for so that warning letters may be issued to student exceeding a limit.
b) To store the student numbers for students who sat for an exam
c) To retrieve email of students who are absent for an exam. The student numbers will be entered into the recipient field and the system should display the student email.
d) The marks should be entered into the exam system. The exam system displays rows of student number, and the marks can be entered against the student number. The grade will be computed and reflected in the student row .
which expression returns True when a number, x is not and odd number between 1 (inclusive) and 100 (inclusive), and returns False otherwise?
a) x not in range(100) and x % 2 !=0
b) x not in range(1,101) and x % 2 !=0
c) not( x in range(1,101) and x % 2 1=0
d) x not in range(1,101) or x % 2 !=0
In: Computer Science
In: Computer Science
Type the Python code for all the questions. 1 2 Q1: Using DataFrame, with Figure 1 data, store the hypermarket data for rows and columns. Display the output as shown in Figure 1. 0 ITEMS NAME DISCOUNT 1 Grocery Rice 56 2 Electronics Mobile 25% 3 Food Apple 30% Figure 1 Q2: Update and display the "Rice" discount from 5% to 10%. Your output should be like Figure 2 now. 1 2 0 ITEMS NAME DISCOUNT 1 Grocery Rice 108 2 Electronics Mobile 25% 3 Food Apple 30% Figure 2 NO Q3: Use Figure 3 data to add and display a new column. Your output should be like Figure 3 now. 0 1 2 3 ITEMS NAME DISCOUNT STOCK Grocery Rice 10% 100 Electronics Mobile 25% 3 Food Apple 30% W NO 20 40 Figure 3
In: Computer Science
1. In R Studio create a plot with two subplots (2 rows, 1 column):
In: Computer Science
A box contains 1 fair coin and 1 2-Headed coin. A coin is drawn and flipped several times.
(a) The first flip results in Heads. What is the probability that the coin is fair?
(b) 3 flips result in all Heads. What is the probability that the coin is fair?
(c) 5 flips result in all Heads. What is the probability that the coin is fair?
(d) How many flips of all Heads are required to know with 99.9% accuracy that the coin is not fair?
In: Math
1. Copy the files from Assignment 1 to Assignment 3.
2. Modify the PetFoodCompany header to mention a friend function called "computeBonusBudget". This method should compute the bonus budget as netIncome() * BonusBudgetRate and this method should exist in the driver program - not the Class defintion.
3. Modify the output of the program to display the results of the computeBonusBudget.
Enter Total Sales: 1000
Enter Total Expenses: 600 Net Income = 400 Bonus Budget = 8
Here is the code:
PetFoodComp.h:
class PetFoodCompany
{
public:
PetFoodCompany();
char getQuart();
char* getCompany();
char* getDivision();
void setQuart(char quart);
void setTotalSales(float totalSales1);
void setTotalExpences(float totalExpences1);
void setCompany(char name[]);
void setDivision(char name1[]);
float getTotalSales();
float getTotalExpences();
double netIncome();
private:
char company[40];
char division[40];
static char quart;
static double BonusRate;
float totalSales;
float totalExpences;
};
PetFood.cpp:
#include <iostream>
#include <cstring>
#include "PetFoodComp.h"
using namespace std;
double PetFoodCompany::BonusRate = 0.02;
char PetFoodCompany::quart = '1';
PetFoodCompany::PetFoodCompany()
{
strcpy(company, "myCompanyName");
}
char PetFoodCompany::getQuart()
{
return quart;
}
float PetFoodCompany::getTotalSales()
{
return totalSales;
}
float PetFoodCompany::getTotalExpences()
{
return totalExpences;
}
char* PetFoodCompany::getCompany()
{
return company;
}
char* PetFoodCompany::getDivision()
{
return division;
}
void PetFoodCompany::setQuart(char quart1)
{
if (quart1 == '1' || quart1 == '2' || quart1 == '3' ||
quart1 == '4')
quart = quart1;
}
void PetFoodCompany::setTotalSales(float totalSales1)
{
totalSales = totalSales1;
}
void PetFoodCompany::setTotalExpences(float
totalExpences1)
{
totalExpences = totalExpences1;
}
void PetFoodCompany::setCompany(char name[])
{
strcpy(company, name);
}
void PetFoodCompany::setDivision(char dname[])
{
strcpy(division, dname);
}
double PetFoodCompany::netIncome()
{
return (totalSales - totalExpences);
}
PetFoodMain.cpp:
#include <iostream>
#include <cstring>
#include "PetFoodComp.h"
using namespace std;
int main()
{
double totalSales, totalExpences;
PetFoodCompany pet;
cout << "Company Name is " <<
pet.getCompany() << "\n";
cout << "Current Quarter is " <<
pet.getQuart() << "\n";
cout << "Enter Total Sales: ";
cin >> totalSales;
cout << "Enter Total Expences: ";
cin >> totalExpences;
pet.setTotalExpences(totalExpences);
pet.setTotalSales(totalSales);
cout << "Net Income: " << pet.netIncome() << "\n";
return 0;
}
In: Computer Science
Two hockey pucks are moving to the right with puck 1 behind puck 2. Puck 1 is moving twice as fast as puck 2, but its mass is half that of puck 2. If puck 2's Vi is 8 m/s, then what is the velocity of each puck after they collide?
In: Physics
|
Let's analyze the results of a fictional set of data for
variation 1 of the Unemployment Compensation experiment. The table
below shows the worker costs and buyer values assigned to the
students in variation 1 of the experiment. A worker's cost of
working is what that worker has to give up in order to work for one
hour. The cost of working includes work-related expenses plus the
unemployment compensation the worker passes up by working. An
employer's buyer value is the amount of revenue that employer would
earn from hiring a worker for one hour. Recall that these
particular workers are low skilled.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
a)What is the highest wage employer 4 would be willing to pay to hire a worker for one hour? b)What is the lowest wage worker 4 would be willing to accept to work for one hour? c)What equilibrium wage does supply and demand analysis predict for this market? d)What equilibrium quantity of labor does supply and demand analysis predict for this market? e)What gain from hiring a single worker does supply and demand analysis predict for employer 4 in equilibrium? f)What gain from working does supply and demand analysis predict for worker 4 in equilibrium? |
||||||||||||||||||||||||||||||||||||||||||||||||||||
In: Economics
Write the balanced net ionic equations
1. HC2H3O2 and KNO2 added to I-
2. Chlorine water added to Br-
3. H2SO4 and Ba(OH)2 added to CO32-
4. AgNO3 added to Cl-
5. FeSO4 and H2SO4 added to NO3-
In: Chemistry