Fedora Project

Code a DPI calculator

You must create a DPI calculator for Monitors and screens in general that outputs the DPI and Aspect ratio when given the horizontal and vertical pixel count along with monitor size in inch. It should do the following:

  • Input the both horizontal and vertical pixel count, along with monitor size in inch.
  • Use functions to generate the required output.
  • Output the DPI and monitor aspect ratio to the user.
    The submitted files should not be compiled! Use the default file extension for each programming language. (.py for python, .cpp for C++ etc.)
    Any programming language is Accepted.

Task tags

  • code
  • dpi calulator

Students who completed this task

Mukundan314, paraxor, Michael, Ayush19, Aryan Garg, EmperorAj

Task type

  • code Code
close

2019