Post: C# - Grade Point Average (GPA) Calculator + Source
11-26-2014, 02:00 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hey, I was so bored today I made this in C# Basically it calculates your GPA based on the amount of grades you have.

You can simply use this to find your gpa if you don't have a provided website that tells you.

You must login or register to view this content.

What It Does
Basically all this does, is gets the total points from your grades and divides that by your total number of grades.

Anyways, here it is if you want it. The source is kind of sloppy as I did it in like 2 mins.

You must login or register to view this content.
You must login or register to view this content.
11-26-2014, 09:03 AM #2
Pichu
RIP PICHU.
Why don't you just get the numUpDown control type, loop through and add, then do your division.

Anything with a 0 would be 0 * value = 0;

4 + 0 + 3 + ...

You also shouldn't need checkboxes, just multiply anything with 0 by the value and add together.

Also, type casting (int) or (double) to convert numericUpDown values.

eg. (int)numericUpDown1.Value;

If you add a custom event, you can make this realtime and apply the caluclations to the program whenever a value is changed so no "get" button is needed.

---------------
Didn't feel like managing the controls but this is an idea:

You must login or register to view this content.
Last edited by Pichu ; 11-26-2014 at 09:28 AM.

The following user thanked Pichu for this useful post:

Sabotage
11-26-2014, 09:10 AM #3
Sabotage
Gaming Squad
Basically Basically Basically Basically Basically Basically Basically Basically Basically Basically
11-26-2014, 06:57 PM #4
Originally posted by Sabotage View Post
Basically Basically Basically Basically Basically Basically Basically Basically Basically Basically


I used the word twice. Calm the fuck down.

The following user thanked Black Panther for this useful post:

Pichu
11-27-2014, 02:24 AM #5
Pichu
RIP PICHU.
Originally posted by Doctor
I used the word twice. Calm the fuck down.


Still made me laugh.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo