SarthakKeshari / calc_for_everything

This repository aims to provide Calculators for educational, professional, scientific, health and well-being and other purposes.
https://calc-for-everything-psi.vercel.app
MIT License
113 stars 103 forks source link

Finished GPA Calculator #504

Closed IshaanShettigar closed 10 months ago

IshaanShettigar commented 10 months ago

Issue Id you have worked upon -

458

Briefly explain your program logic -

I setup 2 tables, one table to hold the grade to point scale (S - 10, A - 9.. etc). A second table where the user can enter the grade achieved and the course credit. The user can add as many subjects in the second table and add as many grades in the first table, this was done to accommodate grading schemes like A,A+,A- and so on.

I setup state arrays for the tables, so that each time it renders it renders from the array, thus to add a row all I need to do is just add an element to the corresponding state arrays.

Screenshots(Attach 2 screenshots of your own input and output) -

image

image

image


By raising this PR I affirm that -

SarthakKeshari commented 10 months ago

Congratulations 🎉 @IshaanShettigar on your contribution. Thanks for adding value to this repository. 😊

Let's celebrate this fest 😃 by providing more developers 👨‍💻👩‍💻 an opportunity to contribute. Help us make this repository reach far and more by sharing this to your friends and colleagues.

Your efforts can make difference.

SarthakKeshari commented 10 months ago

Hey 👋, may you also encourage us by clicking the star icon on the repository main page. ⭐

image