If you have a script called testscr, that you execute with the following pipeline:
echo two four six eight ten | testscr
and testscr contains the following lines of code:
# This is a read test
read parm1 parm2 parm3
echo :$parm1:$parm2:$parm3:
What gets printed?
In: Computer Science
Consider a file with a large number of Person(id, name, birth-date) records. Assume that users frequently search this file based on a the field id to find the values of name or birthdate for people whose information is stored in the file. Moreover, assume that users rarely update current records or insert new records to the file. Which file structure, heap versus sorted, provides the fastest total running time for users’ queries over this file? Explain your answer
In: Computer Science
Most calculators come with a book of instructions. Unfortunately, if you misplace the book, you’re left to your own devices in figuring out how to use the calculator. Wouldn’t it be easier if the calculator had a built-in “help” function similar to the one on your computer? You could just punch the “Help” key on your keypad and call up the relevant instructions on your display screen. You just invented a calculator with this feature, and you’re ready to roll it out. First, however, you have to make some pricing decisions: When you introduce the product, should you use skimming or penetration pricing? Which of the following pricing methods should you use in the long term: cost-based pricing, demand-based pricing, target costing, or prestige pricing? Prepare a report describing both your introductory and your long-term alternatives. Then explain and justify your choice of the methods that you’ll use.
In: Economics
Responsive
Interesting
Eye-catching
Desirable
awareness, interest, design, action
attention, information, desire, achievement
awareness, interest, desire, attention
attention, interest, desire, action
awareness, information, desire, achievement
Consumers may be converted to try out the product, but may like other brands too
The doubt in consumers' minds about buying the product needs to be changed into action
The purchase experience has to be made easy and enjoyable
Your product is evaluated and compared against other brands
The challenge facing companies introducing new products or targeting new markets is to create awareness and interest among consumers
The best way to evaluate a new product is through actual use so that performance can be judged
Marketers could encourage trial by using demonstration or sampling programs or allowing consumers to use a product with a money-back commitment
All of the other options
Information processing model adds a stage that is not mentioned in all the other three models. This stage is
Exposure
Retention
Attention
In: Operations Management
Create a method called “concat” that takes three char array parameters. This method should concatenate the second string on to the end of the first string and store the result in the third string. Note: When you concatenate two string you add the contents of one string on to another. Important: Make sure you add null terminators where necessary. No pointer.C++
In: Computer Science
In: Biology
The demand function for a truckload of firewood in a small town with a college is Q = 200 - 1.5p for non-students and Q = 200 - p for students, where p is the price of firewood, in $/truckload.
At a price of $150 per truckload, will college students buy any firewood?
At a price of $150 per truckload, will non-students buy any firewood?
The (inverse) demand curve for the town as a whole has a kink at Q =
For the town as a whole, including the students, the slope of the inverse demand curve to the left of the kink is For the town as a whole, including the students, the slope of the inverse demand curve to the right of the kink is
For the town as a whole, including the students, the slope of the inverse demand curve to the right of the kink is
In: Economics
Determine the percent composition of air in the lungs from the following composition in partial pressures: PN2=565mmHg, PO2=108mmHg, PCO2=37mmHg, PH2O=50mmHg; all at 37∘C and 1atm pressure.
A % N2
B % O2
C %CO2
D % H2O
In: Chemistry
An object (A) of mass m A = 28.0 kg is moving in a direction that makes angle of 50° south of west with a speed v A = 4.90 m/s, while object (B) of mass m B = 18.0 kg is moving due south with a speed v B = 7.85 m/s. The two objects collide and stick together in a completely inelastic collision. Find the magnitude of the final velocity of the two-object system after the collision.
In: Physics
Two common ways for a chemist to increase the yield of
a reactiom are described below. Explain why they increase the
yield.
a. Add more of one of the reactants
b. Remove one of the products as it is being made.
In: Chemistry
Yahtzee Simulation. Must be written in Python
These are the specific instructions:
"Write a function called Yahtzee_Simulation() that receives no parameters. The function will simulate rolling 5 dice at least one million times. It will keep track of the number of times the computer rolls a Yahtzee. The function will return the number of wins divided by the number of tries. There are no print() statements in this function.
Write a function called main() that receives no parameters. This function calls the Yahtzee_Simulation() function 10 times and prints the result of each simulation. Finally, print the mathematical result, which can be calculated with the following code: print(6/(6**5))"
This was also given as a hint:
The simulation runs 1000000 times 0.000774 0.000788 0.000729 0.000761 0.000777 0.000777 0.000777 0.000758 0.00077 0.000768 The mathematical solution is: 0.0007716049382716048
I've been struggling on how to do this, I think seeing an example of what it does and how it's made will help me when making my own, Thank you!
In: Computer Science
League Competition: Suppose the demand for soccer teams in the US is given by: P(Q) = 320−10Q where Q is the total number of soccer teams and Pi s the marginal willingness to pay for the Qth team (in millions). The cost to start a new team is c= 20
Two Leagues: First, suppose are two leagues (Major League Soccer and the National Soccer League) that are choosing how many teams to have, so that Q=qm+qn.
a Find the equilibrium number of teams for the MLS.
b Find the equilibrium number of teams for the NSL.
c What are profits for the MLS?
d What are profits for the NSL?
e What is consumer surplus?
Merger: Now assume the leagues merge to form one league (Premier USA). After the merger demand increases to:P(Q) = 360−10Q
a What is total surplus (consumer surplus and profit)?
b Is consumer surplus more or less than the pre-merger surplus?
In: Economics
two happy astronaunts, each having a mass of 75 kg are connected by a rod length 10.0 and a mass 140 kg. The system is isolated in space, orbiting the center of the rod at an angular speed of 0.50 rad/s counterclockwise. Treat the astronaunts as point masses. The moment of inertia of a rod is I=(1/12)ML^2
what is the initial moment of intertia of the total rod-and-astronaunts system?
By pullinh on the rod, the astronaunts shorten the distance between them to 5.0 m. What is the final angular velocity of the rod-and-astronauts system in rad/s?
In: Physics
QUESTION 1
Compute the typical thermal energy of a water molecule at normal conditions: (kB T) and compare it to the answer to an earlier problem, where you computed the work needed to lift a molecule by a certain distance. Based on this comparison, the thickness of the Earth's atmosphere is about
| a. |
100 km |
|
| b. |
10 km |
|
| c. |
1000 km |
|
| d. |
1 km |
QUESTION 2
How much energy is released after an Argon atom moving with speed 3.00 km/sec hits a brick wall and get adsorbed?
QUESTION 3
In the previous problem, what is the value of the collision energy in terms of kBT, assuming the temperature was 95 oF at the time?
QUESTION 4
In equilibrium, the number of molecules moving in one direction is equal, on average, to the number of molecules moving in the opposite direction.
True
False
QUESTION 5
In equilibrium, all directions in space are equivalent in that the speeds of molecules moving in any given direction have the same distribution.
True
False
In: Chemistry
i used this coding for select image from database but the image did not retrieve from database and did not display
what is the issue ?
include "connect.php";
$sql= "select fileTmpPath
from picture where ID='3'";
$result =
mysqli_query($conn,$sql);
$pic=
mysqli_fetch_array($result);
echo " <img src=" .$pic["fileTmpPath"]."' />";
?>
In: Computer Science