Questions
Problem Description There are bunnies standing in a line, numbered 1, 2, ...n. The odd bunnies...

Problem Description There are bunnies standing in a line, numbered 1, 2, ...n. The odd bunnies (1, 3, ..) have the normal 2 ears. The even bunnies (2, 4, ..) are genetic mutations and have 3 ears. Write a GUI program which uses a recursive method, earCount(), to calculate the number of "ears" in the bunny line. The user will supply the number of bunnies in the line. Specifications Your program will consist of 2 Textboxes and a Button, each should be labeled appropriately. The user will enter an integer in one Textbox, press the Button, and the number of ears will be shown in the other Textbox. The second Textbox should be readonly. Do not use loops or multiplication in your program. Error Checking Inputs User input should be an integer. Give feedback if it is not and ask them to reenter. Use a Try-Catch blocks where you deem appropriate. Commenting Use the generated flower box in BlueJ to provide a description of the Class and your name. Example: A single line comment followed by statements to create an instance of JTextField, and call setEditable method is fine. Significant variables descriptions. No “loop” variables. a, b, c, x, y, z, etc.

In: Computer Science

Present and Future Values of Single Cash Flows for Different Periods Find the following values, using...

Present and Future Values of Single Cash Flows for Different Periods Find the following values, using the equations, and then work the problems using a financial calculator to check your answers. Disregard rounding differences. (Hint: If you are using a financial calculator, you can enter the known values and then press the appropriate key to find the unknown variable. Then, without clearing the TVM register, you can "override" the variable that changes by simply entering a new value for it and then pressing the key for the unknown variable to obtain the second answer. This procedure can be used in parts b and d, and in many other situations, to see how changes in input variables affect the output variable.) An initial $300 compounded for 1 year at 4%. Round your answers to the nearest cent. $ 678.51 An initial $300 compounded for 2 years at 4%. Round your answers to the nearest cent. $ 912.46 The present value of $300 due in 1 year at a discount rate of 4%. Round your answers to the nearest cent. $ 368.45 The present value of $300 due in 2 years at a discount rate of 4%. Round your answers to the nearest cent. $ 273.98

In: Finance

15. Two horizontal forces (5N)i-(10N)j and (7N)i+(12N)j are acting on an object. What is direction of...

15. Two horizontal forces (5N)i-(10N)j and (7N)i+(12N)j are acting on an object. What is direction of object’s acceleration?

a. in positive x direction

b. in negative x direction

c. in positive y direction

d. in negative y direction

e. 450 from positive x direction.

f. 450 from negative x direction.

16. You press a book of mass m against vertical wall with a force F big enough to prevent book from sliding.

1.1 What force acts against possible direction of sliding of a book?

a. Gravity

b. Normal force

c. Force of friction

d. Force F.

1.2 What is magnitude and direction of normal force?

a. mg perpendicular to the wall

b. mg vertically up

c. F vertically up

d. F perpendicular to the wall.

e. Impossible to answer from the information given.

1.3 What is magnitude of force of friction in given situation?

a. mg

b. F

c. slightly less than mg

d. slightly greater than mg

e. Impossible to answer from the information given.

In: Physics

Q3- The newly appointed mayor of XYZ Town noticed that in the recent enacted budget of...

Q3- The newly appointed mayor of XYZ Town noticed that in the recent enacted budget of the city’s General Fund, revenue exceed expenditure by 15,000 SAR. Later that year, after a hurricane caused a large amount of damage, she ordered the city’s finance office to write a check for 15,000 SAR from the General Fund to an emergency relief fund. Because of unexpected nature of the hurricane, no appropriation had been made to cover this transaction. When confronted by the press, she pointed out that the state’s balance budget require only that the General Fund “break- even” and that she could not, in good conscience, allow the city to retain idle resources when people needed help. What, if anything, did the mayor do wrong? Explain.

  1. Explain the reason for the budget allocation and how the government will finance this expenditure for 2020.
  2. The government has recently introduced value added tax (VAT). Explain two reasons why the VAT is implemented in this country.
  3. Explain the impact of VAT to consumer spending and business.
  4. The government is planning to change its modified accrual basis to accrual basis. Do you think this is a good practice? Explain your reasons.

In: Accounting

Subgame-perfect Nash Equilibria Consider the situation where the journalist J can either write a nice or...

Subgame-perfect Nash Equilibria
Consider the situation where the journalist J can either write a nice or a harsh article about a politician Z. Further suppose that the politician Z has managed to implement a
so-called media tribunal according to which he can decide to punish or not to punish J whenever J writes harshly about him. J would really love to write harshly about Z as long as he can get away without any punishment. However, J would rather write a nice article about Z than being punished. Z would really love to read a nice article about himself. However, in the situation where an harsh article had been written he would rather refrain from punishing J in order to avoid international criticism about him restricting the freedom of the press.

  • Describe the above strategic situation as a game in extensive form (i.e., draw a game tree and attach for both players utilities to all possible outcomes).
  • Identify all Nash equilibria.
  • Identify all subgame-perfect Nash equilibria.

In: Economics

***C PROGRAMMING*** Roman Numerals: I           =          1 V          =       

***C PROGRAMMING***

Roman Numerals:

I           =          1

V          =          5

X          =        10

L          =        50

C          =      100

D          =      500

M         =     1000

Use % for modulus division.

Step 1

  • Write a program that will and display 3 menu options. The options are:
  1. Display the first 50 Roman Numerals.
  2. Enter a number to be converted to Roman Numerals.
  3. Exit.
  • Prompt the user for a selection: A, B or C.
  • If the user selects A then print 2 Columns of numbers on the screen. The leftmost column will display the roman numerals for numbers 1 – 25 and the rightmost column will display the roman numerals for number 26 – 50.

For example:

Number/Numeral                                                            Number/Numeral

1 = I                                                                              26 = XXVI

2 = II                                                                             27 = XXVII

3 = III                                                                            28 = XXVIII

4 = IV                                                                           29 = XXIX

5 = V                                                                            30 = XXX

.

.

.

25 = XXV                                                                      50 = L

Press any key to continue?

  • If the user selects B then prompt the user for a number between 1 and 3999 and then display the roman numeral. Only allow positive integers between 1 and 3999. Loop until a valid number is entered
  • If the user selects C then end the program.

In: Computer Science

C language <stdio.h> ONLY USE double and const int Write a program to convert Celsius temperature...

C language <stdio.h> ONLY USE double and const int

Write a program to convert Celsius temperature to Fahrenheit temperature. The formula for converting Celsius temperature into Fahrenheit temperature is:

   F = (9 / 5) * C + 32

Create integer constants for the 3 numbers in the formula (9, 5, and 32).  Follow the 3 steps in the Information Processing Cycle - Input, Processing, and Output. Convert the 9 to a double when converting the temperature (use type casting). Have a blank line in the output between the formula and the input. Display the converted temperature to 1 decimal place (and don't forget the ending period).

Have a blank line at the end of your program to separate the last line of output from your program from the "Press any key to continue . . .", and do this for all programs that you write.

Example Run #1:
(bold type is what is entered by the user)

Fahrenheit temperature is converted from Celsius temperature by the formula:
F = (9 / 5) * C + 32

Enter the Celsius temperature: 28
The converted Fahrenheit temperature is xx.x degrees.

The example run shows EXACTLY how your program input and output will look.

In: Computer Science

You are required to write an interactive program that prompts the user for two integers X...

You are required to write an interactive program that prompts the user for two integers X and Y and performs the following tasks:

  1. Adds two numbers
  2. Subtracts Y from X
  3. Multiplies X and Y
  4. Divides X by Y
  5. Finds which numbers is larger X oy Y)
  6. Prints all the results (a , b, c, d, and e)

Program requirements:

-     The program should run as many times as the users wish

-     The program should be fully documented.

-    You must submit a hard copy of the source and a properly labeled output.

-     You should submit a digital copy of source code (in class).

-     Test your program for different values using different set of data that the users provide. .

NOTES: be sure to use basic functions of C++

(Not scan function)

USE: functions such as: using name space std, declare a main, int, loops, cin, cout, endl

be sure to comment within the program what is taking place and scentences such as:

"The sum of X and Y is:"
"The product of X and Y is:"

"The Larger number is:" (X or Y)

"Would you like to continue? (Press Y or yes or N for no. If No then program exits)

In: Computer Science

4. Sky Metals, Inc. is a metal fabrication firm that manufactures prefabricated metal parts for customers...

4. Sky Metals, Inc. is a metal fabrication firm that manufactures prefabricated metal parts for customers in a variety of industries. The firm’s motto is “If you need it, we can make it.” The CEO of Sky Metals recently held a board meeting during which he extolled the virtues of the corporation. The company, he stated confidently, had the capability to build any product and could do so using a lean manufacturing model. The firm would soon be profitable, claimed the CEO, because the company used state-of-the-art technology to build a variety of products while keeping inventory levels low. As a business press reporter, you have calculated some ratios to analyze the financial health of the firm. Sky Metals' current ratios and quick ratios for the past 6 years are shown in the following table: 2010 2011 2012 2013 2014 2015 2015 Current ratio 1.2 1.4 1.3 1.6 1.8 2.2 2.2 Quick ratio 1.1 1.3 1.2 0.8 0.6 0.4 0.4 What do you think of the CEO’s claim that the firm is lean and soon to be profitable?

In: Finance

Corsco is a large telecommunications company that is listed on a stock exchange.It is highly geared...

Corsco is a large telecommunications company that is listed on a stock exchange.It is highly geared because,like many such companies,it borrowed a large sum to pay for a licence to operate a mobile phone network with technology that has not proved popular.The companiy's share price has dropped by 50% during the last three years and there has been several changes of senior management during that period.There's been considerable speculation in the press over the last six month about whether the company can survive without being taken over by a rival:

(a) Describe the external auditors responsibilities and the work that the auditor should perform in relation to the going concern status of companies

(b) Descrbe the possible audit reports that can be issued where the going concern status of a company is called into question;your answer should describe the circumstances in which they can be issued.

(c) On the basis of the information provided above desribe the audit report that you consider is likely to be issued in the case of Corsco,giving reasons

(d) Explain the difficulties that would be faced by Corsco and its auditors if Corsco's audit report made references to going concern,giving reasons

In: Accounting