Answer:
double a;
double b;
double distance = Math.sqrt( (Math.pow(a, 2) + Math.pow(b, 2));
System.out.println("The distance is: " + distance);
Explanation:
The code snippet is written in Java.
First, variable a is declared as a type of double and variable b is also declared as a type of double.
The given formula for the distance is:
√(a² + b²)
So we use the inbuilt function of Java to calculate the power and the square root.
Math.sqrt is to find the square root and it returns a value of type double.
Math.pow is use to calculate the value of a² and b².
a² = Math.pow(a, 2)
b² = Math.pow(b, 2)
Then Math.sqrt is applied to the sum of Math.pow(a, 2) and Math.pow(b, 2), the value is assigned to distance of type double.
The value of distance is now displayed to the user:
System.out.println("The distance is: " + distance);
Answer:
1) A progressive tax is defined as a tax whose rate increases as the payer's income increases. That is, individuals who earn high incomes have a greater proportion of their incomes taken to pay the tax. A regressive tax, on the other hand, is one whose rate increases as the payer's income decreases.
2) The government has few choices of action to protect its domestic industries. It can implement trade barriers as for example the import quotas and tariffs on imported goods. The two are both lower the consumer's welfare. The tariffs usually would increase the prices of imported goods, therefore consumers would choose the domestic good, meanwhile the import quotas decrease the supply of imports and consumers are obligated to purchase domestic goods of prices higher than the imported goods.
3) Public good is a commodity or service that is provided without profit to all members of a society while private goods is a product that must be purchased to be consumed. There are few reasons for which the government's action is necessary to ensure the provision of public goods such as the very efficiency of this action, the goods and services might be beneficial not only for the purchaser, but other individuals, the value of the good and service becomes greater than what an individual can pay, and also it boosts the economic equity.
4) The government applies equal taxes and regulations to protect the competition. It needs to apply those in order to prevent the creation of monopoly.
5) The censorship has at its core to prevent or to minimalism one's knowledge or access to a product, therefore as a consequence it can increase the prices and have negative consequences on companies and economy in general.