(c++) (CodeBlocks) Write a program that uses a loop-driven menu that displays as: Area Calculator…

(c++) (CodeBlocks)

Write a program that uses a loop-driven menu that displays as:

Area Calculator

1. Circle

2. Rectangle

3. Triangle

4. Exit the calculator

If the user enters 1, prompt the user to enter the radius of the circle. Use the formula area = pi * r squared, (use 3.14159 for pi)  Display:

The area of the circle is <calculated value>

If the user enters 2, prompt the user to enter the length and width of the rectangle.  Use the formula area = length * width. Display:

The area of the rectangle is <calculated value>

If the user enters 3, prompt the user to enter the base and height of the triangle.  Use the formula area = base * height * .5. Display:

The area of the triangle is <calculated value>

Run the program 3 times with the test data:

Test data:

first run:

area of a circle, radius 8

second run:

area of a rectangle, length 16, width 8

third run:

area of a triangle, base 8, height 16

Capture the output of your program running into your source code. Submit your source code file.

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

a) If the US nominal interest rate is 5 percent, the foreign nominal interest rate is3 percent, and

a) If the US nominal interest rate is 5 percent, the foreign nominal interest rate is3 percent, and the current nominal exchange rate (domestic currency price of foreign exchange) is 2, what is the equilibrium forward rate set by banks and the equilibrium forward premium according to covered interest rate parity?Explain your answer carefully.b) Assume that absolute purchasing power parity holds. If the domestic country inflation rate is 5%, and the rate of nominal exchange rate depreciation is 2%,what is the foreign country’s inflation rate?c) Suppose asset A and asset B have equal expected returns, asset A has a variance of 2, asset B has a variance of 4, and the covariance between asset A and asset B is -6. If you are risk averse, and hold 50% of your portfolio in assetA and 50% in asset B, are you better off than if you hold asset A only?d) Suppose you discover that the dollar price of a Big Mac is $2.50 in the US, theUK pound price of a Big Mac is one pound and 50 pence, and the dollar price of a pound is 2. According to the law of one price, is the dollar overvalued or undervalued compared to the relative price of Big Macs? Is there any reason to expect the exchange rate – or the prices of Big Macs – to adjust? Why or why not?e) If the expected inflation rate is 5 percent, and the nominal interest rate is 2percent, what does the Fisher Equation tell you is the ex-ante real interest rate? What does this mean, exactly?f) If markets forecast that next month’s dollar/pound exchange rate will be $2per pound, and the one month nominal interest differential between the US and UK is 10%, in an efficient market what should be the equilibrium nominal exchange rate be?

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Warren is a manager employed by Upbeat Pty Limited under a seven-year contract. His employment…

Warren is a manager employed by Upbeat Pty Limited under a seven-year contract. His employment package consists of the following: (i) annual salary of $100,000 payable monthly; (ii) reimbursement of all medical expenses for himself and his family upon production of receipts;

(iii) a loan at interest rate 7.5% below market rates to assist in the purchase of his home – the loan is provided by a bank that is a client of Upbeat Pty Limited who is prepared to offer a home mortgage at 7.5% below market rates to employees of Upbeat Pty Limited provided the latter goes guarantor;

(iv) an all expenses paid surfing holiday to Bali for himself and his family each year (if he wishes it).

At Easter 2009 Upbeat Ply Limited provides a “Bunny” hamper to Warren. As he is a more senior employee the hamper includes 7 bottles of imported Mexican wine. During the relevant year of income Warren successfully completes a postgraduate university qualification in stockbroking and is awarded a university prize of $ 21.000 for the best research paper submitted by a student. He has been claiming the payment of his university fees as a deductible expense.

At the end of the relevant year of income, which is Warren’s first year under his contract. Upbeat Pty Limited decides that reimbursing medical bills is potentially too expensive. so it pays him a lump sum of $12,000 to vary his contract and to obtain a release of this obligation. You have been asked by your supervisor to provide a memorandum of advice Upbeat Pty Limited and Warren of the tax consequences for them of these payments, receipts and entitlements.

Attachments:

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

uestion 7 Q: how would youprint yourpath A) path -p B) uname -p C) cat /etc/path D) echo $PATH…

uestion 7

Q: how would youprint yourpath

A) path -p

B) uname -p

C) cat /etc/path

D) echo $PATH

Question 8

(for me:This is hard)

Q:the followingcrontabfile entry

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

The “RNA world” hypothesis proposes that a. RNA formed from DNA. b. RNA was both a catalyst and…

The “RNA world” hypothesis proposes that a. RNA formed from DNA. b. RNA was both a catalyst and genetic material. c. RNA was a catalyst only. d. RNA formed after proteins. e. DNA formed after RNA was broken down.
 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Renting a house can be a major consumption decision, subject to many competing influences….

Renting a house can be a major consumption decision, subject to many competing influences. This assessment requires you to look at the rental property choices of 3 people, and provide your analysis on those factors leading to their decisions.

Firstly, please download the 4 survey questionnaires completed by 4 different respondents (these questionnaires will be posted on Moodle from Week 7). After reading through these questionnaires, please pick 3 questionnaires/respondents (you can pick any 3 you like) as the target for your analysis. You will notice that these questionnaires are mainly about making decisions among 5 different rental property options.

Secondly, please use the compensatory decision rule to calculate which rental property option each of the 3 respondents is most likely to choose, based on the decision matrix presented in her/his questionnaire. Is this the rental property s/he would have actually chosen? If there is a difference, please provide an explanation.

Thirdly, please analyse the behaviour of your chosen respondents. That is, please explain the differences between their rankings of evaluative criteria and their choices of rental properties, using theories on demographics (e.g., age, gender, family situation, income, and ethnicity) and personality.

Lastly, please provide two recommendations to the marketer of any one of the rental property options featured in the survey questionnaires.

This assessment has a maximum word limit of 2500. Your argument and analysis in this assessment requires theoretical support from a minimum of 10 journal article references.

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

List the reforms advocated by the various groups during the first half of the 1800s, and discuss whi

List the reforms advocated by the various groups during the first half of the 1800s, and discuss which groups were most involved with each. 

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Find a least-squares solution to this system using normal equations…

(a) Find a least-squares solution to this system using normal equations [0.8] (b) Obtain a QR factorisation of the matrix of this system [0.7] (c) Use the QR factorisation to obtain a least-squares solution [0.3] (d) Calculate the least-squares error of the soluti

Attachments:

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Explain what the diversifiable risk associated with an asset means, paying specific attention… 1 answer below »

Explain what the diversifiable risk associated with an asset means, paying specific attention to what causes this risk, Its characteristics and whether it can be controlled and minimised. (4) 4.1.2. Explain what the non-dlversiflable risk associated with an asset means, paying specific attention to what causes this risk, Its characteristics and whether it can be controlled and minimised, (8)

Joe Tau is the financial manager of Focus Engineering (Pty) Ltd. The company has to invest in a new computer-controlled milling machine and Joe is very much aware of the fact that the return on this investment can vary from expectations. This possible variability in return is what constitutes the risk of the investment. To determine the risk associated with this investment, Joe has to calculate the return, standard deviation and coefficient of variation for the investment. Joe has gathered the following investment information for this purpose:

Attachments:

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"