Write a class FinancialAidApplicant which describes an applicant for financial aid and will be used by a financial aid officer.
Qualification is based on annual household income and the number of people in the household. If the household income is less than $20,000, the applicant automatically qualifies regardless of how few people are in the household. If the household income is at least $20,000 but at most $60,000 and there are 4 or more people in the household, the applicant qualifies. If the household income is more than $60,000 but at most $150,000 and there are 6 or more people in the household, the applicant qualifies. For all other cases, the applicant does not qualify.
A tester program is provided to you in Codecheck, but there is no starter code for class FinancialAidApplicant.
You should declare static constants for the numbers mentioned above.
The class has a constructor that takes a String, a double, and an int as parameters
public FinancialAidApplicant(String name, double income, int numberOfPeople)
It also has four methods:
• public String getName() Gets the applicant's name.
• public void setNumberOfPeopleInHousehold(int people) Sets number of people in the household
• public void setHouseholdIncome(double income) Sets a new household income
• public boolean qualifies() Returns true if the applicant qualifies and false
Method qualifies should have one if-else if-else statement instead of multiple if statements.
Code check:
public class FinancialAidApplicantTester
{
public static void main(String[] args)
{
FinancialAidApplicant applicant =
new FinancialAidApplicant("Joe Programmer",19999, 1);
System.out.printf("The name of the applicant: %s.%n", applicant.getName());
System.out.println("Expected: The name of the applicant: Joe Programmer.");
System.out.println(applicant.qualifies());
System.out.println("Expected: true");
applicant.setHouseholdIncome(20000);
applicant.setNumberOfPeopleInHousehold(3);
System.out.println(applicant.qualifies());
System.out.println("Expected: false");
applicant.setNumberOfPeopleInHousehold(4);
System.out.println(applicant.qualifies());
System.out.println("Expected: true");
applicant.setHouseholdIncome(60000);
applicant.setNumberOfPeopleInHousehold(4);
System.out.println(applicant.qualifies());
System.out.println("Expected: true");
applicant.setNumberOfPeopleInHousehold(3);
System.out.println(applicant.qualifies());
System.out.println("Expected: false");
applicant.setHouseholdIncome(60001);
applicant.setNumberOfPeopleInHousehold(6);
System.out.println(applicant.qualifies());
System.out.println("Expected: true");
applicant.setNumberOfPeopleInHousehold(5);
System.out.println(applicant.qualifies());
System.out.println("Expected: false");
applicant.setHouseholdIncome(150000);
applicant.setNumberOfPeopleInHousehold(6);
System.out.println(applicant.qualifies());
System.out.println("Expected: true");
applicant =
new FinancialAidApplicant("Mary Rowe",150001, 10);
System.out.printf("The name of the applicant: %s.%n", applicant.getName());
System.out.println("Expected: The name of the applicant: Mary Rowe.");
System.out.println(applicant.qualifies());
System.out.println("Expected: false");
}
}In: Computer Science
With so many Thai businesses closed down during, what do you think is the best way for the economy improve, and to boost productivity. Be specific with your comments about technology, human capital, labour, natural resources, and physical capital.
In: Economics
In: Economics
What possible advantages does buying an S&P Index ETF have over buying a similar mutual fund? If you could find a similar closed-end fund, what advantages or disadvantages would trading that fund have?
In: Finance
Given the following information about a closed economy, what is the level of investment spending and national saving, and what is the budget balance? There are no government transfers.
GDP: $1,000 million T=$50 million
C=$850 million G=$100 million
In: Economics
The input-output (consumption) matrix for a closed economy is given below. Solve the associated input- output model. Use r if you need a variable in your answer. [0.07 0.05 0.27] [0.17 0.48 0.19] [0.76 0.47 0.54]
In: Advanced Math
Types of Mutual Funds include the followings except
Select one:
a. Open-end mutual funds
b. Closed-end mutual funds
c. Superannuation guarantee funds
d. Exchange-traded funds (ETFs)
e. Index funds
In: Finance
A company that reupholsters furniture in fabric and style selected by the owner of the piece of furniture is more than likely an example of a:
A. process manufacturer
B. job shop
C. closed shop
D. fixed-position layout
E. continuous production facility
In: Operations Management
1. In the lowe left corner of the Excel 2010 window. What does blue square icon in the status bar ( outlined in red) indicates?
a. It means that sheets is in ready mode
b. it means that current shape fill color is blue
c. It's the stop button for the macro that is currently being recorded.
d. It means that the current workbook is open in protected mode
e. It means that Excel is currently refreshing local data from the external data sources.
2. Excel backstage allows you to do many workbook related activities such as opening, savings, setting permissions, printing and sharing. Which of the following is not a tab available in the backstage?
a. print
b. share
c. help
d. Info
e. Permissions
3. Bellow top right corner of the Excel 2010 window, what is the purpose of the small button ( outilned in red) that appears right above the vertical scrollbar?
a. It splits the window vertically
b. It locks the verical scrollbar
c. It hides the vertical scroolbar
d. It freezes the panes around the current cell.
e. It enables synchronous scrolling
4. What value will be returned by formula bellow?
=SUM (IF FREQUENCY A1:A9, A1:A9) > 0, 1))
NAMES: A1=33 , B3=48, B6=48, B8=25, B9=33
a. 3
b. 9
c.8
d. #Value
e.#Name
5. The figure bellow shows the excel's name box (A1). Which of the following common functions can Name Box help you with?
Select all answers that apply
a. Show the selected cell address when only one cell is selected
b. show the selected range address when multiple cells are selected.
c. Show the selection size in R x C format during the selection
d. Show a drop-down list of the available defined names
e. Select the corresponding range when a defined name is selecetd from the drop-down list
6. Excel 2010 allows you to apply 3D Format and surface material to both chart are and individual series. Which of the following materials are available in the list of the standard materials in Excel 2010?
Select all answers that apply
a. Plastic
b. wood
c. Matte
d. Charcoal
e. Metal
In: Computer Science
The comparative statements of Wahlberg Company are presented
here.
|
Wahlberg Company |
||||||
|
2020 |
2019 |
|||||
| Net sales | $1,813,300 | $1,745,300 | ||||
| Cost of goods sold | 1,010,100 | 994,000 | ||||
| Gross profit | 803,200 | 751,300 | ||||
| Selling and administrative expenses | 512,200 | 481,600 | ||||
| Income from operations | 291,000 | 269,700 | ||||
| Other expenses and losses | ||||||
| Interest expense | 18,700 | 14,000 | ||||
| Income before income taxes | 272,300 | 255,700 | ||||
| Income tax expense | 82,022 | 77,800 | ||||
| Net income | $ 190,278 | $ 177,900 | ||||
|
Wahlberg Company |
||||||
|
Assets |
2020 |
2019 |
||||
| Current assets | ||||||
| Cash | $59,500 | $64,500 | ||||
| Debt investments (short-term) | 70,800 | 50,500 | ||||
| Accounts receivable | 117,900 | 101,500 | ||||
| Inventory | 123,000 | 115,600 | ||||
| Total current assets | 371,200 | 332,100 | ||||
| Plant assets (net) | 600,700 | 516,300 | ||||
| Total assets | $971,900 | $848,400 | ||||
|
Liabilities and Stockholders’ Equity |
||||||
| Current liabilities | ||||||
| Accounts payable | $159,000 | $144,100 | ||||
| Income taxes payable | 42,200 | 41,200 | ||||
| Total current liabilities | 201,200 | 185,300 | ||||
| Bonds payable | 220,000 | 200,000 | ||||
| Total liabilities | 421,200 | 385,300 | ||||
| Stockholders’ equity | ||||||
| Common stock ($5 par) | 276,800 | 299,800 | ||||
| Retained earnings | 273,900 | 163,300 | ||||
| Total stockholders’ equity | 550,700 | 463,100 | ||||
| Total liabilities and stockholders’ equity | $971,900 | $848,400 | ||||
All sales were on account. Net cash provided by operating
activities for 2020 was $216,000. Capital expenditures were
$132,000, and cash dividends were $79,678.
Compute the following ratios for 2020. (Round Earnings
per share, Current ratio and Asset turnover to 2 decimal places,
e.g. 1.65 or 1.65:1, and all other answers to 1 decimal place, e.g.
6.8 or 6.8%. Use 365 days for calculation.)
| (a) | Earnings per share | $ | |||
| (b) | Return on common stockholders’ equity | % | |||
| (c) | Return on assets | % | |||
| (d) | Current ratio | :1 | |||
| (e) | Accounts receivable turnover | times | |||
| (f) | Average collection period | days | |||
| (g) | Inventory turnover | times | |||
| (h) | Days in inventory | days | |||
| (i) | Times interest earned | times | |||
| (j) | Asset turnover | times | |||
| (k) | Debt to assets ratio | % | |||
| (l) | Free cash flow | $ |
In: Accounting