Boss

Boss: Light the First Beacon

The boss
Boss Fight!
Every passing test breaks a shield.

The Great Beacon of Emberreach has gone dark. Ships are lost in the fog, and the Guild Master has chosen you to bring it back. The beacon's control program has been wiped. You'll write a new one from scratch.

The Input box contains three answers: Ada, 4 and 2.5.

Assignment

  1. Ask Keeper name? and store the answer in keeper.
  2. Ask Number of lanterns? and store it as an int in lanterns.
  3. Ask Oil per lantern? and store it as a float in oil_each.
  4. Set total_oil to lanterns times oil_each.
  5. Each litre of oil burns for 4 hours: set hours to total_oil * 4.
  6. Print this report (the first three lines come from the questions):
Keeper name? Ada
Number of lanterns? 4
Oil per lantern? 2.5
===== BEACON REPORT =====
Keeper: Ada
Lanterns: 4
Total oil: 10.0 litres
Hours of light: 40.0
The beacon is lit! Well done, Ada!

Use commas in print for the lines with numbers. For the last line, glue with + so the ! sits right next to the name.