Homework Answers

Math 50414
Physics 44332
Chemistry 40988
Economics 30643
Programming & Computer Science 26876
Biology 8109
Engineering 6056

Questions answered by Experts: 207 418

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

Convert the Number

Given a number having ten digits, convert it to a string following the below-mentioned rules.


Rules for conversion:

1.separate the number into a set of four-three-three digits

2.Use the following prefixes for successive digits

a.Single numbers: just read them separately

b.Two consecutive numbers: double

c.Three consecutive numbers: triple

d.Four consecutive numbers: quadruple


Input

The first line of input is a string of ten digits.



Sample Input1

9887666668

Sample Output1

nine double eight seven triplesix double six eight


Sample Input2

9090407368

Sample Output2

nine zero nine zero four zero seven three six eight


Consider the market for fire extinguishers.

a. Why might fire extinguishers exhibit positive externalities?

b. Draw a graph of the market for fire extinguishers, labeling the demand curve, the social-value curve, the supply curve, and the social-cost curve.

c. Indicate the market equilibrium level of output and the efficient level of output. Give an intuitive explanation for why these quantities differ.

d. If the external benefit is $10 per extinguisher, describe a government policy that would yield the efficient outcome.


Topic: Function

Write a function-­‐oriented program to convert the input dollar(s) into its equivalent

peso. Assume that one dollar is equivalent to 53.80 pesos.

Note: you can choose any looping statement if needed.


the world’s largest gold bar in the toi gold museum in japan can be seen and touched by visitors. it has an irregular shape with dimensions about 17.9 in. by 8.9 in. by 6.7 inches, with a volume of 12.94 l. determine the mass and weight (1 kg = 2.205 lb).

Consider the market for fire extinguishers.

a. Why might fire extinguishers exhibit positive externalities?

b. Draw a graph of the market for fire extinguishers, labeling the demand curve, the social-value curve, the supply curve, and the social-cost curve.

c. Indicate the market equilibrium level of output and the efficient level of output. Give an intuitive explanation for why these quantities differ.

d. If the external benefit is $10 per extinguisher, describe a government policy that would yield the efficient outcome.


Topic: Function

Write a function-­‐oriented program that calculates the sum of the sequence number from 1 to n. Thus, if the input is 5, the output should be 15

because:

1 + 2 + 3 + 4 + 5 = 15

Note: you can choose any looping statement if needed.


Topic; Function Write a function-­‐oriented program that calculates the power value of the input base number and exponent number. Then display the power value. Sample input/output dialogue:

Enter base number: 5 Input data

Enter exponent number: 3 Second input data

Power value: 125 Output

(The computation is 53 = 5 * 5 * 5 = 125)

Note: you can choose any looping statement if needed.


An oscillatory body of mass In attached to a spring of stiffness constant s performs simple harmonic motion in the x-direction. Show that the oscillation is described by the equation mx + sx =0


Topic: Function

Write a function-­‐oriented program that generates the Fibonacci series numbers of n (as input) and display them. In Fibonacci, the current third number is the sum of two previous

numbers.

Note: you can choose any looping statement if need.


Find latitude and longitude of utmost 20 countries, ordered by population, with a population greater or equal to the population limit given below and have atleast one currency exclusively for themselves. (countries like Madagascar, Sri Lanka but not India, USA). Use the country details from this dataset.

Your task is to find the sum of the length of all lines (in kms) that can be drawn between co-ordinates of these countries.

  • Assume radius of earth: 6371 km
  • Round length of each line and final result to 2 decimal points
  • If co-ordinates are missing for any country use 0.000 N 0.000 E


Population limit: 277500

Note: Population limit will change at random intervals. So please make sure answer is computed for the correct population limit before submitting.


LATEST TUTORIALS
APPROVED BY CLIENTS