Inspiration: When I received the grade for my math midterm, I decided to calculate the grades I should receive on the other exams to pass the class. I felt that it would be nice if this process was quicker and easier.

What it does: The app asks the user to input the weightage, the final desired grade, and the grades they have already received on the exams. The user is to input -1 for the grades they have not received yet. The app will return the minimum grades they must get on the other exams/assignments to get that desired final grade.

How we built it: We used android studios to build this app. We used the editText widget to get user input. We then installed a button called "Generate". We used the setOnClickListener function to run the if/else statements when the button is clicked. We derived formulas for each situation and placed them in the multiple nested if/else statements to account of every situation.

Challenges we ran into: The fact that there can be multiple situations. The user might input no, one, or multiple grades. The desired final grade and weightages may vary per user or type of exam/assignment. We overcame this by mapping out the various situtations using branches which made it easier to write the if/else statements.

Accomplishments that we're proud of: The fact that the app actually runs.

What we learned: How to use math and comp sci together.

What's next for Will I Pass App: Allowing the user to choose how many grades to enter.

Built With

Share this project:

Updates