write a short report, 250 words about "Microbial growth". Author's name or website's name and title of article in APA format, date of publication or copyright, its relevancy to your future career goals and one potential multiple test question.
In: Biology
Define the four main types of relational constraints and use the example relational database (Figure 1) to illustrate each of these constraints.
Figure 1
House(MLS, Addr, NumRooms, NumBedRooms, SellID, OfficeID, Price)
Seller(SellID, Name)
PotentialBuyer(BuyID, Name)
REOffice(OffID, Name, Addr, Phone)
Agent(AgID, OffID, Name)
Showing(AgID, MLS, BuyID, Date)
In: Computer Science
Write a program to remove extra blanks from text files. Your program should replace any string of two or more blanks with one single blank. It should work as follows:
* Create a temporary file.
* Copy from the input file to the temporary file, but do not copy
extra blanks. * Copy the contents of the temporary file back into
the original file.
* Remove the temporary file.
Your temporary file must have a different name than any existing file, so that no files other than the input file are changed. Your program should ask the user for the name of the file to be edited, but should not request a name for the temporary file. Instead, generate the name within the program. You can generate the temporary file using any strategy that is clear and efficient. For example, you could start with a name like TempX and check if that name already exists. If it doesn't, you can use that name for the temporary file; if it does exist, append additional random letters to the filename until you find a name that isn't already used.
Language is in C++
In: Computer Science
Write a program named filemaker.py in python that will be used to store the first name and age of some friends in a text file named friends.txt. The program must use a while loop that prompts the user to enter the first name and age of each friend. Each of these entries should be written to its own line in the text file (2 lines of data per friend). The while loop should repeat until the user presses Enter (Return on a Mac) for the name. Then, the file should be closed and a message should be displayed. See Sample Output. SAMPLE OUTPUT Enter first name of friend or Enter to quit Denny Enter age (integer) of this friend 24 Enter first name of friend or Enter to quit Penny Enter age (integer) of this friend 28 Enter first name of friend or Enter to quit Lenny Enter age (integer) of this friend 20 Enter first name of friend or Enter to quit Jenny Enter age (integer) of this friend 24 Enter first name of friend or Enter to quit File was created
In: Computer Science
Using C++
Many software applications use comma-separated values to store and transfer data.
In this program, you are asked to implement the movie_call function that will parse a string of the above structure into the corresponding movie name, rating, and movie length.
ex: In "movie name, rating, length", the movie name is "movie name", the rating is "rating", and the length of the movie is "lenght".
This is the code:
#include <iostream>
#include <string>
using namespace std;
/*
Replace the function body with appropriate statements to movie_call
a string of movie details into its corresponding movie name, rating,
and length.
*/
void movie_call (string movie, string& name, string& rating, string& length) {
int comma, comma1;
comma = movie.find(",");
name = movie.substr(0, comma);
movie = movie.substr(comma + 1);
comma1 = movie.find(",");
rating = movie.substr(0, comma1);
length = movie.substr(comma1 + 1);
}
int main() {
string movie_details;
cout << "Please enter information for one movie of your choice: ";
getline(cin, movie_details);
//Add appropriate statement(s) to call the movie_call function
//and display the name, rating, and length
return 0;
}
In: Computer Science
For the following description of data, identify the W's, name the variables, specify for each variable whether its use indicates it should be treated as categorical or quantitative and for any quantitative variable identify the units in which it was measured. Determine if the data comes from a designed survey or experiment. Determine if the variables are time series or cross-sectional.
A company surveyed a random sample of
65006500
employees in the region. One question they asked was, "If your employer provides you with mentoring opportunities are you likely to remain in your job for the next
tenten
years?" They found that
580580
members of the sample said yes.
Identify the Who for this study.
A.The
65006500
employees in the region
B.The
580580
employees who answered yes
C.
All the employees in the region
D.
All people in the region
Identify the What for this study. Select all that apply.
A.
The amount an employee receives in benefits
B.
The average amount of time an employee remains at their job
C.Whether or not an employee is likely to remain at their job for the next
tenten
years
D.The average number of jobs someone goes through in a
fivefive
year period
E.The average number of jobs someone goes through in a
tenten
year period
F.Whether or not an employee is likely to remain at their job for the next
fivefive
years
Identify the When for this study.
A.Over the course of
fivefive
years
B.Within the past
tenten
years
C.
Over the course of a year
D.
This information is not given.
Identify the Where for this study.
A.
Over the phone
B.
At a hotel
C.
Online
D.
This information is not given.
Identify the Why for this study.
A.To determine the least amount of benefits to keep an employee at their job for a minimum of
tenten
years.
B.To determine how many people have been at their current job for at least
fivefive
years.
C.To determine the likelihood that someone remains at their job for the next
tenten
years given that their employer provides them with mentoring opportunities.
D.
This information is not given.
Identify the How for this study.
A.
Employers went door to door surveying residents.
B.
The company passed out a survey to be filled out during the work day.
C.
An online poll was posted on the company's website.
D.
This information is not given.
Specify the categorical variables for this study. Select all that apply.
A.
Amount of time at the company
B.
Gender
C.
Age
D.
Mentoring opportunities
E.Whether or not an employee is likely to remain at their job for the next
tenten
years
F.
There are no categorical variables.
Specify the quantitative variables and their units for this study. Select all that apply.
A.
Number of jobs; count
B.
Amount of time at the company; years
C.
Age; years.
D.
Mentoring opportunities; count
E.
There are no quantitative variables.
Specify whether the data come from a designed survey or experiment.
Experiment
Designed survey
Are the variables time series or cross-sectional?
Cross-sectional
Time series
In: Math
1. A publisher faces the following demand schedule for the next novel from one of its popular authors:
The author is paid $2 million to write the book,
Price 100 90 80 70 60 50 40 30 20 10 0
QD(1000s) 0 100 200 300 400 500 600 700 800 900 1000
and the marginal cost of publishing the book is a constant $10 per book.
a. Compute the total revenue, total cost, and profit at each quantity. What quantity would a profit-maximizing publisher choose? What price would it charge?
The total revenue at each level of production is given by the demand schedule above, using T R = P Q. The total cost is the constant fixed costs of $2 million plus the variable cost of ($10)Q. For convenience, the units of revenue, cost, and profit are given in millions. In the table below, we combine these equations with the calculation of marginal revenue. It turns out that the profit-maximizing level of output is 500,000 units, corresponding to a price of $50.
b. Compute marginal revenue. (Recall that MR = ∆T R/∆Q). How does marginal revenue compare to the price? Explain.
QD(1000s) 0 100 200 300 400 500 600 700 800 900 1000
TR ($ millions) 0 9 16 21 24 25 24 21 16 9 0
TC ($ millions) 2 3 4 5 6 7 8 9 10 11 12
Profit ($ millions) -2 6 12 16 18 18 16 12 6 -2 -12
Marginal Revenue ($) 90 70 50 30 10 -10 -30 -50 -70 -90
Marginal Cost ($) 10 10 10 10 10 10 10 10 10 10
c. Graph the marginal-revenue, marginal-cost, and demand curves. At what quantity do the marginal-revenue and marginal-cost curves cross? what does this signify?
The relevant information is given in the table above. In the table, we can see that marginal cost and marginal revenue are equal at Q = 50. That is MR(50) = MC(50) = 10. Not coincidentally, this is also the profit-maximizing level of output that we found earlier.
d. In your graph, shade in the deadweight loss. Explain in words what this means.
The social surplus maximizing level of output would set the price equal to marginal cost. In that case, P = 10 and then turning to the demand schedule this corresponds to output of Q(10) = 900, 000. The deadweight loss is the surplus that is lost because we do not makes the units from 500,000 to 900,000. In this case, the deadweight loss if represented with a triangle with base 900, 000− 500, 000 = 400, 000 and the height of 50 − 10 = 40. The area of this triangle is 0.5(400000)(40) = 2 million
e. If the author were paid $3 million instead of $2 million to write the book, how would this affect the publisher’s decision regarding what price to charge? Explain.
Recall that there are two questions for the firm — how much to produce, and how whether to stay in business. The first question — how much to produce — is based on comparing marginal costs and benefits (e.g. should I go from 3 to 4? From 4 to 5, and etc.). By definition, marginal costs are variable costs i.e. they are related to how much output is chosen. The increase in the fee to the author is a type of fixed cost. In the current exercise, the fee paid to the author has no affect on the market demand schedule or on the production costs of the book. Thus, there is no affect of the author’s fee on any of the MARGINAL factors in our exercise. The publisher’s profit will go down, but otherwise there is no effect on what choices it will want to make.
In: Economics
In an experiment with cosmic rays, a vertical beam of particles that have charge of magnitude e and mass 6 times the proton mass enters a uniform horizontal magnetic field of B-0.5T and is bent in semicircle of diameter 50cm as shown in Figure.
Find a speed of the particles as they enter the field. in m/s, 2 significant figures.

In: Physics
. An experiment was performed on a certain metal to determine if
the strength is a function of heating time (hours). Results based
on 20 metal sheets are given below. Use the simple linear
regression model.
∑X = 40
∑X2 = 200
∑Y = 80
∑Y2 = 1120
∑XY = 460
Find the estimated y intercept and slope and write the equation of
the least squares regression line. Estimate Y when X is equal to 3
hours. Also determine the standard error, the Mean Square Error,
the coefficient of determination and the coefficient of
correlation.
In: Statistics and Probability
a. For the experiment in which the number of computers in use at a six - computer lab is observed, let B, C be the events defined as B = {3, 4, 5, 6}, and C = {1, 3, 5}. Give the event (B ^ C) using set notation (i.e using { } ).
b. Suppose that the probability of a person getting a certain rare disease is 0.0004 . Consider a town of 10,000 people. What is the approximate probability of seeing more than 3 new cases in a year?
c. To get to work, a commuter must cross train tracks. The time the train arrives varies slightly from day to day, but the commuter estimates he will be stopped 10% of work days. During a certain 5 - day work week, what is the probability that he gets stopped at least once during the week?
d. Suppose occurrences of sales on a small company’s website are modeled by a Poisson model with λ = 6/hour. What is the probability that the next sale will happen in the next 12 minutes?
In: Statistics and Probability