Using atomic absorption, 0.0105 grams of copper sulfate pentahydrate were dissolved in a 100 mL volumetric flask and diluted to mark to make a 100 ug/mL solution. An unknown was made by placing an unknown amount of the above stock solution in a 100 mL volumetric flask and diluting to mark. The unknown gave an absorbance of 5.809 mg/L. How many mL of stock was used to make this unknown? The answer should be between 1 and 10 mL
In: Chemistry
For your ninth discussion board topic, you will need to watch “State of the Union: Politics in Red and Blue,” which can be found in the Required Learning Materials for Module 13. Click on reply at the bottom. This will open a dialogue box. Respond to the following: How is the polarization of U.S. politics creating problems in the social structure? For this discussion, you may want to focus on the following key concepts in the course: Authority, Political Participation, Democracy, Polarization
In: Psychology
A nutritionist wants to determine whether people who regularly drink one protein shake per day have different cholesterol levels than people in general. In the general population, cholesterol is normally distributed with u = 190 and o = 30. A person followed the protein shake regimen for two months and his cholesterol is 135. Use the 1% significance level to test the nutritionist's idea. (a) Use the five steps of hypothesis testing.
Expert Please Answer
Population 1:
Population 2:
N= __________
(b) Draw a curve and label the cutoff -2.33, rejection region(s), and sample's score.
f) what is the approximate comparison distribution (the population distribution, or the sampling distribution, why?
g) Is a one tailed or two tailed test appropriate in this situation, and why?
In: Math
In: Operations Management
Implement a calculator (not postfix notation) using Swift Programming Language(Swift 3, basic ios app). Please use MVC model(CalculatorBrain.swift can be the model and ViewController.swift can be the view). Also please post the sreenshot of the storyboard that you make.
Requirements:
Implement add subtract, multiply, divide, pi, sqrt, Euler’s natural number (e), co-sine and equals.
Ensure you have the ability to handle multiple operations in sequence
Implement the ability to enter floating point numbers into the display
Add 4 more buttons (ex. sine)
Handle multiple operations in a sequence.
Add a memory function to your calculator that stores and retrieves a number. Implement the following buttons at the top of the keyboard
MC = Memory clear sets memory to 0
MR – Memory recall uses the number in memory acting as it you typed that number in yourself
MS – Memory Store puts the number on display into memory
M+ – Memory takes the number on the display, adds it to the memory, and puts the result into memory.
Implement a clear (C) button. If the clear button is pressed once, it should take whatever was typed before the last enter and put it to 0. If the clear is entered twice, it should clear the stack.
Show the history of every operand and operation input by displaying it.
In: Computer Science
Problem 2: show all work
A. Find the complement of F = WX + YZ. B. Show that FF’ = 0 C. Show that F + F’ = 1
In: Computer Science
I need an answer in C++, please
TITLE
PRIME FACTORIZATION USING AN ARRAY-BASED STACK
INTRODUCTION
This project revisits one of the problems in Project 2, and it will re-use a function within the solution developed there.
An integer is prime if it is divisible only by itself and 1. Every integer can be written as a product of prime numbers, unique except for their order, called its prime factorization. For example,
1776 = 37 x 3 x 2 x 2 x 2 x 2.
DESCRIPTION
Design, implement, document, and test an interactive program that reads positive integers from the terminal and writes their prime factorizations to the screen. The program should list the factors of each integer in decreasing order, as in the example above, and should terminate when the user enters 0 or a negative value.
INPUT
The program's input is positive integers, entered from the terminal, terminated by 0 or a negative value.
OUTPUT
The program's output consists of prompts for the input values and the input values' prime factorizations. It writes this output to the terminal.
ERRORS
The program can assume that its input is integers; it need not detect any errors.
EXAMPLE
A session with the program might look like this:
Enter a positive integer (0 to stop): 1776
Prime factors: 1776 = 37 x 3 x 2 x 2 x 2 x 2
Enter a positive integer (0 to stop): 6463
Prime factors: 6463 = 281 x 23
Enter a positive integer (0 to stop): 349856
Prime factors: 349856 = 29 x 29 x 13 x 2 x 2 x 2 x 2 x 2
Enter a positive integer (0 to stop): 36423479
Prime factors: 36423479 = 36423479
Enter a positive integer (0 to stop): 1
Prime factors: 1 = 1
Enter a positive integer (0 to stop): 0
OTHER REQUIREMENTS
Implement a stack abstract data type in a class in which a typedef statement specifies the type of the stack's items. Use a sequential (array-based) stack implementation. As the program identifies prime factors, it should save them by pushing them onto a stack of integers provided by this class.
If d >= 2 is the smallest integer that divides an integer n, then d is prime. Therefore the program can identify prime factors (in ascending order) by repeatedly identifying the smallest factor of the target value and then dividing the target value by the factor. The program need not test that these smallest factors are prime or attempt to list only prime values; this will happen automatically.
Thus, to identify the prime factors of n, first find the smallest factor that divides n, push it onto the stack, and divide n by the factor. Then find the smallest factor of the new value of n; handle it the same way. Continue in this way until n = 1. Then pop and print the values until the stack is empty.
This scheme identifies prime factors in order of increasing magnitude; saving the values on the stack and then popping and printing them displays them in decreasing order, as specified.
HINT
Recall that you wrote a function that returns the smallest factor of its positive integer argument back in Project 2. You can re-use that function in this project.
HAND IN
See About Programming Assignments for a description of what to hand in: design document, user document, code, tests, and summary.
Question: If we wanted to report each integer's prime factors in increasing order, would the stack be necessary or helpful? Explain.
Project 2:
PRIME FACTORIZATION
The smallest nontrivial factor of a positive integer is necessarily prime. (Can you prove this?) Write a program that takes advantage of this fact in a recursive function that writes the prime factors of an integer to the terminal in ascending order.
A run of the program that exercises this function might look like this:
Enter a positive integer: 5432
The prime factors of 5432 are 2 2 2 7 97
Hint: Begin by writing a function that returns the smallest factor (greater than 1) of its positive integer argument. The recursive function will call this one.
QUESTION: How would you modify the function to print the prime factors in descending order?
In: Computer Science
|
-9 |
-5 |
-2 |
0 |
1 |
3 |
7 |
11 |
17 |
19 |
21 |
25 |
27 |
31 |
37 |
41 |
a
index 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
int search(int a[], int t, int l, int r){
if(l<=r){
int m=(l+r)/2;
if(t==a[m]) return m;
else if (t<a[m]) return search(a, t, l,m-1);
else return search(a, t, m+1, r)
}
return -1;
}
In: Computer Science
1. Please discuss the characteristics of the perfect competition market structure.
2. What are the main characteristics of a competitive market?
3. Explain the difference between a firm’s revenue and its
profit. Which do firms maximize?
In: Economics
Explain the difference between under allocated overhead and over allocated overhead. What causes each situation?
In: Accounting
Need it ASAP!!!
Write a complete Java program to compute personal income tax. Your program should prompt the user to enter the taxable income (double) and output the income tax (double) according to the table below:
First $20,000 0 Next $20,000 ($20,001 to $40,000) 10 Next $20,000 ($40,001 to $60,000) 20 The remaining (Above $60,000) 30
The tax payable should be rounded to 2 decimal places. The name of this program (class) will be Tax
In: Computer Science
The table shows both the prospective profits and losses for a company (in thousands of dollars), depending on what decision is made and what state of nature occurs. Use the information to determine what the company should do. State the decision number and its value. Do all calculations within the spaces provided.
|
States of Nature |
||||||
|
Pr = 0.30 |
Pr = 0.40 |
Pr = 0.30 |
||||
|
Decision |
s1 |
s2 |
s3 |
|||
|
d1 |
30 |
80 |
-30 |
|||
|
d2 |
100 |
30 |
-40 |
|||
|
d3 |
-80 |
-10 |
120 |
|||
|
d4 |
20 |
20 |
20 |
|||
|
States of Nature |
||||
|
Pr = 0.30 |
Pr = 0.40 |
Pr = 0.30 |
||
|
Decision |
s1 |
s2 |
s3 |
|
|
d1 |
||||
|
d2 |
||||
|
d3 |
||||
|
d4 |
||||
In: Operations Management
Psychology 150
What does it mean to get old?
When I was in my 20's I did not think about getting old. I would lift heavy weights - skip nights of sleep and eat whatever and how much of whatever I wanted.
IT was AWESOME... at the time.
Adulting is Hard.
Now I have type 2 diabetes because of my epigenetic diet choice interactions - angry joints (bad disks in back) and hurt feet. I have to be very careful of what I do or I can seriously hurt myself. Many of my peers from my college days are also in sad physical shape as well from how we were in the late 80s.
As far as Money goes - In college the major concern was finding enough money to buy bicycle parts - or maybe find a new roommate, or trying to date (ha!).
Last sememster I had to spend 12000 on re-plumbing our old house - and am about to spend another 50K or more on sending a kid to college.... but I can get whatever bicycle parts I want whenever I want.. but I don't because of aforementioned bills. If I had saved money when I was young - I would be able to retire in 5 years...
What does getting old mean to you?
Does that mean the same as Growing up?
Why can't young people (myself included) listen to old people and prep for when you are older?
In: Psychology
In: Operations Management
The random variable X follows a Poisson process with the given mean. Assuming mu equals 7, compute the following.
(a) P(4)
(b) P(X<4)
(c) P(Xgreater than or equals4)
(d) P(4less than or equalsXless than or equals8)
In: Math