Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #238: Ideal Gases Don't Exist

AYXAcademy
Alteryx
Alteryx

A solution to last week's challenge can be found hereArticle.png

 

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.

Aaron_Harter
11 - Bolide

I hope this solution gets a good reaction from the community:

Spoiler
238.1.PNG

238.e.PNG

(edit 10/19 12:38 CT) video of solution overview:

Spoiler
johnemery
11 - Bolide

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.

Spoiler
I'm not a huge fan of hard-coding all of the "error" possibilities, but I couldn't think of a better way to check for errors in this case. I'm sure there is a much more elegant solution.

Workflow capture.PNGAnswer capture.PNG 



 

Greg_Murray
12 - Quasar
Spoiler
Greg_Murray_0-1603116971878.png

 

Fun way to start a Monday. 

JethroChen
10 - Fireball
Spoiler
challenge_238_jc.PNG
OllieClarke
15 - Aurora
15 - Aurora

Nice Challenge! I also added an error for if someone selected all 4 variables

Spoiler
AppAppInterfaceInterfaceToo few variablesToo few variablesToo many variablesToo many variables
atcodedog05
22 - Nova
22 - Nova

Really fun challenge 😀

The bonus part was something new to me had fun cracking it was a great learning configuring the error tool.

 

Spoiler
atcodedog05_0-1603118280488.png

App:

atcodedog05_1-1603118298553.png
Error message
atcodedog05_2-1603118375932.png

 You got to select exactly 3 parameters and you get the fourth missing one 😉

App Rerun:
Capture.PNG
Output:

 
atcodedog05_0-1603119320516.png

Cheers and Happy Analyzing 😀

RolandSchubert
16 - Nebula
16 - Nebula
Spoiler
238.png

I don't use interface tools in my daily business, great opportunity to practise.

patrick_digan
17 - Castor
17 - Castor
Spoiler
patrick_digan_0-1603122262042.png

 

paulfound
11 - Bolide
Spoiler
PaulFound_0-1603122535189.png

 

Well that was a GAS!!!!