Language: Python
Create a graph and then set initial and goal states such that the number of nodes visited for BFS is smaller than that in DFS. Now modify the initial and goal state such that the number of nodes visited for BFS is larger than that in DFS.
In: Computer Science
If 4.1 g of butanoic acid, C4H8O2, is dissolved in enough water to make 1.0 L of solution, what is the resulting pH?
In: Chemistry
Is population growth an impediment for economic development? Discuss the arguments in favour and against.
In: Economics
A private opinion poll is conducted for a politician to determine what proportion of the population favors decriminalizing marijuana possession. How large a sample is needed in order to be 95% confident that the sample proportion will not differ from the true proportion by more than 2%?
A. 2401
B. 25
C. 1692
D. 4802
In: Math
Magnetism
What types of poles are there and how do they interact?
Explain three situations in which a magnetic force will interact. (hint: two poles, current carrying wire, moving
charge)
What affects the induced current of a coil in a magnetic field?
In: Physics
Marin Construction Company began work on a $424,000 construction contract in 2020. During 2020, Marin incurred costs of $279,500, billed its customer for $204,500, and collected $170,500. At December 31, 2020, the estimated additional costs to complete the project total $150,500. Prepare Marin’s journal entry to record profit or loss, if any, using (a) the percentage-of-completion method and (b) the completed-contract method. (Credit account titles are automatically indented when amount is entered. Do not indent manually. If no entry is required, select "No entry" for the account titles and enter 0 for the amounts. Round answers to 0 decimal places, e.g. 5,275.)
In: Accounting
What is the most important characteristic of muscle architecture that dictates its maximal force production?
a.) Tendon length b.) Number of sarcomeres in series c). Anatomical cross-sectional area d). Physiological cross-sectional area
In: Physics
A chemist weighed out 1.654 g of a mixture containing unknown amounts of iron (Fe) and lead (Pb) and placed the sample in a 0.500 L flask containing O2 (g) at 24.0 C and 846 torr. After heating, the reaction to form Fe2O3(s) and PbO2(s) was completed, the vessel was cooled to 24.0 C and the pressure of O2 (g) remaining was 452 torr. Calculate the mass percentage of lead in the mixture. Molar masses (g/mol) : PbO2: 239.20; Fe2O3: 159.69; Pb: 207.20; Fe: 55.85
In: Chemistry
Question 21
Vibrios are bacteria that have.....
| A. |
Comma shape |
|
| B. |
Rod shape |
|
| C. |
All are correct |
|
| D. |
Spiral shape |
2.5 points
Question 22
Fungal hyphae in which two genetically distinct kinds of……………………occur together are said to be heterokaryotic
| A. |
Nuclei |
|
| B. |
Chloroplast |
|
| C. |
Parenchyma cells |
|
| D. |
Flagella |
2.5 points
Question 23
............................occurs in vascular plants which have microspores and megaspores
| A. |
Algae |
|
| B. |
Diatom |
|
| C. |
Heterospory |
|
| D. |
Bacteria |
2.5 points
Question 24
The first plants clearly evolved from an organism that, if it existed today, would be classified as a multicellular…………………
| A. |
Cyanobacteria |
|
| B. |
Bryophyte |
|
| C. |
Green algae |
|
| D. |
Meristematic tissue |
2.5 points
Question 25
Chloroplasts are descended from
| A. |
Plasmid |
|
| B. |
Fern frond |
|
| C. |
Cyanobacteria |
|
| D. |
Trypanosoma |
2.5 points
Question 26
Shigella species causes
| A. |
Measles |
|
| B. |
Pneumonia |
|
| C. |
Bacterial descentry |
|
| D. |
Chicken pox |
2.5 points
Question 27
Which of the following statement is not true about protists?
| A. |
Protists have cuticle |
|
| B. |
Photosynthetic protists are at the base of aquatic food chain |
|
| C. |
Protozoan are the heterotropic unicellular protist |
|
| D. |
Euglena is a photosynthetic protist |
2.5 points
Question 28
Humankind's most prevalent diseases are caused by phylum apicomplexan which are protists consist of endoplasmic protozoan. Which of the following disease is caused by these protists?
| A. |
Head injury |
|
| B. |
Malaria (by Plasmodium) |
|
| C. |
Fungal infection |
|
| D. |
Any physical trauma |
2.5 points
Question 29
Which of the following is true regarding photosynthetic protists?
| A. |
They are called lichens |
|
| B. |
They are called photoautotroph |
|
| C. |
They are parasites |
|
| D. |
They do genetic transduction |
2.5 points
Question 30
What does Lichen mean?
| A. |
Helpful symbiotic relationship between blue/green algae (cyanobacteria) with filamentous fungus |
|
| B. |
It is an insect |
|
| C. |
It is harmful for mankind |
|
| D. |
All are correct |
In: Biology
When exposed to air, aluminum metal, Al, reacts with oxygen, O2, to produce a protective coating of aluminum oxide, Al2O3, which prevents the aluminum from rusting underneath. The balanced reaction is shown here: 4Al+3O2→2Al2O3
What is the theoretical yield of aluminum oxide if 2.20 mol of aluminum metal is exposed to 1.95 mol of oxygen?
In: Chemistry
Six Measures of Solvency or Profitability
The following data were taken from the financial statements of Gates Inc. for the current fiscal year.
| Property, plant, and equipment (net) | $1,268,400 | |||||
| Liabilities: | ||||||
| Current liabilities | $180,000 | |||||
| Note payable, 6%, due in 15 years | 906,000 | |||||
| Total liabilities | $1,086,000 | |||||
| Stockholders' equity: | ||||||
| Preferred $2 stock, $100 par (no change during year) | $1,086,000 | |||||
| Common stock, $10 par (no change during year) | 1,086,000 | |||||
| Retained earnings: | ||||||
| Balance, beginning of year | $1,158,000 | |||||
| Net income | 474,000 | $1,632,000 | ||||
| Preferred dividends | $21,720 | |||||
| Common dividends | 162,280 | 184,000 | ||||
| Balance, end of year | 1,448,000 | |||||
| Total stockholders' equity | $3,620,000 | |||||
| Sales | $28,448,700 | |||||
| Interest expense | $54,360 | |||||
Assuming that total assets were $4,471,000 at the beginning of the current fiscal year, determine the following. When required, round to one decimal place.
| a. Ratio of fixed assets to long-term liabilities | |
| b. Ratio of liabilities to stockholders' equity | |
| c. Asset turnover | |
| d. Return on total assets | % |
| e. Return on stockholders’ equity | % |
| f. Return on common stockholders' equity | % |
In: Accounting
Write a program, which will act as a simple four-function calculator. That is, it will read a number, read an operator, read another number, then do the operation. The calculator works with integers and uses four functions: +, -, *, and /. After the first operation is completed, the program will read another operator and uses the result of the previous operation as the first value for the next operation. If the user enters either an upper- or lower-case C the result is cleared and then the user starts entering a new number. If the user enters an X, the calculator is turned off. The various input values (i.e. numbers, operators, commands) will be followed by the ENTER key. Your program should prompt the user on what the user is to do. The commands C and X may be entered in place of an operator.
NOTES:
The person using the calculator has a terrible time using a keyboard and may not always enter a valid operator. If this happens the program should ask for another operator. Regardless of the math operation attempted, the program must not die. If the math operation would cause a fatal error in your program you should check for it and issue an error message rather than attempting the operation.
Please write the code for C programming, not C++ or Java
In: Computer Science
USE PYTHON ONLY
Please write a Python program to let you or the user play the game of rolling a dice and winning/losing money. Initially, you have 100 dollars in your account. You place a bet to roll the dice. The game will be stopped if your bet is zero. First, dealer would roll the dice and get a number from random.randint(1, 6). Then, you would roll the dice and get a number from random.randint(1, 6). Now, compare your number with dealer’s number to see whether you won or lose the bet. If you lose, the bet would be deducted from your account. If you won, the bet would be added to your account. If it’s a tie, your account is not touched. Then, continue the game of putting your bet until your bet is zero. The game is to continue even when you have zero or negative amount of money. You must test your game program 3 times with at least 10 rounds for each game. The output of your test case #1 may like as follows: Welcome to the Rolling Dice Game of TM
1 =============================================. Now, you have 100 dollars to play the game.
2 =============================================. Enter your bet to roll the dice (enter 0 to quit): 10 Dealer got 1 , and you got 5 . You won 10 dollars. Now, you have 110 dollars.
3 =============================================. Enter your bet to roll the dice (enter 0 to quit): 5 Dealer got 5 , and you got 3 . You lost 5 dollars. Now, you have 105 dollars.
4 =============================================. Enter your bet to roll the dice (enter 0 to quit): 30 Dealer got 3 , and you got 3 . It's a tie. Now, you have 105 dollars.
5 =============================================. Enter your bet to roll the dice (enter 0 to quit): 200 Dealer got 3 , and you got 4 . You won 200 dollars. Now, you have 305 dollars.
6 =============================================. Enter your bet to roll the dice (enter 0 to quit): 100 Dealer got 4 , and you got 1 . You lost 100 dollars. Now, you have 205 dollars.
7 =============================================. Enter your bet to roll the dice (enter 0 to quit): 205 Dealer got 2 , and you got 6 . You won 205 dollars. Now, you have 410 dollars.
8 =============================================. Enter your bet to roll the dice (enter 0 to quit): 400 Dealer got 3 , and you got 6 . You won 400 dollars. Now, you have 810 dollars.
9 =============================================. Enter your bet to roll the dice (enter 0 to quit): 500 Dealer got 4 , and you got 1 . You lost 500 dollars. Now, you have 310 dollars.
10 =============================================. Enter your bet to roll the dice (enter 0 to quit): 310 Dealer got 6 , and you got 2 . You lost 310 dollars. Now, you have 0 dollars.
11 =============================================. Enter your bet to roll the dice (enter 0 to quit): 10 Dealer got 3 , and you got 6 . You won 10 dollars. Now, you have 10 dollars.
12 =============================================. Enter your bet to roll the dice (enter 0 to quit): 40 Dealer got 3 , and you got 1 . You lost 40 dollars. Now, you have -30 dollars.
13 =============================================. Enter your bet to roll the dice (enter 0 to quit): 0
14 =============================================. Thank you for playing the Rolling Dice Game of TM
15 =============================================.
In: Computer Science
Exercise goals: Be able to solve the profit maximization problem
of a monopolist with third-degree price discrimination.
Understand the differences between 3DPD and single-pricing. You own
a monopoly that produces cars to be sold in two countries:
Freedonia and Sylvania. Demand for cars in Freedonia is given by PF
= 16,000-20QF, while demand in Sylvania is given by
PS = 20, 000 - 10QS. You own a single plant in Sylvania
that produces cars for both countries. Your cost function is C (Q)
= 8, 000Q, where Q = QF + QS.
1. (1 point) Initially, these two countries have a peaceful
relationship, and free trade exists between them, therefore you can
only charge a single price between the two countries. What price do
you set? How much profit do you collect? [Hint: it may be easier to
solve this maximization problem in terms of P. To do so, you can
first obtain the demand functions (i.e. Q(P) = . . .), and then
write the cost function in terms of P using the demand
functions]
2. (1 point) How much consumer surplus is generated in each country?
3. (1 points) The Freedonian government finds out that Sylvania
is secretly plotting to invade Freedonia. This discovery leads to
an interruption in free trade between the two countries. That’s
good news for you: it means you can now sell cars in Freedonia at a
different price than in Sylvania. However, in order to do so, you
have to build a factory in Freedonia as well. Suppose that you can
build a factory for free (the Freedonian government is giving you a
generous handout because they like your cars). The plants are
identical, so you have the same cost function in both countries (C
(Q) = 8, 000Q). What prices do you set? How much profit do you
collect?
4. (1 point) How much consumer surplus is generated for each
country in this new scenario? Comment on whether you think 3DPD is
good or bad for society as a whole (i.e. Freedonia + Sylvania) in
this case.
5. (1 point) Suppose that the cost of building a factory is
300,000. Does it make sense for the Freedonian government to
subsidize the plant? Why or why not? [When answering this question,
assume that the Freedonian government only cares about the
well-being of its citizens]
In: Economics