Catrobat

Code a sound meter

Code a program with Pocket Code to measure the surrounding noise level. The result should be visualized and permanently updated while the measurement is active. Find a way to visually represent the current noise level (preferably in a way that can display a countless variety of noise levels – a three-tier scale like a traffic light wouldn’t be sufficient. It should steplessly adapt to the current noise level). When the measuring is stopped the highest noise value measured during the last session should be displayed.

Requirements:

  • a start screen where the user can either start the program directly or read instructions first
    • a start button to start the measurement
    • a stop button to stop the measurement
    • a stepless visualisation of the current noise level when the measurement is active
    • the visualisation of the highest measured noise level when the measurement is stopped
    • a reset button to restart the program
    • make it visually appealing!

All code must be original. All images and resources used should be under CC0 licence. If you couldn’t find required images, feel free to sketch them or make a simple version of them in Pocket Paint!

Task tags

  • app programming
  • pocket code

Students who completed this task

Thea M, AAA2003, Chiranjiv, JustinA, ananx24, Abu Syed, wxiuxuan

Task type

  • code Code
close

2018