# Java application of a circle

Write a Java application to calculate the circumference and the area of a circle. Your application must have two classes. The Circle class will have two methods: the circumference method and the area method. Each method will take a double input parameter as the value of the radius, perform its calculation, and return a double result.

The CircleTest class will have a main method that uses a JOptionPane to get the value of the radius from the user. The main method will create an object of the Circle class and test its methods. The main method will also use a JOptionPane for output. Use Math.PI and the Math.pow method in your calculations.

Limit your output to three digits after the decimal point by using the String.format method. Add exception handling to your program so that, if the user inputs something other than a string of digits, your program catches the exception and gives the user another chance to input the value of the radius.

# fh01.docx

1. Ben Woolmer has an investment that will pay him the following cash flows over the next five years: \$8,061, \$4,266, \$9,547, \$4,399, and \$7,327. If his investments typically earn 9.72 percent, what is the future value of the investment’s cash flows at the end of five years?
2. Saul Cervantes has just purchased some equipment for his landscaping business. For this equipment he must pay the following amounts at the end of each of the next five years: \$11,009, \$13,949, \$8,595, \$9,780, and \$12,151. If the appropriate discount rate is 13.332 percent, what is the cost in today’s dollars of the equipment Saul purchased today?
3. Calculate effective annual interest rate (EAR) for the following investments.
a. A bank CD that pays 8.13 percent compounded quarterly. Calculate effective annual interest rate (EAR)?
b. A bank CD that pays 8.13 percent compounded monthly. Calculate effective annual interest rate (EAR)?
c. A bank CD that pays 8.33 percent compounded annually. Calculate effective annual interest rate (EAR)?
d. A bank CD that pays 8.13 percent compounded semi-annually. Calculate effective annual interest rate (EAR)?
e. A bank CD that pays 7.88 percent compounded daily (on a 365-day basis). Calculate effective annual interest rate (EAR)?
f. Which of the above investments has the highest effective annual interest rate (EAR)?
4. Dynamics Telecommunications Corp. has made an investment in another company that will guarantee it a cash flow of \$21,768 each year for the next five years. If the company uses a discount rate of 20 percent on its investments, what is the present value of this investment?
5. Cecelia Thomas is a sales executive at a Baltimore firm. She is 25 years old and plans to invest \$2,558 every year in an IRA account, beginning at the end of this year until she turns 65 years old. If the IRA investment will earn 8.03 percent annually, how much will she have in 40 years, when she turns 65?
6. Kevin Winthrop is saving for an Australian vacation in three years. He estimates that he will need \$5,939 to cover his airfare and all other expenses for a week-long holiday in Australia. If he can invest his money in an S&P 500 equity index fund that is expected to earn an average return of 10.1 percent over the next three years, how much will he have to save every year if he starts saving at the end of this year?
7. Modern Energy Company owns several gas stations. Management is looking to open a new station in the western suburbs of Baltimore. One possibility they are evaluating is to take over a station located at a site that has been leased from the county. The lease, originally for 99 years, currently has 73 years before expiration. The gas station generated a net cash flow of \$95,020 last year, and the current owners expect an annual growth rate of 6.3 percent. If Modern Energy uses a discount rate of 17.1 percent to evaluate such businesses, what is the present value of this growing annuity?
8. Cyclone Rentals borrowed \$15,550 from a bank for three years. If the quoted rate (APR) is 8.37 percent, and the compounding is daily, what is the effective annual interest rate (EAR)?
9. Calculate the annual cash flows for each of the following investments:
a. \$246,624 invested at 6 percent.
b. \$37,117 invested at 12 percent.
c. \$77,534 invested at 10 percent.

# MCQ Set48

Question 1
If autonomous investment falls by \$50, then:
A. the consumption function will shift down.
B. the consumption function will shift up.
C. the aggregate expenditure function will shift down.
D. the aggregate expenditure function will shift up.
Question 2
Given AE = \$1,000 + .8Y, when income equals \$6,000, expenditures will be:
A. \$4,000.
B. \$4,800.
C. \$5,800.
D. \$6,000.
Question 3
The aggregate expenditure function:
A. gives the relationship between an economy’s expenditures and its income.
B. shifts upward if aggregate household wealth declines.
C. implies that annual expenditures in an economy are zero if income is zero.
D. is a horizontal line.
Question 4
The multiplier model is designed to answer which one of the following questions?
A. What causes changes in aggregate expenditures?
B. How will output be affected by changes in aggregate expenditures?
C. How did the economy arrive at its current price and output level?
D. How will prices respond to changes in aggregate expenditures?
Question 5
The multiplier process works because when expenditures don’t equal production:
D. the government steps in to adjust production.
Question 6
In the multiplier model, induced expenditures are a function of:
A. consumer confidence.
B. income.
C. interest rates.
D. wealth.
Question 7
A multiplier of 10 means that a \$100 billion increase in autonomous investment will:
A. decrease equilibrium real GDP by \$100 billion.
B. increase equilibrium real GDP by \$10 billion.
C. increase equilibrium real GDP by \$100 billion.
D. increase equilibrium real GDP by \$1,000 billion.
Question 8
Graphically, the equilibrium level of real income occurs where the expenditures function intersects the:
A. horizontal axis.
B. vertical axis.
C. aggregate supply curve.
D. 45-degree line going through the origin.
Question 9
If the mpe is 0.8 and autonomous expenditures are \$2,000, then the multiplier equation implies that total equilibrium expenditures in the economy will be:
A. \$2,500.
B. \$4,000.
C. \$10,000.
D. \$40,000.
Question 10
For levels of income to the left of the point where the expenditure function intersects the aggregate production line:
A. planned expenditures exceed production.
B. production exceeds planned expenditures.
C. a surplus of goods exists.
D. expenditures equal income.
Question 11
Refer to the graph above. If the economy in the graph is at point A, the most appropriate fiscal policy to return the economy to potential output would be:
A. a cut in the income tax rate.
B. a decrease in welfare payments.
C. an increase in government spending
D. an increase in the money supply
Question 12
A shift in the AE curve from AE0 to AE1 could be due to:
A. a decrease in net exports.
B. an increase in autonomous expenditures.
C. an increase in government spending.
D. a decrease in taxes.
Question 13
Refer to the graph above. A decrease in foreign income is most likely to cause the AE curve to shift from:
A. AE3 to AE1.
B. AE2 to AE1.
C. AE0 to AE2.
D. AE0 to AE1.

# Network Practice

Select and explain each answer in a total of 200 to 300 words.
a. 32
b. 48
c. 64
d. 128
e. 256

2. The subnet mask of an IP address does which of the following?.
a. Provides encryption in a TCP/IP network
b. Defines network and host portions of an IP address
c. Allows automated IP address configuration
d. Allows users to use a computer’s name rather than its address
3. Which of the following is a private IP address and can’t be routed across the Internet?
a. 192.156.90.100
b. 172.19.243.254
c. 11.200.99.180
d. 221.24.250.207
e. 12.12.12.12
4. When using TCP/IP, which of the following must computers on the same logical network
have in common? (Choose all that apply.)
a. Network ID
b. Host ID
d. Computer name
5. How many bits must be reallocated from host ID to network ID to create 16 subnets?
6. For the Class C network address 192.168.10.0, which of the following subnet masks
provides 32 subnets?
a. 255.255.255.252
b. 255.255.255.248
c. 255.255.255.240
d. 255.255.255.224
7. How many host bits are necessary to assign addresses to 62 hosts?
a. 6
b. 5
c. 4
d. 3
8. Which of the following is a reason to subnet? (Choose all that apply.)
a. Networks can be divided into logical groups.
b. Subnetting eliminates the need for routers.
c. Subnetting can decrease the size of broadcast domains.