Questions
BROKEN SPEEDOMETER The cycling competition is near, so jojo needs to practice cycling. he used a...

BROKEN SPEEDOMETER

The cycling competition is near, so jojo needs to practice cycling. he used a speedometer found in his basement to measure his speed. however, it turns out that the speedometer is not usual! the digits on the speedometer can only count up to 2. if we add a value to a digit 2, it will revert to 0 and adds a value to the next digit.

for example, the numbers [0,1,2,3,4,5,6,7] will be shown as [0,1,2,10,11,12,20,21] on the speedometer. jojo doesn't have time to find a new speedometer, so he decided to use this one. He targets on reaching N m/s speed. help him determine what will be shown on the speedometer the moment jojo reached N m/s speed.

Format Input

The first line of input contains an integer T. the next T lines each contains an integer N, jojo's target.

Format Output

For each case, output "Case #X:Y, where X is the test case number and Y is a string denoting the numbers shown on the speedometer once jojo reached N m/s.

Constraints

. 1 ≤ T ≤ 50

. 0 ≤ N ≤ 10^5

Sample Input (standard input)

2

2

21

Sample Output (standard output)

Case #1: 2

Case #2: 210

WITH C LANGUAGE

In: Computer Science

Below, you are provided with values of several perfectly or near-perfectly liquid assets (before the transactions...

Below, you are provided with values of several perfectly or near-perfectly liquid assets (before the transactions described below take place). Asset Value Savings Deposits $170 million Money Market Mutual Funds $40 million Travelers' Checks $5 million Currency and Coins $25 million Time Deposits $30 million Checking Deposits $240 million Suppose that households, on average, take $45 million out of their savings account balances and deposit those funds into their checking accounts. You will analyze the effect of these transactions on M1 and M2 in this assignment. Make sure to address the following issues/questions in your response: 1) Describe which of the two definitions of money (M1 or M2) is a stricter definition of money and why; 2) Calculate the value of M1 before and after the transactions described above; 3) Calculate the value of M2 before and after the transactions described above; 4) Identify whether M1 has grown, shrunk, or neither; and 5) Identify whether M2 has grown, shrunk, or neither.

In: Economics

1. In humans, darker skin color is adaptive at latitudes near the equator (where ultraviolet light...

1. In humans, darker skin color is adaptive at latitudes near the equator (where ultraviolet light is most intense) because UV light

stimulates synthesis of folic acid 

causes breakdown of folic acid 

stimulates synthesis of vitamin D 

causes breakdown of vitamin D

2. In humans, lighter skin color is adaptive at latitudes far from the equator because UV light

stimulates synthesis of folic acid 

causes breakdown of folic acid 

stimulates synthesis of vitamin D 

causes breakdown of vitamin D

In: Anatomy and Physiology

Kilgore's Deli is a small delicatessen located near a major university. Kilgore does a large walk-in...

Kilgore's Deli is a small delicatessen located near a major university. Kilgore does a large walk-in carry-out lunch business. The deli offers two luncheon chili specials, Wimpy and Dial 911. At the beginning of the day, Kilgore needs to decide how much of each special to make (he always sells out of whatever he makes). The profit on one serving of Wimpy is $0.35, on one serving of Dial 911, $0.59. Each serving of Wimpy requires 0.45 pound of beef, 0.45 cup of onions, and 5 ounces of Kilgore's special sauce. Each serving of Dial 911 requires 0.45 pound of beef, 0.72 cup of onions, 1 ounces of Kilgore's special sauce, and 4 ounces of hot sauce. Today, Kilgore has 33 pounds of beef, 47 cups of onions, 81 ounces of Kilgore's special sauce, and 48 ounces of hot sauce on hand.

  1. Develop an LP model that will tell Kilgore how many servings of Wimpy and Dial 911 to make in order to maximize his profit today.

Let

W = # of servings of Wimpy to make

D = # of servings of Dial 911 to make

Max 0.35W + 0.59D
s.t.
0.45W + 0.45D 33 (Beef)
0.45W + 0.72D 47 (Onions)
5W + 1D 81 (Special Sauce)
4D 48 (Hot Sauce)
W, D 0

b. Find an optimal solution. Truncate your answers to whole servings available for sale.

Solution:

W = 13

D = 12

  1. What is the optimal profit? Round your answer to the nearest cent.

    Profit = $ __________

  2. What is the dual value for special sauce? Round your answer to the nearest cent.

    Dual value for special sauce = $ 0.07
  3. Increase the amount of special sauce available by 1 ounce. Give the new solution. Round the answer for profit to the nearest cent.

    Solution: W = ________ , D = 12 , Profit = $ _________

    Does the solution confirm the answer to part (c)?

    Dual value is confirmed.

In: Math

Wally’s Widget Company (WWC) incorporated near the end of 2011. Operations began in January of 2012....

Wally’s Widget Company (WWC) incorporated near the end of 2011. Operations began in January of 2012. WWC prepares adjusting entries and financial statements at the end of each month. Balances in the accounts at the end of January are as follows: Cash $ 20,870 Unearned Revenue (30 units) $ 5,100 Accounts Receivable $ 11,900 Accounts Payable (Jan Rent) $ 2,800 Allowance for Doubtful Accounts $ (1,650) Notes Payable $ 13,500 Inventory (35 units) $ 2,975 Contributed Capital $ 6,500 Retained Earnings – Feb 1, 2012 $ 6,195 • WWC establishes a policy that it will sell inventory at $165 per unit. • In January, WWC received a $5,100 advance for 30 units, as reflected in Unearned Revenue. • WWC’s February 1 inventory balance consisted of 35 units at a total cost of $2,975. • WWC’s note payable accrues interest at a 12% annual rate. • WWC will use the FIFO inventory method and record COGS on a perpetual basis. February Transactions 02/01 Included in WWC’s February 1 Accounts Receivable balance is a $1,300 account due from Kit Kat, a WWC customer. Kit Kat is having cash flow problems and cannot pay its balance at this time. WWC arranges with Kit Kat to convert the $1,300 balance to a note, and Kit Kat signs a 6-month note, at 12% annual interest. The principal and all interest will be due and payable to WWC on August 1, 2012. 02/02 WWC paid a $800 insurance premium covering the month of February. The amount paid is recorded directly as an expense. 02/05 An additional 190 units of inventory are purchased on account by WWC for $14,250 – terms 2/15, n30. 02/05 WWC paid Federal Express $380 to have the 190 units of inventory delivered overnight. Delivery occurred on 02/06. 02/10 Sales of 160 units of inventory occurred during the period of 02/07 – 02/10. The sales terms are 2/10, net 30. 02/15 The 30 units that were paid for in advance and recorded in January are delivered to the customer. 02/15 25 units of the inventory that had been sold on 2/10 are returned to WWC. The units are not damaged and can be resold. Therefore, they are returned to inventory. Assume the units returned are from the 2/05 purchase. 02/16 WWC pays the first 2 weeks wages to the employees. The total paid is $2,300. 02/17 Paid in full the amount owed for the 2/05 purchase of inventory. WWC records purchase discounts in the current period rather than as a reduction of inventory costs. 02/18 Wrote off a customer’s account in the amount of $1,750. 02/19 $5,600 of rent for January and February was paid. Because all of the rent will soon expire, the February portion of the payment is charged directly to expense. 02/19 Collected $9,500 of customers’ Accounts Receivable. Of the $9,500, the discount was taken by customers on $6,500 of account balances; therefore WWC received less than $9,500. 02/26 WWC recovered $550 cash from the customer whose account had previously been written off (see 02/18). 02/27 A $700 utility bill for February arrived. It is due on March 15 and will be paid then. 02/28 WWC declared and paid a $950 cash dividend. Adjusting Entries: 02/29 Record the $2,300 employee salary that is owed but will be paid March 1. 02/29 WWC decides to use the aging method to estimate uncollectible accounts. WWC determines 8% of the ending balance is the appropriate end of February estimate of uncollectible accounts. 02/29 Record February interest expense accrued on the note payable. 02/29 Record one month’s interest earned Kit Kat’s note (see 02/01).

NEEDED JOURNAL ENTRIES: Feb 15. Record the 25 units of inventory returned Feb 29. WWC decides to use the aging method to estimate uncollectible accounts. WWC determines 8% of the ending balance is the appropriate end of February estimate of uncollectible accounts.

In: Accounting

Write it in C++ The most disgusting recursive problem ever. The McDonald’s near campus sells Chicken...

Write it in C++

The most disgusting recursive problem ever. The McDonald’s near campus sells Chicken McNuggets in orders of 6, 9, or 20. Suppose you are ordering for a party and you know exactly how many McNuggets will be eaten by guests. It turns out that, for any integer n ≥ 44, you can order exactly n Chicken McNuggets at this McDonald’s. For purposes of this problem, you cannot throw out McNuggets or allow them to go uneaten, such as by acquiring n = 44 by buying two twenty packs and a six pack, then discarding two. If the thought of this many Chicken McNuggets is too disgusting, you may pretend you are buying n ≥ 44 celery sticks in bunches of 6, 9, or 20 (feel free to rename the function below in that case). Finish the recursive function below to complete the ordering and return the counts by reference parameters. You may assume for this problem that there will be no overflow or underflow at any point in the problem and that stack space is not a concern. The code has been started for you and is part of a correct solution.

void buyChicken ( unsi gned n , un si gned & num6Packs , un si gned & num9Packs , un signed & num20Packs ) { i f ( 44 == n ) { num20Packs = 1 ; num6Packs = 4 ; num9Packs = 0 ; }

e l s e i f ( 4 5 == n ) { num20Packs = 0 ; num6Packs = 3 ; num9Packs = 3 ; } e l s e i f ( 4 6 == n ) { num20Packs = 2 ; num6Packs = 1 ; num9Packs = 0 ; }

In: Computer Science

1) Researchers have found that providing therapy dogs on college campuses near midterms and finals is...

1) Researchers have found that providing therapy dogs on college campuses near midterms and finals is an effective way to reduce student stress. They wondered if providing other animals would also reduce stress. To find out, they brought four different animals to campus and had students rate their stress level after time spent with the animal. The results are presented below.

OBSERVED

Dog

Cat

Ferret

Lizard

More Stressed

18

32

38

92

Same Stressed

30

28

42

40

Less Stressed

132

90

40

18

a) Specify the null and alternative hypotheses for a chi-square test of independence

B)Fill in the table below with the expected frequencies

EXPECTED

Dog

Cat

Ferret

Lizard

More Stressed

Same Stressed

Less Stressed

c) Use the observed and expected frequencies to calculate a chi-square test of independence to detect any relationship between type of animal and feelings of stress, using alpha = .01. Report the critical value and your decision.

e) Calculate the effect size for the relationship between animal type and stress level.

In: Math

The lake near Grassy Narrows is contaminated with mercury from an old paper mill, which has...

The lake near Grassy Narrows is contaminated with mercury from an old paper mill, which has been shut down for many years. Some of the people who eat fish from the lake are showing signs of mercury poisoning. Mercury is still leaking into the lake but no one knows the exact location of the leak. Marginal damages per year are given by MD = 0.02E (t = 0, …) and emissions are E = 4000. The cost to locate the leak and clean up the lake is $2 million (t = 0).

a) If r = 2% and you use a 100 year time frame (t = 0, …, 99) calculate the NPV to clean the lake.
b) If r = 8% and you use a 100 year time frame (t = 0, …, 99) calculate the NPV to clean the lake.
c) If r = 2% and you use a 50 year time frame (t = 0, …, 49) calculate the NPV to clean the lake.
d) If r = 8% and you use a 50 year time frame (t = 0, …, 49) calculate the NPV to clean the lake. e) Why are the present values for the damages using the 50 year time frame (half the time) not half of the present values using the 100 year time frame?

In: Finance

Alexa owns a condominium near Cocoa Beach in Florida. This year, she incurs the following expenses...

Alexa owns a condominium near Cocoa Beach in Florida. This year, she incurs the following expenses in connection with her condo:

Insurance

$

2,000

Mortgage interest

6,500

Property taxes

2,000

Repairs & maintenance

1,400

Utilities

2,500

Depreciation

14,500

During the year, Alexa rented out the condo for 100 days. She did not use the condo at all for personal purposes during the year. Alexa’s AGI from all sources other than the rental property is $200,000. Unless otherwise specified, Alexa has no sources of passive income.

Assume that in addition to renting the condo for 100 days, Alexa uses the condo for 8 days of personal use. Also assume that Alexa receives $30,000 of gross rental receipts and her itemized deductions exceed the standard deduction before considering expenses associated with the condo. Answer the following questions:

Note that the home is considered to be a nonresidence with rental use.

a. What is the total amount of for AGI deductions relating to the condo that Alexa may deduct in the current year? Assume she uses the IRS method of allocating expenses between rental and personal days. (Do not round intermediate calculations. Round your final answers to the nearest whole dollar amount.)

b. What is the total amount of from AGI deductions relating to the condo that Alexa may deduct in the current year? Assume she uses the IRS method of allocating expenses between rental and personal days. (Do not round intermediate calculations. Round your final answers to the nearest whole dollar amount.)

c. Would Alexa be better or worse off after taxes in the current year if she uses the Tax Court method of allocating expenses?

Better off

Worse off

In: Accounting

Thirty small communities in Connecticut (population near 10,000 each) gave an average of x = 138.5...

Thirty small communities in Connecticut (population near 10,000 each) gave an average of x = 138.5 reported cases of larceny per year. Assume that σ is known to be 45.1 cases per year.

(a) Find a 90% confidence interval for the population mean annual number of reported larceny cases in such communities. What is the margin of error? (Round your answers to one decimal place.)

lower limit:

upper limit:

margin of error:

(b) Find a 95% confidence interval for the population mean annual number of reported larceny cases in such communities. What is the margin of error? (Round your answers to one decimal place.)

lower limit:

upper limit:

margin of error:

(c) Find a 99% confidence interval for the population mean annual number of reported larceny cases in such communities. What is the margin of error? (Round your answers to one decimal place.)

lower limit:

upper limit:

margin of error:

(d) Compare the margins of error for parts (a) through (c). As the confidence levels increase, do the margins of error increase?

As the confidence level increases, the margin of error increases.

As the confidence level increases, the margin of error remains the same.

As the confidence level increases, the margin of error decreases.

(e) Compare the lengths of the confidence intervals for parts (a) through (c). As the confidence levels increase, do the confidence intervals increase in length?

As the confidence level increases, the confidence interval decreases in length.

As the confidence level increases, the confidence interval remains the same length.

As the confidence level increases, the confidence interval increases in length.

In: Math