Create C program for an engineering unit converter such as energy converter, pressure converter or others. | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Create C program for an engineering unit converter such as energy converter, pressure converter or others.

How to program this question?

17th Apr 2019, 4:40 PM
Wawa
1 Respuesta
0
Hi. There are several ways approaching this. Fastest would be to prompt the user putting his input to command line. Present the user which the choice of the conversion. i.e. 1 for energy, 2 for pressure, and 3 for distance. Afterwards knowing what to convert to what you can ask the value and return the result back to console. Another way would be implementing an GUI using i.e. Qt.
18th Apr 2019, 7:41 PM
ChrA
ChrA - avatar