Search This Blog

Sunday 26 February 2017

Grade Point Average Calculator with Visual Basic (VB.NET)

Cumulative Grade Point Average Calculator with Visual Basic (VB.NET) with GUI
Graphics User Interface
A simple CGPA Calculator that collects input (Units and Score) and return the GPA for the Semester or CGPA as you want it.


The project is broken down into 5 categories


  1. Problem
  2. Analysis
  3. Implementation
  4. Design
  5. Appendix (Codes)
  6. Appendix(Output)


Click Here to download Complete Report in Pdf

Thanks....

Comment below if any question


Tuesday 5 April 2016

QUADRATIC EQUATION ROOT CALCULATOR WITH COMPLEX ROOT ON VISUAL BASIC Part 2 (FORM)

Ok guys, here is the second part of the quadractic equation solver but here it is created on windows form (having GUI).

Ok here is the code for the form........

Public Class Form1
    Private Sub button1_Click(sender As Object, e As EventArgs) Handles button1.Click
        Try

            Dim a = Convert.ToDouble(textBox1.Text)
            Dim b = Convert.ToDouble(textBox2.Text)
            Dim c = Convert.ToDouble(textBox3.Text)
            Dim x1 As Double, x2 As Double, d As Double
            Dim eg As Double = Math.Pow(b, 2) - (4 * a * c)
            If eg > 0 Then
                d = Math.Sqrt(eg)
                x1 = (-b + eg) / (2 * a)
                x2 = (-b - eg) / (2 * a)
                label6.Text = "Real roots: x1 = " + x1.ToString() + ", x2 = " + x2.ToString()
            ElseIf eg = 0 Then
                x1 = -b / 2
                label6.Text = "Equal roots: x1 = " + x1.ToString() + ", x2 = " + x1.ToString()
            Else : d = Math.Round(Math.Sqrt(-1 * eg) / 2, 2)
                x1 = -b / 2
                label6.Text = "Complex roots: x1 = " + x1.ToString() + " + i" + d.ToString() + "     x2 = " + x1.ToString() + " - i" + d.ToString()
            End If

        Catch ex As Exception
            MessageBox.Show("Invalid Input", "Error")
        End Try
    End Sub
End Class

Here is the Output



Video Output

Thanks for Reading...

Monday 21 March 2016

QUADRATIC EQUATION ROOT CALCULATOR WITH COMPLEX ROOT ON VISUAL BASIC



QUADRATIC EQUATION ROOT CALCULATOR WITH COMPLEX ROOT ON VISUAL BASIC


Hello guys, Iits been a while, I recently wrote a program in visual basic which calculates the root of a quadratic equation and think I should share it with you guys.
Ok, here’s the code……..


Module Module1

    Sub Main()
        'This is a comment
       Console.WriteLine("This is a Quadratic Calculator")
        'Declaring variables
        Console.WriteLine("Input a: ")
        Dim a As Integer
        a = Integer.Parse(Console.ReadLine())
        Console.WriteLine("Input b: ")
        Dim b As Integer
        b = Integer.Parse(Console.ReadLine())
        Console.WriteLine("Input c: ")
        Dim c As Integer
        c = Integer.Parse(Console.ReadLine())
        Dim d As Double
        Dim e As Double
        Dim x1 As Double
        Dim x2 As Double
        'getting the value in the square root
        e = Math.Pow(b, 2) - (4 * a * c)
        'checking for equal root, different roots and complex roots
        If e > 0 Then
            d = Math.Sqrt(e)
            x1 = (-b + e) / (2 * a)
            x2 = (-b - e) / (2 * a)
            Console.WriteLine("Equation roots: x1 = {0}, \nx2 = {1}", x1, x2)
        ElseIf e = 0 Then
            x1 = -b / 2
            x2 = x1
            Console.WriteLine("Equation roots: x1 = {0}, \nx2 = {1}", x1, x2)
        Else : Console.WriteLine("Equation has complex roots")
            d = Math.Round(Math.Sqrt(-1 * e) / 2, 2)
            x1 = -b / 2
            Console.WriteLine("Roots: {0} + i{1} and {0} - i{1}", x1, d)
        End If
        Console.WriteLine("Thanks")

        Console.ReadLine()
    End Sub

End Module


Code explained in the video below.



Monday 14 December 2015

Bird in Trouble Game in C#

Hello Guys, Check out the demo of the new game i made in c# titled

BIRD IN YAWAH




check the demo video


Also check this out


Download game here and files from here (Bird_In_Trouble.zip)


I will show you guys later on how to make the game from scratch. Keep visiting this blog for more.
Bye