Category Archives: Verified Tutorials

All-codes.zip

CLICK HERE TO DOWNLOAD THIS ANSWER INSTANTLY
Save this program, which is in file Circle.java, into your directory and modify it as follows:
1. The circumference of a circle is two times the product of Pi and the radius. Add statements to this program so that it computes the circumference in addition to the area for both circles. You will need to do the following:
Declare a new variable to store the circumference.
Store the circumference in that variable each timeyou compute it.
Add two additional print statements to print your results.
Be sure your results are clearly labeled.
2. When the radius of a circle doubles, what happens to its circumference and area? Do they double as well? You can
determine this by dividing the second area by the first area. Unfortunately, as it is now the program overwrites the first Chapter 2: Data and Expressions 17
area with the second area (same for the circumference). You need to save the first area and circumference you compute instead of overwriting them with the second set of computations. So you’ll need two area variables and two circumference variables, which means they’ll have to have different names (e.g., area1 and area2). Remember that each variable will have to be declared. Modify the program as follows:
Change the names of the area and circumference variables so that they are different in the first and second calculations. Be sure that you print out whatever you just computed.
At the end of the program, compute the area change by dividing the second area by the first area. This gives you the factor by which the area grew. Store this value in an appropriately named variable (which you will have to declare).
Add a println statement to print the change in area that you just computed.
Now repeat the last two steps for the circumference.
Look at the results. Is this what you expected?
3. In the program above, you showed what happened to the circumference and area of a circle when the radius went from 10 to 20. Does the same thing happen whenever the radius doubles, or were those answers just for those particular values? To figure this out, you can write a program that reads in values for the radius from the user instead of having it
written into the program (“hardcoded”). Modify your program as follows:
At the very top of the file, add the line import java.util.Scanner;
This tells the compiler that you will be using methods from the Scanner class. In the main method create a Scanner object called scan to read from System.in.
Instead of initializing the radius in the declaration, just declare it without giving it a value. Nowadd two statements to read in the radius from the user:
A prompt, that is, a print statement that tells the user what they are supposed to do (e.g., “Please enter a value for the radius.”);
A read statement that actually reads in the value. Since we are assuming that the radius is an integer, this will use the nextInt() method of the Scanner class.
When the radius gets it second value, make it be twice the original value.
Compile and run your program. Does your result from above hold

Flags.zip

CLICK HERE TO DOWNLOAD THIS ANSWER INSTANTLY
1. Write a project to display the flags of four different countries, depending on the setting of the radio buttons. In addition, display the name of the country in the large label under the flag picture box. The user also can choose to display or hide the form’s title, the country name, and the name of the programmer. Use check boxes for the display/hide choices.
Include keyboard access keys for all radio buttons, check boxes, and buttons. Make the Exit button the Cancel button. Include a Print button and ToolTips.
You can choose the countries and flags. (The StudentData\Images\ MicrosoftIcons folder holds flag icons for four countries, which you can use if you wish.)
Hints: When a project begins running, the focus goes to the control with the lowest Tablndex. Because that control likely is a radio button, one button will appear selected. You must either display the first flag to match the radio button or make the focus begin in a different control. You might consider beginning the focus on a button.
Set the Visible property of a control to the Checked property of the corresponding check box. That way when the check box is selected, the control becomes visible.
Because all three selectable controls will be visible when the project begins, set the Checked property of the three check boxes to true at design time.
2. Complete the following programming exercise. You will use the MenuStrip object and the Checked and Font properties. You already have a head start with this assignment, since you already developed this with the required assignment in Lesson 3. See the section “Basing a New Project on an Existing Project” on page 243 of the textbook to help you get started.
Update the previous mandatory assignment – DISPLAY THE FLAGS OF FOUR DIFFERENT COUNTRIES – to use a menu instead of radio buttons, check boxes, and buttons. Include check marks next to the name of the currently selected country and next to the selected display options.
Use a message box to display the program name and your name as programmer for the About option on the Help menu.
Menu:

File Country Display Help
Print United States Title About
Exit Canada Country Name
Japan Programmer
Mexico

Make sure you close your project when complete. Make a copy of the project folder, compress it to a single file, and submit it.
After your project is graded, you will receive an evaluation report. Be sure to include your name and student ID number in the comments at the top of your code. Your assignment will not be accepted without this requirement.
This is the second of two programming assignments in this course. You cannot receive a final grade for the course until both assignments have been received and graded as acceptable.

PF-081735.xls

CLICK HERE TO DOWNLOAD THIS ANSWER INSTANTLY
1. Two mutually exclusive investments cost $10,000 each and have the following cash inflows. The firm’s cost of capital is 12%.
A. What is the net present value of each investment?
B. What is the internal rate of return of each investment?
C. Which investment(s) should the firm make?
D. Would your answers be different to C if the funds received in Year 1 for investment A could be reinvested at 16%? Show your work.
Investment
Cash inflow A B
Year 1 $12,407 —
Year 2 — —
Year 3 — —
Year 4 — $19,390
Financial Management
2. Given the following information, answer the following questions:
TR = $3Q
TC = $1,500 + $2Q
A. What is the break-even level of output?
B. If the firm sells 1,300 units, what are its earnings or losses?
C. If sales rise to 2,000 units, what are the firm’s earnings or losses?
D. If the total cost equation were TC = $2,000 + $1.80Q,
what happens to the break-even level of output units?
3. Determine the current market prices of the following $1,000
bonds if the comparable rate is 10% and answer the
following questions.
XY 5.25% (interest paid annually) for 20 years
AB 14% (interest paid annually) for 20 years
A. Which bond has a current yield that exceeds the yield to maturity?
B. Which bond may you expect to be called? Why?
C. If CD, Inc., has a bond with a 5.25% coupon and a maturity of 20 years but which was lower rated, what would be its price relative to the XY, Inc., bond? Explain. Part B: Indicate whether the statement is True or False. Each
answer is worth 2 points.
______ 1. Discounting refers to the process of bringing the future back to the present.
______ 2. An increase in retained earnings is a cash inflow.
______ 3. If a firm doesn’t pay cash dividends, it may reinvest the earnings and grow.
______ 4. Total revenue equals price times quantity.
______ 5. The internal rate of return equates the present value of an investment’s cash inflows and its cost (outflows).
2
Examination 3
Part C: Select the one best answer to each question. Each answer is worth 4 points.
1. An investor may place a limit order that
A.limits the amount of commissions.
B.specifies when the stock will be purchased.
C.establishes the exchange on which the security is to be bought or sold.
D.states a price at which the investor seeks to buy or sell the stock.
2. Which of the following is nota financial intermediary?
A.New York Stock Exchange
B.Washington Savings and Loan
C.First National City Bank
D.Merchants Savings Bank
3. Using accelerated depreciation
A.initially increases the firm’s profits.
B.initially decreases the firm’s taxes.
C.discourages investment in plant and equipment.
D.increases expenses and decreases cash flow.
4. The current yield on a bond is
A.interest paid divided by the bond’s price.
B.the bond’s coupon.
C.the interest rate stated on the bond.
D.the yield over the lifetime of the bond.
5. The increased use of financial leverage may
I. affect the firm’s credit rating.
II. decrease risk.
III. alter the firm’s earnings.
A.I and II
B.I and III
C.II and III
D.I, II, and III
Financial Management 4
Part D: Solve each of the following problems. Each answer is worth 5 points.
1. If a new college graduate wants a car costing $15,000, how much must be saved annually over the next four years if the funds earn 5%?
2. You purchase a bond for $875. It pays $80 a year (that is, the semiannual coupon is 4%), and the bond matures after 10 years. What is the yield to maturity?