(30-120 min)
Part 1. Your company’s revenue in a new market is 1.2 million DKK in its first
year. If revenue grows at a steady rate of 15% per year, compounding, use the formula
V=P(1+r)n to compute expected revenue after 5 years. Create variables named
principal, rate, and years, assign the result to a variable named
projected_revenue, and print it. Add comments noting the currency and that growth is
annual.
Part 2. A rule of thumb in logistics says that total landed cost equals unit cost
plus freight per unit plus (unit cost × tariff rate). Create a variable x with the
value 1 representing one sample unit priced at $50, with freight of $6 per unit and
a tariff rate of 4.5%. Compute the landed cost using the rule of thumb, then compute
it again by first summing unit cost and freight and then applying the tariff to that
combined amount. Are the two results the same? Which do you think is the “correct”
interpretation, and why might a contract need to specify this precisely?
Part 3. The math module’s log function is useful for growth-rate problems.
If a market grew from 800,000 DKK to 1.4 million DKK over 3 years, you can estimate
the annual growth rate r using r=(PV)1/n−1. Compute
this three ways:
Using the ** operator with a fractional exponent.
Using math.pow for the same computation.
Using math.exp and math.log, based on the identity
ab=eblna.
Do all three approaches agree (allowing for tiny floating-point differences)?