Open Roberta

Base conversion with Calliope

Background

We try to showcase the capabilities of the Lab and the robots with interesting programs.

This is a NEPO task, make sure to read the info.

Task

Create a Calliope program that converts a number from a different base (less than 10) to base 10.

Allow the user to choose the base at the start, and enter each separate digit with the use of the buttons. After a final confirmation, the robot should output the original number, converted to base 10.

Hint: To enter a number, you can have button A increment the value, and button B be the confirm the value. For example, to enter 5, you could do AAAAAB.

Deliverables

Complete the task by providing the program with explanations.

Task tags

  • nepo
  • expert

Students who completed this task

RichardB, Blippy, kiminonawa, RohanC

Task type

  • code Code
close

2019