This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!Submit Feedback
A solution to last week's challenge can be found here.
The Ideal Gas law is a staple of Chemistry classes around the world. You may recall that it is defined as PV=nRT; where P = pressure, V = volume, n = the number of moles, R = the ideal gas constant, and T = temperature.
This week's challenge is to create an app that requires an end user to select 3 checkboxes and enter values, then produces the final variable and units as a result.
For the sake of simplicity, we will use static units for all variables. Pressure in ATM, Volume in Liters Temperature in Kelvin, and R = 0.082057338. Use 3 decimal places on the inputs. You can check your math here.
Bonus: Add in error messages if the user selects too few or too many checkboxes.
Cool challenge! I managed to build in error-checking, and everything seems to be working swimmingly. I'm sure using interface tools isn't a common occurrence for many developers, so challenges like this are excellent practice.
Nice Challenge! I also added an error for if someone selected all 4 variables
Really fun challenge 😀
The bonus part was something new to me had fun cracking it was a great learning configuring the error tool.
You got to select exactly 3 parameters and you get the fourth missing one 😉
Cheers and Happy Analyzing 😀
I don't use interface tools in my daily business, great opportunity to practise.