(JAVA)
Create a program that creates a mini database of numbers that allows the user to: reset the database, print the database, add a number to the database, find the sum of the elements in the database, or quit.
In main, you will declare an array of 10 integers (this is a requirement). Then you will define the following methods: • printArray (int[ ] arr) – this takes in an array and prints it • initArray (int[ ] arr) – this initializes the array so that each cell is 0 • printSum (int[ ] arr) – this calculates the sum of the elements in the array and prints it • enterNum(int[ ] arr) – this asks the user for a slot number and value – putting the value into the array in the correct slot • printMenu (int[ ] arr) – prints the menu in the sample output (that’s it, nothing more)
In main, create an array of 10 integers and immediately call initArray( ). Then, continuously looping, print the menu and ask the user what they want to do – calling the appropriate methods based on the user’s choice. Note that every time you call a method, you must pass the array that was created in main. If it makes it easier, we used a do-while loop and a switch statement in main.
It should behave like the sample output below: (user input = bold)
Would you like to:
1) Enter a number
2) Print the array
3) Find the sum of the array
4) Reset the array
5) Quit
1
Enter the slot: 5
Enter the new value: 76
Would you like to:
1) Enter a number
2) Print the array
3) Find the sum of the array
4) Reset the array
5) Quit
1
Enter the slot: 2
Enter the new value: 33
Would you like to:
1) Enter a number
2) Print the array
3) Find the sum of the array
4) Reset the array
5) Quit
2
|0|0|33|0|0|76|0|0|0|0
Would you like to:
1) Enter a number
2) Print the array
3) Find the sum of the array
4) Reset the array
5) Quit
3
109
Would you like to:
1) Enter a number
2) Print the array
3) Find the sum of the array
4) Reset the array
5) Quit
4
Would you like to:
1) Enter a number
2) Print the array
3) Find the sum of the array
4) Reset the array
5) Quit
2
|0|0|0|0|0|0|0|0|0|0
Would you like to:
1) Enter a number
2) Print the array
3) Find the sum of the array
4) Reset the array
5) Quit
5
In: Computer Science
The following section is taken from Privy Ltd’s statement of financial position at 31 December 2018.
Interest is payable half-yearly on 1 January and 1 July. Assume no interest is accrued on 30 June.
|
Current liabilities |
|
|
Interest payable on unsecured notes (for 6 months from 1 July to 31 December) |
$360,000 |
|
Non-current liabilities |
|
|
Unsecured notes payable, 10% due 1 January 2022 |
$6,000,000 |
Required: Prepare journal entries to record interest payments, and redemption of unsecured notes.
a. Journalise the payment of interest on 1 January 2019.
In: Accounting
In: Economics
Larkspur Leasing Company signs a lease agreement on January 1, 2017, to lease electronic equipment to Crane Company. The term of the non-cancelable lease is 2 years, and payments are required at the end of each year. The following information relates to this agreement: 1. Crane has the option to purchase the equipment for $15,500 upon termination of the lease. It is not reasonably certain that Crane will exercise this option. 2. The equipment has a cost of $110,000 and fair value of $158,500 to Larkspur Leasing. The useful economic life is 2 years, with a residual value of $15,500. 3. Larkspur Leasing desires to earn a return of 5% on its investment. 4. Collectibility of the payments by Larkspur Leasing is probable.
Prepare the journal entries on the books of Larkspur Leasing to reflect the payments received under the lease and to recognize income for the years 2017 and 2018.
In: Accounting
Assume that today is December 31, 2018, and that the following information applies to Abner Airlines:
After-tax operating income [EBIT(1 - T)] for 2019 is expected to be $550 million.
The depreciation expense for 2019 is expected to be $50 million.
The capital expenditures for 2019 are expected to be $475 million.
No change is expected in net operating working capital.
The free cash flow is expected to grow at a constant rate of 7% per year.
The required return on equity is 16%. The WACC is 11%.
The firm has $202 million of non-operating assets.
The market value of the company's debt is $3.183 billion.
200 million shares of stock are outstanding.
Using the corporate valuation model approach, what should be the company's stock price today? Do not round intermediate calculations. Round your answer to the nearest cent.
In: Finance
Shamrock Leasing Company signs a lease agreement on January 1, 2017, to lease electronic equipment to Pharoah Company. The term of the non-cancelable lease is 2 years, and payments are required at the end of each year. The following information relates to this agreement:
1. Pharoah has the option to purchase the equipment for $17,500 upon termination of the lease. It is not reasonably certain that Pharoah will exercise this option.
2. The equipment has a cost of $150,000 and fair value of $199,000 to Shamrock Leasing. The useful economic life is 2 years, with a residual value of $17,500.
3. Shamrock Leasing desires to earn a return of 5% on its investment. 4. Collectibility of the payments by Shamrock Leasing is probable.
Prepare the journal entries on the books of Shamrock Leasing to reflect the payments received under the lease and to recognize income for the years 2017 and 2018.
In: Accounting
Homework Assignment #3: Data Resource Management
Information is not just stored for business related events. Data is created, saved and processed regarding almost every aspect of modern life. This assignment will have 3 sections, the first two will cover your personal experience with information storage and access. The third section will deal with current issues regarding any concerns associated with the amount of information available today. Each section should contain a page of single space text with two pages required for the third section. Cite your sources.
Section #1: Data Storage
Have you ever actively stored information electronically? This does not have to be limited to creating your own database, but could include anything from storing personal files to even creating a list of information. Discuss you experiences with storing information, such as creating a Music Catalog or Database, organization of Expenses or Bills, etc.
Section #2: Accessing Data
Where and how do you access information stored in a Database? Discuss how you use information either at work, school or in your personal life. For example: accessing a product inventory, customer account information, checking the balance or making a deposit in your bank account, etc. What application do you use to reference this information, such as using a web interface to access an XML or MySQL database? Further outline your experience with data storage and database management by discussing your experience with common database applications and the programming language behind them, such as using Microsoft Access based on Visual Basic or an Oracle Suite with SQL for performing backend queries.
Section #3: Issues Regarding Data Access
In: Computer Science
Draw an ERD with the following information:
You are a database consultant with Ace Software, Inc., and have been assigned to develop a database for the Johnson Video Store in town. The owners have been keeping their records of videos and DVDs purchased from distributors and rented to customers in stacks of invoices and piles of rental forms for years. They have finally decided to automate their record keeping with a relational database. You sit down with the owners to discuss their business and watch their operation for about a week. You discover quickly that a video and a DVD are both copies of a movie kept in a separate plastic case that is rented out. They have several copies of each movie they rent; therefore, there are several videos and DVDs for each movie title. You learn that in their inventory they have several thousand videos and DVDs, which they get wholesale from about a half dozen distributors. The video and DVD prices for them are based on the quantity of their shipment and the past business they have done with each company. The price of a DVD for a movie might be different from the price of a video for the same movie, even from the same distributor. Each distributor provides different types of movies (e.g., suspense, horror, mystery, comedy, etc.). A single distributor may provide several different types of movies in both video and DVD format. It is possible to obtain the same movie from multiple distributors and at different wholesale prices. Each video and DVD has a unique identification number that The owners assign in their inventory, in addition to the distributor's serial number for the item. Each movie also has a unique identification number. The owners assign in addition to the title and any movie IDs the distributors use in their electronic catalogs. Distributors provide electronic catalogs to the owners, and the information from these catalogs must be included in the database. The owners need to record when a video or DVD is rented, when a video or DVD is returned, and all customer charges such as late and damaged fees, failure to rewind fees, and taxes. They need a report of which videos are returned late because there are standard and late charges. On occasion, there are discount prices for specific movies or types of movies. Customers want to rent movies based on actors or actresses, running length, type of movie, rating, year released, the director, and the Academy Awards won (by the movie, the actors, the actresses and/or the directors). Customers also want to know how many videos they have rented in the last month, year, and so forth. The owners need to keep only basic information on customers in their database, such as name, address, telephone numbers, etc. There must be no limit to the number of video and/or DVD copies of a movie that the owners can have in their inventory. Video/DVD ID numbers, movie ID numbers, and distributor ID numbers for videos, DVDs, and movies are all different. Also, each movie must be able to have an unlimited number of actors, actresses, directors, and Academy Awards (i.e., Oscars). Other types of awards (e.g., Golden Globe, People's Choice, etc.) are not of interest for this application. The rental of equipment, sale of videos, DVDs, popcorn, etc., is not to be kept in the database.
In: Computer Science
The following information relates to Egoly Ltd for the year ended 30th June 2019:
EGOLY LTD
BALANCE SHEET
AS AT 30th JUNE 2019
|
2019 |
2018 |
||
|
$ |
$ |
||
|
ASSETS |
|||
|
Current Assets |
|||
|
Cash at bank |
67,710 |
59,666 |
|
|
Accounts receivable |
252,760 |
283,290 |
|
|
Inventory |
1,107,600 |
951,400 |
|
|
Prepaid expenses |
113,600 |
35,500 |
|
|
Total current assets |
1,541,670 |
1,329,856 |
|
|
Non-current assets |
|||
|
Equipment |
1,263,800 |
823,600 |
|
|
Accumulated depreciation – equipment |
(238,560) |
(143,136) |
|
|
Total non-current assets |
1,025,240 |
680,464 |
|
|
TOTAL ASSETS |
2,566,910 |
2,010,320 |
|
|
LIABILITIES & SHAREHOLDERS EQUITY |
|||
|
Current Liabilities |
|||
|
Accounts payable |
348,916 |
391,940 |
|
|
Accrued expenses |
36,920 |
44,000 |
|
|
Income tax payable |
24,400 |
28,000 |
|
|
Total current liabilities |
410,236 |
463,940 |
|
|
Non-current liabilities |
|||
|
Bills payable |
75,260 |
45,440 |
|
|
Debentures payable |
198,800 |
284,000 |
|
|
Total non-current liabilities |
274,060 |
329,440 |
|
|
TOTAL LIABILITIES |
684,296 |
793,380 |
|
|
Shareholders’ Equity |
|||
|
Share capital |
1,491,000 |
852,000 |
|
|
Retained profits |
391,614 |
364,940 |
|
|
Total shareholders’ equity |
1,882,614 |
1,216,940 |
|
|
TOTAL LIABILITIES & SHAREHOLDERS EQUITY |
2,566,910 |
2,010,320 |
|
QUESTION 3 CONT’D
The Income Statement and general ledger for the year ended 30th June 2019 reflected the following:
|
PERFORMANCE DETAILS |
||
|
Sales |
3,030,053 |
|
|
Less: sales returns |
(59,413) |
|
|
Net sales |
2,970,640 |
|
|
Cost of goods sold |
1,928,360 |
|
|
General expenses (All expenses EXCLUDING depreciation, bad debts written off & Income tax expense) |
606,482 |
|
|
Income tax expense |
97,860 |
|
|
Bad debts written off |
2,840 |
|
|
Depreciation expense |
109,624 |
Profit after tax $225,474
Additional information:
REQUIRED:
In: Accounting
|
Part 1 JOURNAL |
PAGE 1 | |||
| Date | Account Title | Post. Ref. | Debit | Credit |
| 2018 | ||||
| Apr. 1 | Cash | 20000 | ||
| Accounts receivable | 14700 | |||
| Supplies | 3300 | |||
| Office equipment | 12000 | |||
| Common stock | 50000 | |||
| (To record common stock issued) | ||||
| Apr. 1 | Prepaid rent | 6000 | ||
| Cash | 6000 | |||
| (To record rent prepaid) | ||||
| Apr. 2 | Prepaid insurance | 4200 | ||
| Cash | 4200 | |||
| (To record insurance prepaid) | ||||
| Apr. 4 | Cash | 9400 | ||
| Unearned fees | 9400 | |||
| (To record advance collected from customers) | ||||
| Apr. 5 | Office equipment | 8000 | ||
| Accounts payable | 8000 | |||
| (To record office equipment purchased on account) | ||||
| Apr. 6 | Cash | 11700 | ||
| Accounts receivable | 11700 | |||
| (To record collection on account) | ||||
| Apr. 10 | Miscellaneous expense | 350 | ||
| Cash | 350 | |||
| (To record advertising expense paid) | ||||
| Apr. 12 | Accounts payable | 6400 | ||
| Cash | 6400 | |||
| (To record collection on account) | ||||
| Apr. 12 | Accounts receivable | 21900 | ||
| Fees earned | 21900 | |||
| (To record fees earned on account) | ||||
| Apr. 14 | Salary expense | 1650 | ||
| Cash | 1650 | |||
| (To record salary paid) | ||||
| JOURNAL | PAGE 2 | |||
| Date | Account Title | Post. Ref. | Debit | Credit |
| 2018 | ||||
| Apr. 17 | Cash | 6600 | ||
| Fees earned | 6600 | |||
| (To record cash fees earned) | ||||
| Apr. 18 | Supplies | 725 | ||
| Cash | 725 | |||
| (To record purchase of supplies) | ||||
| Apr. 20 | Accounts receivable | 16800 | ||
| Fees earned | 16800 | |||
| (To record fees earned on account) | ||||
| Apr. 24 | Cash | 4450 | ||
| Fees earned | 4450 | |||
| (To record cash fees earned) | ||||
| Apr. 26 | Cash | 26500 | ||
| Accounts receivable | 26500 | |||
| (To record collection on account) | ||||
| Apr. 27 | Salary expense | 1650 | ||
| Cash | 1650 | |||
| (To record salary paid) | ||||
| Apr. 29 | Miscellaneous expense | 540 | ||
| Cash | 540 | |||
| (To record telephone bill paid) | ||||
| Apr. 30 | Miscellaneous expense | 760 | ||
| Cash | 760 | |||
| (To record electricity bill paid) | ||||
| Apr. 30 | Cash | 5160 | ||
| Fees earned | 5160 | |||
| (To record cash fees earned) | ||||
| Apr. 30 | Accounts receivable | 2590 | ||
| Fees earned | 2590 | |||
| (To record fees earned on account) | ||||
| Apr. 30 | Dividends | 18000 | ||
| Cash | 18000 | |||
| (To record dividends paid) | ||||
Note: The advertising, telephone, and electricity expenses are debited to miscellaneous expense since there are no separate expense accounts provided for the same.
| GENERAL JOURNAL | PAGE 3 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Date | Account Title | Post. Ref. | Debit | Credit | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2018 | Adjusting Entries | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| a. Apr. 30 | Insurance expense | 350 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Prepaid insurance | 350 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (To record expired insurance) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| b. Apr. 30 | Supplies expense | 2800 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Supplies (3300 + 725 -1225) | 2800 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (To record supplies used) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| c. Apr. 30 | Depreciation expense | 400 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Accumulated depreciation | 400 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (To record depreciation expense) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| d. Apr. 30 | Salary expense | 275 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Salaries payable | 275 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (To record salary accrued) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| e. Apr. 30 | Rent expense | 2000 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Prepaid rent | 2000 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (To record expired rent) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| f. Apr. 30 | Unearned fees | 7050 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Fees earned (9400 - 2350) | 7050 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
(To record fees earned) In the spreadsheet, prepare the adjusted trial balance. 4. At the end of April, the following adjustment data were assembled. Analyze and use these data to complete parts (5) and (6). a. Insurance expired during April is $350. 8. Prepare an income statement, a retained earnings statement, and a balance sheet.
If an answer is zero, enter "0".
9. Journalize the closing entries on Page 4 of the journal. (Do not insert the account numbers in the journal at this time.) Post the closing entries to the general ledger in the spreadsheet. Then go back and enter the appropriate posting references in the journal. (Income Summary is account #34 in the chart of accounts.) For a compound transaction, if an amount box does not require an entry, leave it blank.
10. Prepare a post-closing trial balance. List the accounts in order by type: Assets, Liablities, Capital, Dividends, Revenue, and Expenses. If an amount box does not require an entry, leave it blank.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In: Accounting