1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
adell [148]
3 years ago
6

Charge a $5 penalty if an attempt is made to withdraw more money than available in the account.Here the account string is "S" or

"C". "S" is for savings account. "C" is for checking account. For the deposit or withdraw, it indicates which account is affected. For a transfer it indicates the account from which the money is taken; the money is automatically transferred to the other account.
Business
1 answer:
romanna [79]3 years ago
8 0

Answer:

C++ code is explained below

Explanation:

class Account {

 double balance;

 double add(double sum) {

   balance += sum;

   return sum;  

 }

 double withdraw(double sum) {

   if (sum > balance) {  

     balance -= 5;

     return -5; // this will come in handy in Prob. 6  

   } else {  

     balance -= sum;

     return balance; // Notice: always >= 0 (never < 0)

   }

 }

 double inquire() { return balance; }  

 Account() { balance = 0; }

 Account(double sum) { balance = sum; }

 double interest (double rate) {

   return rate * balance;  

 }

}

_______________________________

class Bank {

 Account checking;

 Account savings;  

 void deposit(double amount, String account) {

   if (account.equals("C")) checking.add(amount);  

   else // my default

     savings.add(amount);  

 }

 void withdraw(double amount, String account) {

   if (account.equals("C")) checking.withdraw(amount);  

   else // my default

     savings.withdraw(amount);  

 }

 void transfer (double amount, String account) {

   if (account.equals("C"))  

     if (checking.withdraw(amount) >= 0)  

       savings.add(amount);  

     else checking.add(5); // somewhat fault-tolerant

   else // default

     if (savings.withdraw(amount) >= 0)  

       checking.add(amount);  

     else savings.add(5);  // no penalty for transfers

 }

 void printBalances() {

   System.out.println(

     "Checking: " + checking.inquire() +

     "\nSavings: " + savings.inquire()

   );  

 }

}

You might be interested in
Harlan Bikes wants to close an unprofitable division with an expensive mortgage, high advertising costs, and high raw material c
Rudiy27

Answer:

Quantitatively, Harlan Bikes is justified in deciding to close the department, but there are other qualitative factors that need to be considered which may result in the company loosing much more that they can save if the department is closed, such as for example a decrease in employee morale, a negative signalling effect to other stakeholders, a drop in sales in related products etc.

Explanation:

A decrease in employee morale can result especially if workers  in other departments are no-longer sure about their future in the company, resulting from fears of their departments being closed. This can negatively affect productivity resulting in lower profits in other department.

A negative signalling effect means that other stakeholders such as investors and creditors may start questioning managements ability to profitably run the business, and the company will be perceived as more risky. Cost of debt and cost of equity capital for example, may go up, due to this higher perceived risk, and  which may reduce the number of positive net present value projects that the company can undertake due to an increase in cost of capital.

If the company carries related products in other departments, it may also see a drop in sales in those sales, which will effectively reduced the savings that are estimated  to be gained from closing the division.

7 0
3 years ago
The following trial balance was taken from the records of Fairport Manufacturing Company at the beginning of 2019:
Rainbow [258]

Answer:

Fairport Manufacturing Company

T-accounts

Cash

Account Titles                                Debit        Credit

Beginning balance                   $ 20,000

Accounts payable                                         $10,500

Wages payable                                               18,000

Selling and distribution expense                     1,800

Utilities and Rent for production                    9,300

Sales Revenue                            36,000

Ending balance                                           $16,400

Raw materials inventory

Account Titles                                Debit        Credit

Beginning balance                   $ 1,800

Accounts Payable                      11,400

Work-in-Process                                           $10,800

Ending balance                                              $2,400

Work in process inventory

Account Titles                                Debit        Credit

Beginning balance                   $ 2,400

Raw materials                            10,800

Wages Payable                          19,950

Overhead Applied                      11,970

Finished Goods Inventory                          $24,000

Ending balance                                             $21,120

Finished goods inventory

Account Titles                                Debit        Credit

Beginning balance                   $ 4,200

Work-in-Process                        24,000

Cost of goods sold                                       $25,500

Ending balance                                               $2,700

Property, plant, and equipment

Account Titles                                Debit        Credit

Beginning balance                   $ 15,000

Accumulated depreciation

Account Titles                                Debit        Credit

Beginning balance                                        $ 6,000

Depreciation expense                                     3,000

Ending Balance                         $9,000

Accounts Payable

Account Titles                                Debit        Credit

Raw materials                                               $12,000

Cash                                            $10,500

Ending balance                             $1,500

Wages Payable

Account Titles                               Debit         Credit

Work-in-Process                                          $19,950

Cash                                           $18,000

Ending balance                            $1,950

Common stock

Account Titles                                Debit        Credit

Beginning balance                                        $ 16,800

Retained earnings

Account Titles                                Debit        Credit

Beginning balance                                        $ 20,600

Production Supplies

Account Titles                                Debit        Credit

Accounts Payable                                              $600

Overhead                                      $422

Ending balance                              $178

Overhead Expenses

Account Titles                               Debit          Credit

Work-in-Process                                            $11,970

Cash (Utilities)                               9,300

Depreciation expense                  3,000

Production supplies                         422

Cost of goods sold (Underapplied)                  752

Sales Revenue

Account Titles                                Debit        Credit

Cash                                                             $36,000

Income Summary                       $36,000

Cost of Goods Sold

Account Titles                                Debit        Credit

Finished Goods Inventory       $25,500

Overhead (underapplied)                752

Income Summary                                        $26,252

Selling and Distribution Expense

Account Titles                               Debit          Credit

Cash                                          $1,800

Utilities and Rent

Account Titles                               Debit          Credit

Cash                                            $9,300

Overhead                                                       $9,300

Depreciation Expense - Plant & Equipment

Account Titles                               Debit          Credit

Accumulated Depreciation        $3,000

Overhead                                                       $3,000

b) Schedule of Cost of Goods Manufactured and Sold:

WIP Beginning Inventory         $ 2,400

Raw materials                            10,800

Direct labor                                19,950

Overhead Applied                      11,970

Cost of goods in production  $45,120

Ending WIP Inventory                21,120

Cost of manufactured           $24,000

Finished Goods Inventory     $ 4,200

Cost of manufactured            24,000

Cost of goods available       $28,200

Ending FG Inventory                 2,700

Cost of goods sold              $25,500

Income Statement for the year ended December 31, 2019:

Sales Revenue                      $36,000

Cost of Goods Sold                 26,252

Gross profit                                9,748

Selling and distribution exp.      1,800

Net income                              $7,948

Retained Earnings, January 1, 2019 $20,600

Net income                                             7,948

Retained Earnings, December 31,    $28,548

Balance Sheet as of December 31, 2019:

Assets:

Cash                                          $ 16,400

Raw materials inventory               2,400

Work in process inventory          21,120

Finished goods inventory            2,700

Production Supplies                         178     $42,798

Property, plant, and equipment 15,000

Accumulated depreciation          9,000      $6,000

Total assets                                                $48,798

Liabilities and Equity:

Accounts Payable                                        $1,500

Wages Payable                                              1,950

Total liabilities                                             $3,450

Common stock                         $16,800

Retained earnings                     28,548  $45,348

Total liabilities and equity                       $48,798

Explanation:

a) Data and Calculations:

Trial Balance at January 1, 2019:

Account Titles                                Debit        Credit

Cash                                         $ 20,000

Raw materials inventory                1,800

Work in process inventory           2,400

Finished goods inventory            4,200

Property, plant, and equipment 15,000

Accumulated depreciation                           $ 6,000

Common stock                                               16,800

Retained earnings                                         20,600

Total                                       $ 43,400      $ 43,400

Analysis of Transactions for the period:

1. Raw materials $11,400 Production Supplies $600 Accounts payable $12,000

2. Work-in-Process $10,800 Raw materials $10,800

3. Accounts payable $10,500 Cash $10,500

4. Work-in-Process $19,950 Wages Payable $19,950

5. Wages Payable $18,000 Cash $18,000

6. Work-in-Process $11,970 Overhead Applied $11,970 ($12,600 * 950/1,000)

7. Selling and Administrative expense $1,800 Cash $1,800

8. Utilities and Rent for production $9,300 Cash $9,300

9. Depreciation Expense-Plant and Equipment $3,000 Accumulated Depreciation $3,000

10. Finished Goods Inventory $24,000 Work-in-Process $24,000

11. Cost of Goods Sold $25,500 Finished Goods Inventory $25,500

12. Cash $36,000 Sales Revenue $36,000

13. Overhead $422 Production Supplies $422 ($600 - $178)

14. Cost of Goods Sold $752 Underapplied Overhead $752

Adjusted Trial Balance at December 31, 2019:

Account Titles                                Debit        Credit

Cash                                          $ 16,400

Raw materials inventory               2,400

Work in process inventory          21,120

Finished goods inventory            2,700

Property, plant, and equipment 15,000

Accumulated depreciation                          $ 9,000

Accounts Payable                                            1,500

Wages Payable                                                1,950

Common stock                                               16,800

Retained earnings                                         20,600

Production Supplies                        178

Sales Revenue                                               36,000

Cost of Goods Sold                 26,252

Selling and distribution exp.      1,800

Totals                                    $85,850        $85,850

3 0
3 years ago
Recently the government increased the minimum wage from $4,280 per week to $5,300 per week. The inflation rate during the same p
andreev551 [17]
4280 x 1.09 = real wage if constant from period x to period y. Let's call
this number Z.

Find the relationship between Z and the government's wage increase. If 5300 / Z < 1 then the total effect of wage increase/inflation's devaluation of real salary is negative. If the relationship is above one (5300/Z > 1) then the effect is positive for the workers.
6 0
3 years ago
Jorgansen Lighting, Inc., manufactures heavy-duty street lighting systems for municipalities. The company uses variable costing
user100 [1]

Answer:

The absorption costing NOI (net operating income) of Year 1

Change in inventory = Beginning Inventory - Ending Inventory

= 200 units - 170 units

= 30 units

Fixed Manufacturing Overhead Beginning  = Beginning Inventory units *  Fixed manufacturing overhead per unit

= 200 units * $560

= $112,000

Fixed Manufacturing Overhead Ending = Ending Inventory units * Fixed manufacturing overhead per unit

= 170 units * $560

= $95,200

Deferred in/(release)  =Fixed Manufacturing Overhead Ending - Fixed Manufacturing overhead Beginning

= $95,200 - $112,00

= -$16,800

Absorption Costing NOI = Variable Costing NOI + Fixed manufacturing overhead from inventory deferred during the period

= $1,012,400 + -$16,800

= $1,063,000

The absorption costing NOI (net operating income) of Year 2

Change in inventory = Beginning Inventory - Ending Inventory

= 170 units - 180 units

= -10 units

Fixed Manufacturing Overhead Beginning  = Beginning Inventory units *  Fixed manufacturing overhead per unit

= 170 units * $560

= $95,200

Fixed Manufacturing Overhead Ending = Ending Inventory units * Fixed manufacturing overhead per unit

= 180 units * $560

= $100,800

Deferred in/(release)  =Fixed Manufacturing Overhead Ending - Fixed Manufacturing overhead Beginning

= $100,800 - $95,200

= $5,600

Absorption Costing NOI = Variable Costing NOI + Fixed manufacturing overhead from inventory deferred during the period

= $1,032,400 + $5,600

= $1,038,000

The absorption costing NOI (net operating income) of Year 3

Change in inventory = Beginning Inventory - Ending Inventory

= 180 units - 220 units

= -40 units

Fixed Manufacturing Overhead Beginning  = Beginning Inventory units *  Fixed manufacturing overhead per unit

= 180 units * $560

= $100,800

Fixed Manufacturing Overhead Ending = Ending Inventory units * Fixed manufacturing overhead per unit

= 220 units * $560

= $123,200

Deferred in/(release)  =Fixed Manufacturing Overhead Ending - Fixed Manufacturing overhead Beginning

= $123,200 - $100,800

= $22,400

Absorption Costing NOI = Variable Costing NOI + Fixed manufacturing overhead from inventory deferred during the period

= $996,400 + $22,400

= $1,018,800

6 0
3 years ago
According to the CVP analysis model and assuming all else remains the same, profits would be increased by a(n) ______. Multiple
bija089 [108]

Answer:

decrease in the unit variable cost

Explanation:

5 0
2 years ago
Other questions:
  • During the prior fiscal year, lindon inc. signed a long-term noncancellable purchase commitment with its primary supplier to pur
    5·1 answer
  • Frictional unemployment is the result of Group of answer choices
    10·1 answer
  • Mark a calendar year taxpayer, purchased an annuity for $50,000 in 2012. The annuity was to pay him $3,000 on the first day of e
    5·1 answer
  • Does a shortage of houses lead to increase in demand? or decrease?
    5·2 answers
  • Tool Manufacturing has an expected EBIT of $ 39,000 in perpetuity and a tax rate of 33 percent. The firm has $ 80,000 in outstan
    8·1 answer
  • Rice is a cheap staple food eaten multiple times of day by many people all over the world. In Trufflelandia, residents also eat
    10·1 answer
  • Responsible consumption requires _____
    13·1 answer
  • Lauren is the owner of a bakery that earns 0 (zero) economic profit. Last year, her total revenue was $145,000, her rent was $12
    15·1 answer
  • Why is brainly such a stupid app? Why did I have to get my email address? Why is my question not popping up? Where's the answer?
    9·2 answers
  • United Contractors Inc. holds a lien on Vista Estates real property. This property can be sold to satisfy the debt if, before th
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!