{
  "format": "tokbit",
  "version": 1,
  "name": "Temperature with a note",
  "main": [
    {
      "id": "u1",
      "kind": "declare",
      "name": "c",
      "type": "float"
    },
    {
      "id": "u2",
      "kind": "input",
      "target": "c",
      "prompt": "Temperature in degrees Celsius:"
    },
    {
      "id": "u3",
      "kind": "declare",
      "name": "f",
      "type": "float",
      "init": "c * 9 / 5 + 32"
    },
    {
      "id": "u4",
      "kind": "output",
      "values": "c, \"C is\", round(f, 1), \"F\""
    },
    {
      "id": "u5",
      "kind": "if",
      "condition": "c < 0",
      "then": [
        {
          "id": "u6",
          "kind": "output",
          "values": "\"It is freezing.\""
        }
      ],
      "else": []
    },
    {
      "id": "u7",
      "kind": "if",
      "condition": "c > 30",
      "then": [
        {
          "id": "u8",
          "kind": "output",
          "values": "\"It is hot.\""
        }
      ],
      "else": []
    }
  ],
  "functions": [],
  "comment": "Solution to the task “Freezing or hot?”: Below 0 °C the program adds “It is freezing.”, above 30 °C “It is hot.”",
  "screen": "fit"
}
