TRENDING NEWS

POPULAR NEWS

Match The Statements With The Appropriate Terms By Entering The Appropriate Letter Code

What is the use of switch statements in C programming?

Switch statements are used when you clearly know what are possible values for the condition variable. Each value in that list of possible value is called case. When the value given in input matches the value in the case statement, the block of code below case gets executed until it reaches the break statement.Break is optional. If break statement is not given, the next case statement (if any) will also get executed.for example, consider the following code:#include  int main (){  char grade = 'B';    switch(grade)   {    case 'A' :             printf("Excellent!\n" );              break;    case 'B' :              printf("Well done\n" );    case 'C' :               printf("Good\n" );               break;    case 'D' :               printf("You passed\n" );               break;    case 'F' :              printf("Better try again\n" );              break;    default :               printf("Invalid grade\n" );    }    printf("Your grade is  %c\n", grade );     return 0; }The output of the above program is :Well doneGoodYour grade is BThe value of the variable passed to the switch statement is checked against the case statements. Case 'B' matches. Hence the printf() executed. (Well Done - printed).As there is no break statement, the next case 'C' also executed. (Good - printed). As there is 'break' statement, the statement after the switch is executed. Therefore 'Your grade is B' - printed.An if statement can be followed by an optional else if...else statement, which is very useful to test various conditions. Once the condition is true, other conditions are not validated.In switch case, mostly constant values are given in the condition while in if..else mostly boolean expressions are given. for example,#include int main (){ int a=10;int b=20;if (a>100)    {     printf("Value of a is greater than 100");    }elseif (b==20)    {     printf("Value of b is 20");     }elseif (a<100)    {     printf("Value of a is less than 100");    }else   {    printf("Condition fails");    }printf("Value of a is %d", a);return 0;}Output of above program is:Value of b is 20Value of a is 10The first if condition fails, so second if is checked.The condition is true, so the statements inside that if gets executed.The next if statements are not executed even if the condition is true.

Match the items below by entering the appropriate code letter in the space provided.?

Match the items below by entering the appropriate code letter in the space provided.

A. Aging the accounts receivable F. Percentage of receivables basis
B. Direct write-off method G. Promissory note
C. Obligation Due H. Dishonored note
D. Trade receivables I. Cash net realizable value
E. Receivables turnover ratio J. Credit card sales

____ 1. A written promise to pay a specified amount on demand or at a definite time.
____ 2. Sales that involve the customer, the retailer, and the credit card issuer.
____ 3. A measure of the liquidity of receivables.
____ 4. Notes and accounts receivable that result from sales transactions.
____ 5. A note which is not paid in full at maturity.
____ 6. Analysis of customer account balances by length of time they have been unpaid.
____ 7. Emphasizes expected cash realizable value of accounts receivable.
____ 8. Bad debt losses are not estimated and no allowance account is used.
____ 9. The net amount expected to be received in cash.

Match the statements below with the appropriate terms by entering the appropriate letter code?

Can you please help me with this question?

Match the statements below with the appropriate terms by entering the appropriate letter code in the spaces provided.
TERMS:
A Prepaid Expenses
B Unearned Revenues
C Accrued Revenues
D Accrued Expenses

STATEMENTS:
1. A revenue not yet recognized; collected in advance.
2. Office supplies on hand that will be used in the next period.
3. Subscription revenue collected; not yet recognized.
4. Rent not yet collected; already recognized.
5. An expense incurred; not yet paid or recorded.
6. A revenue recognized; not yet collected or recorded.
7. An expense not yet incurred; paid in advance.
8. Interest expense incurred; not yet paid.

Match the items below by entering the appropriate code letter in the space provided.?

1. Small expenditures which primarily benefit the current period.
2. Cost less accumulated depreciation.

3. An accelerated depreciation method used for financial statement purposes.

4. Tangible resources that are used in operations and are not intended for resale.

5. Equal amount of depreciation each period.

6. Expected cash value of the asset at the end of its useful life.

7. Allocation of the cost of a plant asset to expense over its useful life.

8. Material expenditures which increase an asset's operating efficiency, productive capacity, or useful life.

9. An accelerated depreciation method used for tax purposes.

10. Useful life is expressed in terms of units of production or expected use.

ANSWERS:

salvage value
MARCS
straight line method
double declining balance method
revenue expenditure
capital expenditure
plant assets
book value
depreciation
units of activity method

How do I run an if statement on a string variable (which value is set with an input) if it matches a certain string in Java?

Do not match strings using ==. It is an identity check, not an value check.Use the .equals(String) method in the String class:String a = "haha";
a.equals("haha"); // true
a == "haha" // true
The last one would be true due to the string pool, which Java uses to prevent duplicating strings with exact values.

Match each statement as either a prepaid expense, unearned revenue, accrued revenue or accrued expense?

Match the statements below with the appropriate terms by entering the appropriate letter code in the spaces provided.

Terms:

A. Prepaid Expenses

B. Unearned Revenues

C. Accrued Revenues

D. Accrued Expenses





Statements:




1. A revenue not yet earned; collected in advance___

2. Office supplies on hand that will be used in the next period___

3. Subscriptions revenue collected; already earned___

4. Rent not yet collected; already earned___

5. An expense incurred; not yet paid or recorded___

6. A revenue earned; not yet collected or recorded___

7. An expense not yet incurred; paid in advance___

8. Interest expenses incurred; not yet paid___

Accounting Matching?????

Match the items below by entering the appropriate code letter in the space provided.

A. Serial bonds G. Straight-line method of amortization
B. Debenture bonds H. Bonds
C. Bond indenture I. Bond sinking fund
D. Premium on bonds payable J. Capital lease
E. Discount on bonds payable K. Operating lease
F. Effective-interest method of amortization L. Registered bonds

_____ 1. A contractual arrangement which is in effect a purchase of property.

_____ 2. A legal document that sets forth the terms of a bond issue.

_____ 3. Bonds that mature in installments.

_____ 4. Produces a periodic interest expense equal to a constant percentage of the carrying value of the bonds.

_____ 5. Bonds issued in the name of the owner.

_____ 6. A form of interest-bearing notes payable used by corporations.

_____ 7. Occurs when the contractual interest rate is greater than the market interest rate.

_____ 8. Unsecured bonds issued against the general credit of the borrower.

_____ 9. A contractual arrangement that gives the lessee temporary use of property.

_____ 10. Cash set aside to retire bonds.

_____ 11. Occurs when the contractual interest rate is less than the market interest rate.

_____ 12. Produces a periodic interest expense that is the same amount each interest period.

TRENDING NEWS