OpenGL problem
Draw the entire scene composed with more than 5 objects. Scene should Include rigid transformations such as scale, rotate, translate, etc.
And please write down the code of the application program.cpp file (files containing main, render, etc). Also, show the picture of captured result screen.
you should give 1. code of the application program.cpp, 2. picture of captured result screen(entire scene). Please don't give incomplete answer.
In: Computer Science
suppose i have a list in python that is [hello,yo,great,this,cool,fam]
how do I get all the possible 2 combination that I can have from this list in tuples for example output
[ {hello,hello},{hello,yo},{hello,great},....... {yo,hello},{yo,yo} and so on and son}
no packages allowed
In: Computer Science
You are in charge of ordering programs for the Toronto Maple Leaf games. Because they are specific to an opponent, any leftover programs you have are recycled. Demand for programs is uniformly distributed from 3500 to 6500. The programs cost you $1.5 to print and you sell them for $8.0. How many programs should you order each game to maximize expected profits over
Question 31 (2 points)
Consider your answer in Question 30. If you could get $0.50 for unused Programs from a memorabilia company, what would happen to your optimal order?
Question 31 options:
stay the same. |
|
go up. |
|
go down. |
|
it depends on the distribution of demand. |
In: Operations Management
In: Operations Management
In: Physics
discuss the two types of diabetes and what you think
you should know as a medical assistant?
type 1 diabetes:
type 2 diabetes:
In: Nursing
RAK, Inc., has no debt outstanding and a total market value of
$165,000. Earnings before interest and taxes, EBIT, are projected
to be $21,000 if economic conditions are normal. If there is strong
expansion in the economy, then EBIT wIll be 25 percent higher. If
there is a recession, then EBIT will be 35 percent lower. The
company is considering a $60,000 debt issue with an interest rate
of 7 percent. The proceeds will be used to repurchase shares of
stock.There are currently 5,500 shares outstanding. Ignore taxes
for this problem.
a. Calculate earnings per share, EPS, under each of the three
economic scenarios before any debt is issued. Also calculate the
percentage changes in EPS when the economy expands or enters a
recession.
b. Repeat part (a) assuming that the company goes through with
recapitalization. What do you observe?
In: Finance
Ayayai Corp.’s unadjusted trial balance at December 1, 2017, is
presented below.
Debit |
Credit |
||
---|---|---|---|
Cash |
$25,000 | ||
Accounts Receivable |
35,000 | ||
Notes Receivable |
8,000 | ||
Interest Receivable |
0 | ||
Inventory |
36,000 | ||
Prepaid Insurance |
3,300 | ||
Land |
20,000 | ||
Buildings |
135,000 | ||
Equipment |
60,000 | ||
Patent |
9,000 | ||
Allowance for Doubtful Accounts |
$400 | ||
Accumulated Depreciation—Buildings |
45,000 | ||
Accumulated Depreciation—Equipment |
24,000 | ||
Accounts Payable |
27,000 | ||
Salaries and Wages Payable |
0 | ||
Notes Payable (due April 30, 2018) |
11,500 | ||
Income Taxes Payable |
0 | ||
Interest Payable |
0 | ||
Notes Payable (due in 2023) |
35,000 | ||
Common Stock |
50,000 | ||
Retained Earnings |
41,400 | ||
Dividends |
12,000 | ||
Sales Revenue |
900,000 | ||
Interest Revenue |
0 | ||
Gain on Disposal of Plant Assets |
0 | ||
Bad Debt Expense |
0 | ||
Cost of Goods Sold |
630,000 | ||
Depreciation Expense |
0 | ||
Income Tax Expense |
0 | ||
Insurance Expense |
0 | ||
Interest Expense |
0 | ||
Other Operating Expenses |
61,000 | ||
Amortization Expense |
0 | ||
Salaries and Wages Expense |
100,000 | ||
Total |
$1,134,300 | $1,134,300 |
The following transactions occurred during December.
Dec. 2 | Purchased equipment for $15,600, plus sales taxes of $600 (paid in cash). | |
2 | Ayayai sold for $3,500 equipment which originally cost $4,800. Accumulated depreciation on this equipment at January 1, 2017, was $1,800; 2017 depreciation prior to the sale of equipment was $400. | |
15 | Ayayai sold for $5,000 on account inventory that cost $3,200. | |
23 | Salaries and wages of $6,300 were paid. |
Adjustment data:
1. | Ayayai estimates that uncollectible accounts receivable at year-end are $3,800. | |
2. | The note receivable is a one-year, 8% note dated April 1, 2017. No interest has been recorded. | |
3. | The balance in prepaid insurance represents payment of a $3,300, 6-month premium on September 1, 2017. | |
4. | The building is being depreciated using the straight-line method over 30 years. The salvage value is $30,000. | |
5. | The equipment owned prior to this year is being depreciated using the straight-line method over 5 years. The salvage value is 10% of cost. | |
6. | The equipment purchased on December 2, 2017, is being depreciated using the straight-line method over 5 years, with a salvage value of $1,800. | |
7. | The patent was acquired on January 1, 2017, and has a useful life of 9 years from that date. | |
8. | Unpaid salaries at December 31, 2017, total $2,000. | |
9. | Both the short-term and long-term notes payable are dated January 1, 2017, and carry a 10% interest rate. All interest is payable in the next 12 months. | |
10 | Income tax expense was $12,000. It was unpaid at December 31. |
A) Prepare journal entries for the transactions listed above and
adjusting entries. (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. Record journal entries
in the order presented in the
problem.)
B) Prepare an adjusted trial balance at December 31, 2017.
C) Prepare a 2017 income statement.
D) Prepare a 2017 retained earnings statement. (List items that increase retained earnings first.)
E) Prepare a December 31, 2017, balance sheet. (List Current Assets in order of liquidity. List Property, Plant and Equipment in order of Land, Buildings and Equipment.)
In: Accounting
5.25. The following pseudocode (next page) is a correct implementation of the producer/consumer problem with a bounded buffer:
Labels p1, p2, p3 and c1, c2, c3 refer to the lines of code shown above (p2 and c2 each cover three lines of code). Semaphores empty and full are linear semaphores that can take unbounded negative and positive values. There are multiple producer processes, referred to as Pa, Pb, Pc, etc., and multiple consumer processes, referred to as Ca, Cb, Cc, etc. Each semaphore maintains a FIFO (first-in-first-out) queue of blocked processes. In the scheduling chart below, each line represents the state of the buffer and semaphores after the scheduled execution has occurred. To simplify, we assume that scheduling is such that processes are never interrupted while executing a given portion of code p1, or p2, . . . , or c3. Your task is to complete the following chart.
item[3] buffer; // initially empty semaphore empty; // initialized to +3 semaphore full; // initialized to 0 binary_semaphore mutex; // initialized to 1 |
|
void producer() |
void consumer() |
{ |
{ |
... |
... |
while (true) { |
while (true) { |
item = produce(); |
c1: wait(full); |
p1: wait(empty); |
/ wait(mutex); |
/ wait(mutex); |
c2: item = take(); |
p2: append(item); |
\ signal(mutex); |
\ signal(mutex); |
c3: signal(empty); |
p3: signal(full); |
consume(item); |
} |
} |
} |
} |
Scheduled Step of Execution |
full’s State and Queue |
Buffer |
empty’s State and Queue |
Initialization |
full=0full=0 |
OOO |
empty=+3empty= +3 |
Ca executes c1 |
full=−1full= −1 (Ca) |
OOO |
empty=+3empty= +3 |
Cb executes c1 |
full=−2full= −2 (Ca, Cb) |
OOO |
empty=+3empty= +3 |
Pa executes p1 |
full=−2full= −2 (Ca, Cb) |
OOO |
empty=+2empty= +2 |
Pa executes p2 |
full=−2full= −2 (Ca, Cb) |
X OO |
empty=+2empty= +2 |
Pa executes p3 |
full=−1full= −1 (Cb) Ca |
X OO |
empty=+2empty= +2 |
Ca executes c2 |
full=−1full= −1 (Cb) |
OOO |
empty=+2empty= +2 |
Ca executes c3 |
full=−1full= −1 (Cb) |
OOO |
empty=+3empty= +3 |
Pb executes p1 |
full= full= |
empty= empty= |
|
Pa executes p1 |
full= full= |
empty= empty= |
|
Pa executes __ |
full= full= |
empty= empty= |
|
Pb executes __ |
full= full= |
empty= empty= |
|
Pb executes __ |
full= full= |
empty= empty= |
|
Pc executes p1 |
full= full= |
empty= empty= |
|
Cb executes __ |
full= full= |
empty= empty= |
|
Pc executes __ |
full= full= |
empty= empty= |
|
Cb executes __ |
full= full= |
empty= empty= |
|
Pa executes __ |
full= full= |
empty= empty= |
|
Pb executes p1-p3 |
full= full= |
empty= empty= |
|
Pc executes __ |
full= full= |
empty= empty= |
|
Pa executes p1 |
full= full= |
empty= empty= |
|
Pd executes p1 |
full= full= |
empty= empty= |
|
Ca executes c1-c3 |
full= full= |
empty= empty= |
|
Pa executes __ |
full= full= |
empty= empty= |
|
Cc executes c1-c2 |
full= full= |
empty= empty= |
|
Pa executes __ |
full= full= |
empty= empty= |
|
Cc executes c3 |
full= full= |
empty= empty= |
|
Pd executes p2-p3 |
full= full= |
empty= |
In: Computer Science
In: Computer Science
It is a common practice of Kodak in markets outside of the United States to sell slide film only bundled with development, i.e., when the customer buys Kodak film, she gets Kodak development for "free." In the U.S., however, slide film and slide film development are sold separately. Why might this be? Let us investigate the market in Malaysia.
Kodak's marketing research department has identified four broad categories of consumers in Malaysia interested in slide photography: the Malays (type A), the Chinese (type B), the Tamils (type C), and American tourists (type D). Because of the tropical climate and the limited photo opportunities, all photographers demand only one 36-slide roll per month. The four types differ in their relative preference for Kodak film and Kodak development. Because of deep-seated cultural traditions, the Malays (type A) tend to value the film much more than the development; the Chinese value the development much more than the film; the Tamils value both about equally and low; American tourists, however, value both high.
Given below are four alternative reservation price/marketing composition/cost scenarios. In each scenario, the relevant demand data are given as triples of numbers. The first number in each triple is the reservation price for a 36-slides roll of Kodak film, the second number is the reservation price for Kodak developing this roll of film, and the third number is the segment's size as a fraction of the picture-taking population. For example, in (1) below, A's willingness- to-pay for film is $3, its willingness-to-pay for development is $1, and this segment constitutes 10% of the population. Note we assume consumers can buy film and development separately.
(Please highlight the optimal pricing strategy.)
(i) A ($3, $1, 0.10) B ($1, $3, 0.10) C ($1, $1, 0.70) D ($3, $3, 0.10) Unit cost of film: $0.50; Unit cost of development: $0.50
(ii) A ($3, $1, 0.25) B ($1, $3, 0.25) C ($1, $1, 0.25) D ($3, $3, 0.25) Unit cost of film: $0.50; Unit cost of development: $0.50
(iii) A ($3, $1, 0.25) B ($1, $3, 0.25) C ($1, $1, 0.25) D ($2.5, $2.5, 0.25) Unit cost of film: $0.50; Unit cost of development: $0.50
(iv) A ($3, $1, 0.25) B ($1, $3, 0.25) C ($1, $1, 0.25) D ($2.5, $2.5, 0.25) Unit cost of film: $1.50; Unit cost of development: $1.50
(1) Determine the profit-maximizing selling strategy in each scenario above.
(2) From this analysis, what can we say about why Kodak has different marketing policies in the U.S. and Malaysia?
In: Operations Management
Internal Audit
The PIXEL Company performs its expenditure cycle activities using its integrated ERP system as follows:
Employees in any department can enter purchase requests for items they note as being either out of stock or in small quantity.
The company maintains a perpetual inventory system.
Each day, employees in the purchasing department process all purchase requests from the prior day. To the extent possible, requests for items available from the same supplier are combined into one larger purchase order in order to obtain volume discounts. Purchasing agents use the Internet to compare prices in order to select suppliers. If an Internet search discovers a potential new supplier, the purchasing agent enters the relevant information in the system, thereby adding the supplier to the approved supplier list. Purchase orders above $10,000 must be approved by the purchasing department manager. EDI is used to transmit purchase orders to most suppliers, but paper purchase orders are printed and mailed to suppliers who are not EDI capable.
Receiving department employees have read-only access to outstanding purchase orders. Usually, they check the system to verify existence of a purchase order prior to accepting delivery, but sometimes during rush periods they unload trucks and place the items in a corner of the warehouse where they sit until there is time to use the system to retrieve the relevant purchase order. In such cases, if no purchase order is found, the receiving employee contacts the supplier to arrange for the goods to be returned.
Receiving department employees compare the quantity delivered to the quantity indicated on the purchase order. Whenever a discrepancy is greater than 5%, the receiving employee sends an email to the purchasing department manager. The receiving employee uses an online terminal to enter the quantity received before moving the material to the inventory stores department.
Inventory is stored in a locked room. During normal business hours an inventory employee allows any employee wearing an identification badge to enter the storeroom and remove needed items. The inventory storeroom employee counts the quantity removed and enters that information in an online terminal located in the storeroom.
Occasionally, special items are ordered that are not regularly kept as part of inventory, from a specialty supplier who will not be used for any regular purchases. In these cases, an accounts payable clerk creates a one-time supplier record. All supplier invoices (both regular and one-time) are routed to accounts payable for review and approval. The system is configured to perform an automatic 3- way match of the supplier invoice with the corresponding purchase order and receiving report. Each Friday, approved supplier invoices that are due within the next week are routed to the treasurer’s department for payment. The cashier and treasurer are the only employees authorized to disburse funds, either by EFT or by printing a check. Checks are printed on dedicated printer located in the treasurer’s department, using special stock paper that is stored in a locked cabinet accessible only to the treasurer and cashier. The paper checks are sent to accounts payable to be mailed to suppliers.
Monthly, the treasurer reconciles the bank statements and investigates any discrepancies with recorded cash balances.
Required: a. Identify at least five activities (or sub-processes) within the expenditure process described above. (3 points)
b. Identify five risks associated with the five activities identified on a. (5 points)
c. Propose a control for each risk identified on b. (5 points)
Note:
Present your answer in a risk/ control matrix reduced to only three-column table with these headings: Activity (or Sub-processes), Risks, and Controls.
In: Accounting
19. The pH of a solution prepared by mixing 50.0 mL of 0.125 M NaOH and 40.0 mL of
0.125 M HNO3 is ____
[A] 13.29 [B] 8.11 [C] 11.00 [D] 12.14 [E] 7.00
20. The pH of a solution prepared by mixing 50.0 mL of 0.125 M KOH and 50.0 mL of 0.125 M HCl is ______
[A] 1.34 [B] 5.78 [C]1.90 [D] 1.14 [E] 7.0
21. Consider the following table for Ksp values
Cadmium carbonate |
CdCO3 |
5.2 x 10-12 |
Cadmium hydroxide |
Cd(OH)2 |
2.5 x10-14 |
Cadmium fluoride |
CdF2 |
3.9 x10-11 |
Silver iodide |
AgI |
8.3x10-17 |
Zinc carbonate |
ZnCO3 |
1.4 x 10-11 |
Which will have the least solubility in the given solvent?
[A] CdCO3 [B] Cd(OH)2 [C] CdF2 [D] AgI [E] ZnCO3
22. What is the molar solubility of magnesium oxalate ( MgC2O4) in water? The solubility-
product constant for MgC2O4 is 8.6 x 10-5 at 25 °C.
[A] 4.07 [B] 1.7 x10-4 [C] 1.3 x10-2 [D] 4.3 x10-5 [E] 9.3 x10-3
In: Chemistry
The enthalpy change for the following reaction is -748 kJ. Using bond energies, estimate the C≡O bond energy in CO(g). 2CO(g) + 2NO(g)2CO2(g) + N2(g)
In: Chemistry
Amelia Inc. is considering the purchase of a new piece of equipment. The cost savings from the equipment would result in an annual increase in net income of $200,900. The equipment will have an initial cost of $1,200,900 and have an 8 year life. The salvage value of the equipment is estimated to be $200,900. The hurdle rate is 10%. Ignore income taxes. (Future Value of $1, Present Value of $1, Future Value Annuity of $1, Present Value Annuity of $1.) (Use appropriate factor from the PV tables.)
What is the accounting rate of return? (Round your
answer to 2 decimal places.)
b. What is the payback period? (Round your
answer to one decimal place.)
c. What is the net present value? (Do not
round intermediate calculations and round your final answer to the
nearest dollar amount.)
d. What would the net present value be with a 13%
hurdle rate? (Do not round intermediate calculations and
round your final answer to the nearest dollar
amount.)
e. Based on the NPV calculations, in what range
would the equipment’s internal rate of return fall? (Round
your answer to 2 decimal places.)
In: Accounting