subject
Business, 07.11.2019 02:31 ninaaforever

Project: money tree create a class called bankaccount. it should have the following properties:
1. two state variables: double balance… this is how much money is currently in the account. string name…the name of the person owning the account.
2. constructor should accept two parameters.
a. one should be a double variable that is used to initialize the state variable, balance.
b. the other should be a string that is used to initialize the state variable, name.
3. two methods:
a. deposit…returns nothing…accepts a double that is the amount of money being deposited. it is added to the balance to produce a new balance.
b. withdraw…returns nothing…accepts a double that is the amount of money being taken out of the account. it is subtracted from the balance to produce a new balance. create a tester class that has a main( ) method. in that method you should input from the keyboard (scanner) the amount (2000) of money initially to be put into the account (via the constructor) along with the name of the person to whom the account belongs. 1 use these two pieces of data to create a new bankaccount object called myaccount. 2 print the balance of the account, using this format. the bill murray account balance is, $2000.00 3 call the deposit method to deposit. (i. e. $815.22) 4 print the balance using the same format. the bill murray account balance is, $2815.22 5 call the withdraw method to withdraw some money (i. e. $100) 6 print the remaining balance in this format:

ansver
Answers: 1

Another question on Business

question
Business, 22.06.2019 11:00
You decide to invest in a portfolio consisting of 25 percent stock a, 25 percent stock b, and the remainder in stock c. based on the following information, what is the expected return of your portfolio? state of economy probability of state return if state occurs of economy stock a stock b stock c recession .16 - 16.4 % - 2.7 % - 21.6 % normal .55 12.6 % 7.3 % 15.9 % boom .29 26.2 % 14.6 % 30.5 %
Answers: 1
question
Business, 22.06.2019 19:00
Tri fecta, a partnership, had revenues of $369,000 in its first year of operations. the partnership has not collected on $45,000 of its sales and still owes $39,500 on $155,000 of merchandise it purchased. there was no inventory on hand at the end of the year. the partnership paid $27,000 in salaries. the partners invested $48,000 in the business and $23,000 was borrowed on a five-year note. the partnership paid $2,070 in interest that was the amount owed for the year and paid $9,500 for a two-year insurance policy on the first day of business. compute net income for the first year for tri fecta.
Answers: 2
question
Business, 22.06.2019 22:30
Selected information about income statement accounts for the reed company is presented below (the company's fiscal year ends on december 31): 2018 2017sales $ 4,400,000 $ 3,500,000cost of goods sold 2,860,000 2,000,000administrative expenses 800,000 675,000selling expenses 360,000 312,000interest revenue 150,000 140,000interest expense 200,000 200,000loss on sale of assets of discontinued component 50,000 —on july 1, 2018, the company adopted a plan to discontinue a division that qualifies as a component of an entity as defined by gaap. the assets of the component were sold on september 30, 2018, for $50,000 less than their book value. results of operations for the component (included in the above account balances) were as follows: 1/1/18-9/30/18 2017 sales $ 400,000 $ 500,000 cost of goods sold (290,000 ) (320,000 )administrative expenses (50,000 ) (40,000 )selling expenses (20,000 ) (30,000 )operating income before taxes $ 40,000 $ 110,000 in addition to the account balances above, several events occurred during 2018 that have not yet been reflected in the above accounts: a fire caused $50,000 in uninsured damages to the main office building. the fire was considered to be an infrequent but not unusual event.inventory that had cost $40,000 had become obsolete because a competitor introduced a better product. the inventory was sold as scrap for $5,000.income taxes have not yet been recorded.required: prepare a multiple-step income statement for the reed company for 2018, showing 2017 information in comparative format, including income taxes computed at 40% and eps disclosures assuming 300,000 shares of common stock. (amounts to be deducted should be indicated with a minus sign. round eps answers to 2 decimal places.)
Answers: 3
question
Business, 22.06.2019 23:10
Tony prince is the project manager for the recreation and wellness intranet project. team members include you, a programmer/analyst and aspiring project manager; patrick, a network specialist; nancy, a business analyst; and bonnie, another programmer/analyst. other people are supporting the project from other departments, including yusaff from human resources and cassandra from finance. assume that these are the only people who can be assigned and charged to work on project activities. recall that your schedule and cost goals are to complete the project in six months for under $200,000.task 2identify at least eight milestones for the recreation and wellness intranet project. write a short paper describing each milestone using the smart criteria. discuss how determining these milestones might add activities or tasks to the gantt chart. remember that milestones normally have no duration, so you must have tasks that will lead to completing the milestone.
Answers: 3
You know the right answer?
Project: money tree create a class called bankaccount. it should have the following properties:
Questions
question
English, 24.04.2020 22:04
question
English, 24.04.2020 22:04
Questions on the website: 13722362