Keywords: clear search

## Welcome to the Futurama Support Site

The Futurama Support Site is the website where you can find Futurama and Futurama Vision documentation. If you have any questions about the support pages or if you want to provide us feedback please send us an e-mail.

Index Exercise 2: Newspaper stall (Medium)

451 documents found.

# Exercise 2: Newspaper stall (Medium)

Developer
Tutorial

Module: Editor

Version: 4.2.1 +

User: Developer

Difficulty: Medium

Introduction

In this exercise you should work with different formulas, arguments, and references. It teaches you how to nest formulas with arguments.

Prerequisites

- The Futurama Editor must be installed.
- Completing the tutorial Creating formulas with Futurama first, is recommended.

## Description

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.

## Assignment

Create the following formulas with Futurama, where q is an argument representing the amount of newspapers:

 Costs: 600/30 + 1*q Revenue: 2*q Profit: 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?

## Tips

• 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.

## Solutions

- 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 4.2.1.2)
Please note that you can very well have a different solution that is just as good as ours.

## Variations

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.

Updated: 2012-12-03