Dystopia county has three bridges. In the next year, the Elder bridge has a 13% chance of collapse, the Younger bridge has a 7% chance of collapse, and the Ancient bridge has a 21% chance of collapse. What is the probability that exactly one of these bridges will collapse in the next year? (Round your final answer to four decimal places. Do not round intermediate calculations.)
In: Statistics and Probability
Proteins
In: Biology
According to an article by George Will (San Jose Mercury News, Feb. 28, 2002), the average U.S. consumption per person per year of French Fries is 28 pounds. Suppose that you believe that the average in Santa Clara County is not 28 pounds. You randomly survey 50 people in this county. The sample average is 24 pounds with a sample standard deviation of 10 pounds. Conduct an appropriate hypothesis test.
1. This test is:
A. two-tailed
B. no-tailed
C. right-tailed
D. left-tailed
2. The p-value for this test is:
A. 0.0068
B. 0.0034
C. 0.0047
D. 0.0136
3. At the 5% level, the correct conclusion is:
A. The average consumption in Santa Clara County is not 28 pounds.
B. The average consumption in Santa Clara County is less than 28 pounds.
C. The average consumption in Santa Clara County is less than 24 pounds
D. The average consumption in Santa Clara County is 24 pounds
In: Statistics and Probability
1- Explain daton’s atomic theory and modern atomic theory ?
2- Explain cathode ray tube experiment and gold foil experiment?
3- Name various scientists and their accomplishments ?
4- Define subatomic particles and state their location?
In: Chemistry
Write a function that plots the following trajectory equations using python turtle graphics.
x = v*sin(A)*t
y = v*cos(A)*t -.5*(9.8)*t**2
Loop through t starting at 0 and increment by .1 until y<=0. (hint, while loop) Experiment with values of velocity V (1 to 20) and angle A (0 to 90) that gives you a good plot that does not go off the screen. Position the start of the plot at the left bottom of the screen
In: Computer Science
Use the following information for the Quick Study below.
[The following information applies to the questions
displayed below.]
A comparative balance sheet and income statement is shown for
Cruz, Inc.
| CRUZ, INC. Comparative Balance Sheets December 31, 2017 |
|||||||
| 2017 | 2016 | ||||||
| Assets | |||||||
| Cash | $ | 94,800 | $ | 24,000 | |||
| Accounts receivable, net | 41,000 | 51,000 | |||||
| Inventory | 85,800 | 95,800 | |||||
| Prepaid expenses | 5,400 | 4,200 | |||||
| Total current assets | 227,000 | 175,000 | |||||
| Furniture | 109,000 | 119,000 | |||||
| Accum. depreciation—Furniture | (17,000 | ) | (9,000 | ) | |||
| Total assets | $ | 319,000 | $ | 285,000 | |||
| Liabilities and Equity | |||||||
| Accounts payable | $ | 15,000 | $ | 21,000 | |||
| Wages payable | 9,000 | 5,000 | |||||
| Income taxes payable | 1,400 | 2,600 | |||||
| Total current liabilities | 25,400 | 28,600 | |||||
| Notes payable (long-term) | 29,000 | 69,000 | |||||
| Total liabilities | 54,400 | 97,600 | |||||
| Equity | |||||||
| Common stock, $5 par value | 229,000 | 179,000 | |||||
| Retained earnings | 35,600 | 8,400 | |||||
| Total liabilities and equity | $ | 319,000 | $ | 285,000 | |||
| CRUZ, INC. Income Statement For Year Ended December 31, 2017 |
||||||
| Sales | $ | 488,000 | ||||
| Cost of goods sold | 314,000 | |||||
| Gross profit | 174,000 | |||||
| Operating expenses | ||||||
| Depreciation expense | $ | 37,600 | ||||
| Other expenses | 89,100 | 126,700 | ||||
| Income before taxes | 47,300 | |||||
| Income taxes expense | 17,300 | |||||
| Net income | $ | 30,000 | ||||
QS 12-15B Direct: Computing operating cash outflows LO P5
1. How much cash is paid to acquire inventory
during year 2017?
2. How much cash is paid for "other expenses"
during year 2017? (Hint: Examine prepaid expenses and
wages payable.)
QS 12-15B Direct: Computing operating cash outflows LO P5
1. How much cash is paid to acquire inventory
during year 2017?
2. How much cash is paid for "other expenses"
during year 2017? (Hint: Examine prepaid expenses and
wages payable.)
QS 12-16B Direct: Computing cash from operations LO P5
Use the above balance sheet and income statement to prepare the
cash provided (used) from operating activities section by direct
method. (Amounts to be deducted should be indicated with a
minus sign.)
In: Accounting
What is the primary difference between a randomized clinical
trial and a prospective cohort study?
a) In a randomized clinical trial, patients choose their
exposure
b) In a randomized clinical trial, patients are randomly assigned
to exposure groups
c) In a prospective cohort study, investigators can never be
blinded
d) All of the above
e) None of the above
In: Biology
Ratio of Liabilities to Stockholders' Equity and Ratio of Fixed Assets to Long-Term Liabilities
Recent balance sheet information for two companies in the food industry, Santa Fe Company and Madrid Company, is as follows (in thousands):
| Santa Fe | Madrid | |||
| Net property, plant, and equipment | $634,720 | $816,800 | ||
| Current liabilities | 257,307 | 599,208 | ||
| Long-term debt | 587,116 | 588,096 | ||
| Other long-term liabilities | 206,284 | 228,704 | ||
| Stockholders' equity | 256,270 | 321,820 | ||
a. Determine the ratio of liabilities to stockholders' equity for both companies. Round to one decimal place.
| Santa Fe | |
| Madrid |
b. Determine the ratio of fixed assets to long-term liabilities for both companies. Round to one decimal place.
| Santa Fe | |
| Madrid |
In: Accounting
Santa Corp. has 5,000 zero-coupon bonds outstanding. The bonds have a face value of $1,000, 4 years to maturity, and are currently trading at $822.70. The firm also has 750,000 common shares outstanding. The shares are currently priced at $21.75 each and yesterday paid a dividend of $2.24. The firm’s most recent annual financial statements show net income of $2.80 mln, shareholders’ equity of $26.67 mln, and a marginal tax rate of 26%.
What are the weights of debt and equity in Santa Corp.’s capital structure? [2 points]
What is Santa Corp.’s required return on equity? [4 points]
What is Santa Corp.’s weighted average cost of capital? [4 points]
In: Finance
Write a 4-6 sentence summary explaining how you can use STL templates to create real world applications. In your summary, provide an example of a software project that you can create using STL templates and provide a brief explanation of the STL templates you will use to create this project.
After that you will implement the software project you described . Your application must be a unique project and must incorporate the use of an STL container and/or iterator and at least 7 STL algorithms with an option to exit. Your application must contain at least 8 menu options. You will decide how to implement these menu selections.
Her is the sample code how this project suppose to be.
A local library requested a program to help them organize their book collection. Their collection consists of 3500 books. They would like to be able to display all books by the author, so users could find specific book easier.
For this project, a menu-driven console was created to read data from a text file, and store the data in the vector container.
Each field in the text file was stored in a separate line. Starting the application triggered the creation of a vector and structs, where each struct will contain one book. Furthermore, the structs will contained the following information: author, title, publisher, description, ISBN, and year published fields which are pushed at the back of the vector.
When started, the application presents a welcome message with the current date, and a menu with the following menu items:
Add new book: program adds the book to the vector and to the text file
Remove book: program removes the book from the vector and from the text file
Remove All: program deletes vector
Search by author: Program prompts the user for the author’s name, search a vector for an author, and if found, the author’s name with the book title will be displayed to the user
Search by ISBN Program prompts user for the ISBN number, searches a vector for given ISBN, and if found, the author’s name with the book title and ISBN number will be displayed to the user
Sample code
#include <iostream> #include <fstream> #include <string> #include <vector>
using namespace std;
struct book {
string author;
string title;
string publisher;
string description;
string ISBN;
string yearPub;
};
int main() {
string tempStr;
book tempBook;
string choiceString = ""; int choiceInt = 0; vector<book>
library; bool found;
ifstream inFile("library.txt"); while (getline(inFile, tempStr)) {
tempBook.author = tempStr; getline(inFile, tempStr); tempBook.title = tempStr; getline(inFile, tempStr); tempBook.publisher = tempStr; getline(inFile, tempStr); tempBook.description = tempStr; getline(inFile, tempStr); tempBook.ISBN = tempStr; getline(inFile, tempStr); tempBook.yearPub = tempStr; library.push_back(tempBook);
} inFile.close();
while (choiceInt != 7) {
// Need this for screen
// Need this for files
// Need this for strings
// Need this for vectors
// Data structure of book type
found = false;
cout << "1. Add new book\n";
cout << "2. Remove book by ISBN\n"; cout << "3. Remove
All\n";
cout << "4. Display book list\n"; cout << "5. Search by
Author\n"; cout << "6. Search by ISBN\n";
cout << "7. Exit\n\n";
getline(cin, choiceString);
cout << endl;
choiceInt = stoi(choiceString);
switch (choiceInt) {
case 1:
cout << "Author name? "; getline(cin, tempBook.author); cout << "Title? ";
// Print menu
// Get choice // Change choice to integer for switch
// Add new book
// Open file for reading // While there is still data to import
// Put line items into book type
// Add book to library // Close file // Begin user input portion of program
getline(cin, tempBook.title);
cout << "Publisher? "; getline(cin, tempBook.publisher); cout
<< "Description? "; getline(cin, tempBook.description); cout
<< "ISBN? ";
getline(cin, tempBook.ISBN); cout << "Year published? "; getline(cin, tempBook.yearPub); library.push_back(tempBook); break;
case 2:
cout << "What is the ISBN? "; getline(cin, tempStr);
for (int i = 0; i < library.size(); i++)
if (library[i].ISBN == tempStr) {
library.erase(library.begin()+i);
found = true; }
if (!found)
cout << "ISBN not found\n";
break; case 3:
library.clear();
break; case 4:
for
// Remove all items from library // Print all books
// Put line items into book type // Add book to library
// Delete book by ISBN
// For loop to iterate through vector
(int i = 0; i < library.size(); i++) // For loop to iterate through vector
{
cout << "Author : " << library[i].author << " |
Title : " << library[i].title;
cout << "\nISBN : " << library[i].ISBN << " |
Publisher : " << library[i].publisher; cout <<
"\nDescription : " << library[i].description << " |
Year Published : " <<
library[i].yearPub << endl << endl; }
break;
case 5:
// Search by author
cout << "Author name? ";
getline(cin, tempStr);
for (int i = 0; i < library.size(); i++) // For loop to iterate
through vector
if (library[i].author == tempStr) {
cout << "Author : " << library[i].author << " | Title : " << library[i].title;
cout << "\nISBN : " << library[i].ISBN << " | Publisher : " << library[i].publisher;
cout << "\nDescription : " << library[i].description << " | Year Published : " << library[i].yearPub << endl << endl;
found = true; }
if (!found)
cout << "Author not found\n";
break; case 6:
// Search by ISBN
cout << "ISBN? ";
getline(cin, tempStr);
for (int i = 0; i < library.size(); i++) // For loop to iterate
through vector
if (library[i].ISBN == tempStr) {
cout << "Author : " << library[i].author << " | Title : " << library[i].title;
cout << "\nISBN : " << library[i].ISBN << " | Publisher : " << library[i].publisher;
cout << "\nDescription : " << library[i].description << " | Year Published : " << library[i].yearPub << endl << endl;
found = true; }
}
if (!found)
cout << "ISBN not found\n";
break; case 7:
break; default:
// Exit
break; }
}
cout << "Not a valid selection.\n\n";
ofstream outFile("library.txt"); while (!library.empty())
{
// Open out file stream // While there are still books in the library
// Get the data from the last book // Delete that book from the linked list
// Output book data to file by line
// Close out file
tempBook = library.front();
library.erase(library.begin());
outFile << tempBook.author << endl; outFile <<
tempBook.title << endl; outFile << tempBook.publisher
<< endl; outFile << tempBook.description << endl;
outFile << tempBook.ISBN << endl; outFile <<
tempBook.yearPub << endl;
} outFile.close();
In: Computer Science