Version: 4.2.1 +
In this exercise you should work with different formulas, arguments, and references. It teaches you how to nest formulas with arguments.
- The Futurama Editor must be installed.
- Completing the tutorial Creating formulas with Futurama first, is recommended.
A newsboy wants to start his own little newspaper stall in New York. His stall has place for 100 daily newspapers. The rent he has to pay for the location of his stall costs 600$ per month (30 days). He buys the newspaper for 1$ a piece, and sells them for 2$ each. We assume that he sells all of his newspapers each day.
The newsboy will only start this newspaper stall if he will make a minimum profit of 40$ per day.
Create the following formulas with Futurama, where q is an argument representing the amount of newspapers:
|| 600/30 + 1*q
|| Revenue - Costs
And: use these formulas to create a formula - of type Boolean - that determines if the newsboy is making his minimal profit.
With this formula you can answer the following questions:
- Will he start his newspaper stall, according to the description given above?
- Would he start his newspaper stall if it only got space for 50 newspapers per day?
- You can add an argument to a formula by clicking the Arguments-property.
- When you refer to a formula that has an argument, remember to enter the argument as well.
- When you are creating a construction where your main formula depends on different subformulas, note that you can 'pass the argument' into your subformulas. The argument of your main formula, can serve as the input for the arguments of your subformulas.
- Will he start his newspaper stall, according to the description given above? Yes
- Would he start his newspaper stall if it only got space for 50 newspapers per day? No
You can download our solution for this assignment by clicking the image at the right. (Futurama 220.127.116.11)
Please note that you can very well have a different solution that is just as good as ours.
If you want some more practise on this subject, you could try the extra exercises below.
We won't provide a solution for these variations, just consider them as a way to further experiment with Futurama.
- (Easy:) Answer the same questions, when the rent of the stall is increased to 800$ per month.
- (Medium:) Anwer the same questions, when the costs of a newspaper increase from $1 to $1,50.