-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Add Air Quality Index Calculator #631
Comments
Hey @Aarzookhunger, Welcome to the project CalcDiverse! 🎊 |
Hi team, I'd like to take on the task of implementing the AQI Level Calculator feature. I believe it aligns well with my skills and interests, and I'm excited to contribute to its development. Assigning this issue to me would be greatly appreciated. Thanks! |
@Rakesh9100 Thankyou. |
I would like to work on this issue. Pls assign me this!! |
Go ahead @Aarzookhunger |
Description
AQI -> Air Quality Index Level Calculator
Input: User enters the AQI number of their region.
Output: Based on the AQI number provided, the level of air quality is determined, along with the corresponding color indication.
The output color reflects the range the AQI falls into, such as green for good air quality and yellow for satisfactory air quality.
Checks to be applied:
Keep a check on the input by the user the AQI must be greater than or equal to zero. Also keep a check on upper bound value.
Implementation :
A Javascript function will be created where in the parameter will be the AQI index and the level is returned after comparing with the metrices.
As this level is return another function is called with this level which gives the color indication. Now after getting both of these values, we can design the output display on the screen using CSS.
Screenshots
Get input from the user in somewhat this way. (The background color can be kept green to indicate living in good air quality or can be kept greyish as neutral input taking page.
![Input](https://private-user-images.githubusercontent.com/116306749/329372290-eee53e27-0004-4f92-b584-43fd13856a4a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTM0NDMsIm5iZiI6MTczOTY5MzE0MywicGF0aCI6Ii8xMTYzMDY3NDkvMzI5MzcyMjkwLWVlZTUzZTI3LTAwMDQtNGY5Mi1iNTg0LTQzZmQxMzg1NmE0YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQwODA1NDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02ZTNjZWQ1ZjFkZjliMmMyMzczNTg4YWY0NjQxN2RhZDU1YTBlMDViYTA1NDdjZGU5MmFlMjRkNTc5Yjc5MGNjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ApEvMgKxwJfFvaC8fN7mo2q9t1o1s1YCH0sZ4jxiS1E)
As an output the level of air quality along with color indication will be displayed.
![Output](https://private-user-images.githubusercontent.com/116306749/329373486-70598e8d-4e63-47c5-85f6-d6dfb1ca80ee.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTM0NDMsIm5iZiI6MTczOTY5MzE0MywicGF0aCI6Ii8xMTYzMDY3NDkvMzI5MzczNDg2LTcwNTk4ZThkLTRlNjMtNDdjNS04NWY2LWQ2ZGZiMWNhODBlZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQwODA1NDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jZGNjYzU3NWNhZmJiMzFhYWU2NmFmMTdlNjk1NGE3ZDc0N2E4ZmU5OGY1MGU1YWUzYjhhYzlkNDUxZWZlNGM2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.lV6Inh8e38Neb9rP0VDDe1nPQGd0CZY2BhpCXMULREQ)
Checklist
Code of Conduct
The text was updated successfully, but these errors were encountered: