|
Let u and v be vectors in R3. Consider the following statements.T or F
|
In: Advanced Math
ORGANIC CHEMISTRY
experiment : Synthesis of n-butyl bromide (Sn2)
1.what is the function of the Hickman Still in this experiment?
2. what is the function of the condenser in this experiment?
In: Chemistry
1. What guidelines are used to determine the number of subjects to see in an experiment?
2. How does a with-in subjects experiment differ from a between-subjects experiment?
In: Psychology
In your own words explain the difference between an exempt and nonexempt employee. More importantly, how does this classification affect payroll?
Note: Textbook we're using-Payroll Accounting 2019 6th edition, Author-Jeanette M. Landin
In: Accounting
PLEASE PROVIDE COMMENTS TO BE ABLE TO UNDERSTAND CODE
C++
Inventory Class
Create an inventory class. The class will have the following data members,
const int size = 100;
int no_of_products; // the total number of products in the
inventory. char name_array[size][15] ; // stores name of
products
double array [size][2]; // In the first column quantity of the
product and in the second column the price per item of the product
is stored.
name_array stores the name of products, it is assumed that the length of the product name is at most 14 characters and each name is null terminated ( See Table 1. for an example )
For each product, the two-dimensional array will store two pieces of information, the current stock in number of pieces and the per unit price. We note that the information for a given product will be stored in the same row in the one-dimensional and two-dimensional arrays ( See Table 2. for an example).
The class should provide the following functions.
Constructor function: The function receives no parameters but initializes the elements of the double array to zero and the first element of each row of the char array to a null character.
int row_no( char *product name): Function receives the name of the product and returns the number of the row that contains the information for this product in the two-dimensional arrays. This function may be used by other functions when needed.
int get_stock ( char *product_name): Function receives the name of the product and returns the current amount of the product in the stock.
double order( char *product_name, int quantity): The function will check if the requested quantity of the stock is available. If the requested quantity is available drop from the stock and return the total cost of the order, otherwise order cannot be met and return zero.
bool new_product( char *product_name, int quantity, double price): If there is an empty entry available in the arrays, then, a new product is added to the inventory. The new product should be added to the first available entries in the two-dimensional arrays. After that the function increases the number of different products in the inventory by one and returns true. If no space is available in the arrays, then, product can not be added to the inventory and the function returns false.
void discontinued_product( char *product_name); // If a product is discontinued, the function should set the entry of this item in the two- dimensional array zero and the first element of the row for this product in the two-dimensional name_array to a null character. This entry becomes available for adding new product to the inventory. Reduce the number of different products in the inventory by one.
Write the implementation of this class as well as test it with a driver program.
Note : In this problem you are not allowed to use string class or any of the string library functions.
|
c |
a |
m |
e |
r |
a |
\0 |
||||||||
|
t |
e |
l |
e |
v |
i |
s |
i |
o |
n |
\0 |
||||
|
\0 |
||||||||||||||
|
c |
o |
m |
p |
u |
t |
e |
r |
\0 |
||||||
|
\0 |
||||||||||||||
|
r |
e |
f |
r |
i |
g |
e |
r |
a |
t |
o |
r |
\0 |
||
|
o |
v |
e |
n |
\0 |
||||||||||
|
\0 |
||||||||||||||
|
\0 |
||||||||||||||
|
\0 |
Table 1. Stores the product names
|
12 |
625.00 |
|
17 |
410.00 |
|
0 |
0 |
|
8 |
750.00 |
|
0 |
0 |
|
6 |
975.00 |
|
9 |
550.00 |
|
0 |
0 |
|
0 |
0 |
|
0 |
0 |
Table 2. First column stores the stock in the inventory and second
In: Computer Science
Let V = 20x2yz - 10z2 V in free space, (a) Determine the equations of the equipotential surfaces on which V = 0 and 60 V. (b) Assume these are conducting surfaces and find the surface charge density at that point on the V = 60-V surface where x=2 and z= 1. It is known that 0 V 60 V is the field-containing region, (c) Give the unit vector at this point that is normal to the conducting surface and directed toward the V = 0 surface.
In: Physics
3. Use matlab to plot the output voltage of an inverting operational amplifier given the following conditions: K = Gain of the amplifier = 12.5. Vi = input voltage -2.5 < Vi < 2.5 V], (use 0.25 increments). V+ = positive power supply voltage, V+ = +20 V. V- = negative power supply voltage V- = -20V. Vo = output voltage Vo = -KVi Recall that if the output voltage Vo is greater than V+, or less than V-, the output voltage Vo gets clipped to the V+, or V- voltage, (clipped at the rail voltage).
In: Electrical Engineering
The manufacturer of a new racecar engine claims that the proportion of engine failures due to overheating for this new engine, (p1), will be no higher than the proportion of engine failures due to overheating of the old engines, (p2). To test this statement, NASCAR took a random sample of 120 of the new racecar engines and 115 of the old engines. They found that 77 of the new racecar engines and 44 of the old engines failed due to overheating during the test. Does NASCAR have enough evidence to reject the manufacturer's claim about the new racecar engine? Use a significance level of α=0.1 for the test.
Step 4 of 6 :
Compute the value of the test statistic. Round your answer to two decimal places.
Other correct answers: v v v v v v v v v v v v v v v
Part 1: H0: p1−p2 ≤ 0
Ha: p1−p2 > 0
Part 2: pˆ1=0.058, pˆ2=0.035
Part 3: p-bar‾= 0.047
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
In: Statistics and Probability
In: Biology
In a short paragraph each, explain the importance of each of these court cases.
Morrissey v Brewer Gregg v GA Atkins v VA
Roper v Simmons Estelle v Gamble Johnson v Avery
In: Psychology