Question 2 Write a program to measure the economy of countries by calculating their Growth Rate....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Question 2 Write a program to measure the economy of countries by calculating their Growth Rate. If for a given period the GDP value at the beginning and subsequent year is known, calculate the Growth Rate (GR) of the country for each year, the Average Annual Growth Rate (AAGR) and the Compound Annual Growth Rate (CAGR). Also, measure the relative riskiness of the country's economy based on its standard deviation. The program should: Read the number of countries a Read the number of years n Use array of length a to store the following: o the name of the country o an array of GDP i.e., of length of years n o an array of GR values i.e., of length of years n For each country's GDP value and corresponding year, calculate the growth rate (GR) and its ranking. i.e.: = (EV-BV) BV (* Hint: Round the GR value to two decimal places) where: EV (Ending Value) = BV (Beginning Value) = < GDP Value of the previous year> = GR> 25 = Exceptional GR> 0 = Good GR <0 = Poor For each country calculate the average annual growth rate, compound annual growth rate and standard deviation. = < Compound Annual Growth Rate >= (BV)* where: - 1 where: EV = BV = < GDP Value of the beginning year> = 1 (2; - z)2 n - 1 X = x = < GR Value of each year> (* Hint: Round the GR, AAGR and CAGR to two decimal places and Stdev to three decimal places) Print the following for each country: the country name for a specific year, the GDP Value, Growth Rate and Ranking the average annual growth rate the compound annual growth rate the standard deviation At the end: Compare the standard deviation of each country to measure the economy volatility based on the minimum standard deviation with the following condition: > If minimum standard deviation < 25, then print; "The Country 's economy is most stable If minimum standard deviation > 25, then print; "The Country 's economy is least risky" (Example runs of the completed program are shown on the next page) Enter the number of countries: 3 Enter the number of years: 3 Enter the name of country 1: X Country X Enter the beginning GDP value: 160000000 Enter the end of year 1 GDP value: 170000000 Enter the end of year 2 GDP value: 189700000 Enter the end of year 3 GDP value: 191000000 Enter the name of country 2: Y Country Y Enter the beginning GDP value: 567800000 Enter the end of year 1 GDP value: 567800000 Enter the end of year 2 GDP value: 732100000 Enter the end of year 3 GDP value: 890101100 Enter the name of country 3: Z Country Z Enter the beginning GDP value: 410000000 Enter the end of year 1 GDP value: 452200000 Enter the end of year 2 GDP value: Enter the end of year 3 GDP value: Country X GDP Value | $170,000,000.00 | $189,700,000.00 | $191,000,000.00 | Year | 1 2 3 763020290 987376183 Growth Rate Average Annual Growth Rate: 6.17% Compound Annual Growth Rate: 6.08% Standard Deviation: 5.452 6.25% 11.59% 0.69% | Ranking Good Good Good Year | 1 2 3 Country Y GDP Value | Growth Rate $567,800,000.00 | $732,100,000.00 | $890,101,100.00 | Average Annual Growth Rate: 16.84% Compound Annual Growth Rate: 16.17% Standard Deviation: 15.040 Year | 1 2 3 Country Z GDP Value $452,200,000.00 $763,020,290.00 | | $987,376,183.00 0.00% 28.94% 21.58% Growth Rate Average Annual Growth Rate: 36.14% Compound Annual Growth Rate: 34.04% Standard Deviation: 29.799 10.29% 68.74% 29.40% The Country X's economy is most stable | Ranking Poor Exceptional Good | Ranking Good Exceptional Exceptional Question 2 Write a program to measure the economy of countries by calculating their Growth Rate. If for a given period the GDP value at the beginning and subsequent year is known, calculate the Growth Rate (GR) of the country for each year, the Average Annual Growth Rate (AAGR) and the Compound Annual Growth Rate (CAGR). Also, measure the relative riskiness of the country's economy based on its standard deviation. The program should: Read the number of countries a Read the number of years n Use array of length a to store the following: o the name of the country o an array of GDP i.e., of length of years n o an array of GR values i.e., of length of years n For each country's GDP value and corresponding year, calculate the growth rate (GR) and its ranking. i.e.: = (EV-BV) BV (* Hint: Round the GR value to two decimal places) where: EV (Ending Value) = BV (Beginning Value) = < GDP Value of the previous year> = GR> 25 = Exceptional GR> 0 = Good GR <0 = Poor For each country calculate the average annual growth rate, compound annual growth rate and standard deviation. = < Compound Annual Growth Rate >= (BV)* where: - 1 where: EV = BV = < GDP Value of the beginning year> = 1 (2; - z)2 n - 1 X = x = < GR Value of each year> (* Hint: Round the GR, AAGR and CAGR to two decimal places and Stdev to three decimal places) Print the following for each country: the country name for a specific year, the GDP Value, Growth Rate and Ranking the average annual growth rate the compound annual growth rate the standard deviation At the end: Compare the standard deviation of each country to measure the economy volatility based on the minimum standard deviation with the following condition: > If minimum standard deviation < 25, then print; "The Country 's economy is most stable If minimum standard deviation > 25, then print; "The Country 's economy is least risky" (Example runs of the completed program are shown on the next page) Enter the number of countries: 3 Enter the number of years: 3 Enter the name of country 1: X Country X Enter the beginning GDP value: 160000000 Enter the end of year 1 GDP value: 170000000 Enter the end of year 2 GDP value: 189700000 Enter the end of year 3 GDP value: 191000000 Enter the name of country 2: Y Country Y Enter the beginning GDP value: 567800000 Enter the end of year 1 GDP value: 567800000 Enter the end of year 2 GDP value: 732100000 Enter the end of year 3 GDP value: 890101100 Enter the name of country 3: Z Country Z Enter the beginning GDP value: 410000000 Enter the end of year 1 GDP value: 452200000 Enter the end of year 2 GDP value: Enter the end of year 3 GDP value: Country X GDP Value | $170,000,000.00 | $189,700,000.00 | $191,000,000.00 | Year | 1 2 3 763020290 987376183 Growth Rate Average Annual Growth Rate: 6.17% Compound Annual Growth Rate: 6.08% Standard Deviation: 5.452 6.25% 11.59% 0.69% | Ranking Good Good Good Year | 1 2 3 Country Y GDP Value | Growth Rate $567,800,000.00 | $732,100,000.00 | $890,101,100.00 | Average Annual Growth Rate: 16.84% Compound Annual Growth Rate: 16.17% Standard Deviation: 15.040 Year | 1 2 3 Country Z GDP Value $452,200,000.00 $763,020,290.00 | | $987,376,183.00 0.00% 28.94% 21.58% Growth Rate Average Annual Growth Rate: 36.14% Compound Annual Growth Rate: 34.04% Standard Deviation: 29.799 10.29% 68.74% 29.40% The Country X's economy is most stable | Ranking Poor Exceptional Good | Ranking Good Exceptional Exceptional
Expert Answer:
Related Book For
Fundamentals Of Electric Circuits
ISBN: 9780073301150
3rd Edition
Authors: Matthew Sadiku, Charles Alexander
Posted Date:
Students also viewed these algorithms questions
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Bovens (2005) highlights a number of types of accountability that public and nonprofit sector employees may face, including: Organizational accountability : Accountability to superiors in...
-
Calculate the numerical value of cross-price elasticity, exy, in each of the following situations. Do not round your interim calculations before obtaining the final solution (i.e. do not clear your...
-
The Mosquito Abatement Commission is a newly organized federal agency with three primary programs: coordinating state government abatement functions, conducting research on mosquito abatement, and...
-
a. Using the spreadsheet data in 61, and spreadsheet formulas, determine the compound annual average rate of return for Berkshire Hathaway for the last 10 years and the last 5 years. b. What was the...
-
What type of chemical bond is responsible for the cohesion and adhesion of water molecules in plants?
-
In the context of the shareholder wealth-maximization model of a firm, what is the expected impact of each of the following events on the value of the firm? Explain why. a. New foreign competitors...
-
= 0.474 m and The wheels of a wagon can be approximated as the combination of a thin outer hoop of radius mass 4.32 kg, and two thin crossed rods of mass 7.37 kg each. Imagine replacing the wagon...
-
Manitoba Exporters Inc. (MEI) sells Inuit carvings to countries throughout the world. On December 1, Year 5, MEI sold 10,000 carvings to a wholesaler in a foreign country at a total cost of 600,000...
-
Ruby Red manufactures, markets, and distributes citrus flavored soft drinks across the globe. Ruby Red hired a collection agency in 2012 to increase collection rates from customers. As a result, Ruby...
-
Purpose - The purpose of this is to compose an informal report (in email format) that is brief, effective, and professional. Scenario - Your manager has tasked you with researching cloud-based...
-
How social media has changed in the past decade, according to its influencers: 1. How has the internet changed your life? 2. How has social media affected your life?
-
https://www.businesscommunicationarticles.com/lateral-horizontal-communication-definition/ Why From these articles, select one principle of effective communication that you believe is essential....
-
Choose an international sport organization, e.g., IOC, FIFA, international tennis or golf events, Tour de France, etc., and critique its social media strategy. Using bullet points, list the pros/cons...
-
A company is considering dropping a product line. Data from the company s budget for the upcoming year for this product line appear below: Sales Revenue: $ 3 0 7 , 0 0 0 Variable costs: $ 1 7 7 , 0 0...
-
Find the values of constants a, b, c So that maximum value of directional directive of T = axy 2 + byz + cz 2 x 3 at (2, 4, -2) has a maximum magnitude 49 in the direction parallel to axis of Z.
-
Four GWU students have been selected to taste food sold by 3 different food trucks labeled as food truck A, B and C on H & 22nd Streets every Monday for 3-weeks. For each student, food trucks are...
-
Find the complex power absorbed by each of the five elements in the circuit of Fig. 11.74. 20 j10 090Vrms 4020 V rms +
-
Obtain the complex power delivered to the 10-k Ω resistor in Fig. 11.77 below. 02/0 Vrms 20I
-
Find the node voltages in the circuit of Fig. 3.12? Figure 3.12 3 20 V 60 212 10A 482
-
Problem Decide whether the sampling method is independent or dependent. Then determine whether the response variable is qualitative or quantitative. (a) Joliet Junior College decided to implement a...
-
In the Spacelab Life Sciences 2 payload, 14 male rats were sent to space. Upon their return, the red blood cell mass (in milliliters) of the rats was determined. A control group of 14 male rats was...
-
Using the data from Table 2, construct a \(95 \%\) confidence interval estimate of the mean difference, \(\mu_{d}\). By Hand Approach Step 1 Compute the differenced data. Because the sample size is...
Study smarter with the SolutionInn App