In java, implement an animal guessing game. Start with a "Decision Tree", but present the leaves as “Is it a X?” If it wasn't, ask the user what the animal was, and ask for a question that is true for that animal but false for X. For example,
Is it a mammal? Y Does it have stripes? N Is it a pig? N I give up. What is it? A hamster Please give me a question that is true for a hamster and false for a pig. Is it small and cuddly?
In this way, the program learns additional facts.
Once complete, add to the program by writing the tree to a file when the program exits. Load the file when the program starts again.
In: Computer Science
In a quiz show a uniformly random integer r between 1 and 10 is generated. Another, independent such random numbers will then be generated, but before that happens, you are invited to guess whether s will be greater than or less than r. If you are correct, then you win s pounds. If you lose (or if s = r) then you win nothing. (i) Clearly if r = 1 you should guess that s will be larger. And if r = 10 you should guess that s will be smaller. At which value of r should your strategy change from guessing s will be larger to guessing it will be smaller? (Your aim, as always, is to maximise your expected gain.) (ii) Suppose now that the range of possible values for r and s is 1, ... , N. Then in the limit as N tends to infinity the change of strategy should happen at a value of r of approximately N/k. Find the value of k.
In: Math
You have two glasses of water each with equal amount of it. In
glass “A” the temperature of the water is 10 ◦C. In glass “B” the
temperature of the water is 30 ◦C. (4/20 credits)
a) The water in glass A has more internal energy
b) The water in glass B has more internal energy c) They have equal amount of internal energy
What formula did you use to derive your answer?
In: Physics
Why are water-soluble oils of low volatility not typically isolated by steam distillation?
In: Chemistry
What is the pH of a solution of 0.20 M HNO2?
In: Chemistry
Problem 5-50 Activity-Based Costing; Analysis of Operations (LO 5-1, 5-2, 5-4, 5-5, 5-7, 5-10)
Grady and Associates performs a variety of activities related to information systems and e-commerce consulting in Toronto, Canada. The firm, which bills $160 per hour for services performed, is in a very tight local labor market and is having difficulty finding quality help for its overworked professional staff. The cost per hour for professional staff time is $70. Selected information follows.
A recent analysis of staff support costs found a correlation
with the number of clients served. In-house computing and
miscellaneous office charges varied directly with the number of
computer hours logged and number of client transactions,
respectively. A tabulation revealed the following data:
| Information Systems Services |
E-Commerce Consulting |
Total | |||||||||
| Number of clients | 245 | 65 | 310 | ||||||||
| Number of computer hours | 3,600 | 2,300 | 5,900 | ||||||||
| Number of client transactions | 680 | 820 | 1,500 | ||||||||
Required:
2. Assume that the firm uses traditional costing
procedures, allocating total costs on the basis of billable hours.
Determine the profitability of the firm’s information systems and
e-commerce activities, expressing your answer both in dollars and
as a percentage of activity revenue.
3. Assume that the firm uses activity-based
costing. Determine the profitability of the firm’s information
systems and e-commerce activities, expressing your answer both in
dollars and as a percentage of activity revenue.
4. Jeffrey Grady, one of the firm’s partners,
doesn’t care where his professionals spend their time because, as
he notes, “many clients have come to expect both services and we
need both to stay in business. Also, information systems and
e-commerce professionals are paid the same hourly rate.” Should
Grady’s attitude change?
I need # 3.
In: Accounting
If you're writing about a theory with Yang-Mills/Gauge fields for an arbitrary reductive gauge group coupled to arbitrary matter fields in some representation, is it best to call it a Yang-Mills theory or a Gauge theory?
I've heard that one is more likely to refer to a theory with no matter sector - but I can't remember which one! Or are the terms basically interchangeable in the context of quantum field theory?
In: Physics
A rocket is launched at an angle of 53.0° above the horizontal with an initial speed of 98 m/s. The rocket moves for 3.00 s along its initial line of motion with an acceleration of 31.0 m/s2. At this time, its engines fail and the rocket proceeds to move as a projectile.
(a) Find the maximum altitude reached by the rocket.
(b) Find its total time of flight.
(c) Find its horizontal range.
EXPLAIN ANSWERS PLEASE THE FIRST PERSON I ASKED BEFORE GOT IT WRONG
In: Physics
In: Psychology
Would atomic absorption be a useful technique for determining concentration of benzene in a water sample? Why or why not?
In: Chemistry
A solution contains [Ba2+] = 5.0 × 10-5 M, [Ag+] = 3.0 × 10-5 M, and [Zn2+] = 2.0 × 10-7 M. Sodium oxalate is slowly added so that [C2O42-] increases. Salt BaC2O4 ZnC2O4 Ag2C2O4 Ksp 1.5 × 10-8 1.35 × 10-9 1.1 × 10-11 What is the concentration of the first cation to precipitate when the second cation just begins to precipitate?
In: Chemistry
I need to get the MATLAB calculation for this but I can't. I past the exact same thing into MATLAB R2016b Editor but it gives me error. Please write your answer and telling what is wrong with the code. What should I add or remove in this code to get the answer and calculations. Please explain step by step this is the first time ever that I am using MATLAB. Thanks
I need to get the MATLAB calculation for this but I can't. I past the exact same thing into MATLAB R2016b Editor but it gives me error. Please write your answer and telling what is wrong with the code. What should I add or remove in this code to get the answer and calculations. Please explain step by step this is the first time ever that I am using MATLAB.
Thanks
>> V=5; R1=270; R2=470; R3=560; R4=220; R5=330;
>>Req1= R4+R5;
>>Req2=1/((1/R1)+(1/R2)+(1/R3));
>>Ieq=V/(Req1+Req2);
>>Veq1=Ieq*Req1;
>>Veq2=Ieq*Req2;
>>V1=Veq1*(R4/(R4+R5));
>>V2=Veq1*(R5/(R4+R5));
>>V3=Veq2;
>>I1=V3/R1;
>>I2=V3/R2;
>>I3=V3/R3;
In: Computer Science
In February 2017, Sheridan Construction signed a contract and
commenced construction on a parking garage. The total contract
price was $90.9 million, and was expected to be completed in July
2021 at a total estimated cost of $82.9 million. Payment by the
customer was to be made in several stages, based on significant
events and dates throughout the construction timeline. The customer
was to have control over the parking garage and was able to make
major changes to the project during the construction process.
Sheridan’s year-end was September 30.
By the end of September, 2017, Sheridan had incurred $12,435,000 in
costs and had invoiced $10,100,000 in progress billings. $9,100,000
of the progress billings had been collected.
By September 30, 2018, Sheridan had incurred $51,415,000 in total
costs and had invoiced $45,200,000 in progress billings, including
the progress billings in 2017. Of the total billings, $30,400,000
in total had been collected. Also, Sheridan reviewed its cost
estimates on the project, and now believed the parking garage would
cost $79.1 million in total to complete.
Prepare all journal entries required for the year ended September 30, 2017. Use Accounts Payable for costs incurred to date. (Credit account titles are automatically indented when the 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.)
|
(To record the 2017 cost of construction) |
|
(To record the 2017 progress billings) |
|
(To record the 2017 cash collections) |
|
(To record the 2017 revenue) |
|
(To record the construction expenses) |
Prepare all journal entries required for the year ended September
30, 2018. Use Accounts Payable for costs incurred to date.
(Credit account titles are automatically indented when
the 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.)
|
(To record the 2018 cost of construction) |
|
(To record the 2018 progress billings) |
|
(To record the 2018 cash collections) |
|
(To record the 2018 revenue) |
|
(To record the 2018 expenses) |
In: Accounting
In 2017, Samsung regained control as the leader in the worldwide smart phone market. The competitive landscape has change significantly with the rise of brands such as OPPO and Vivo in smart phone segment. Huawei, in particular, poses a big threat to Samsung
In: Operations Management
Optical fibers use reflection to guide light through a channel. Explain, in your own words, how optical fibers are made in order for the light to be reflected off the cladding instead of refracted into it?
In: Physics