0% found this document useful (0 votes)
36 views18 pages

Microproject of Gad

Uploaded by

Samruddhi Pise
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views18 pages

Microproject of Gad

Uploaded by

Samruddhi Pise
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

JAYAWANT SHIKSHAN PRASARAK MANDAL

Bhivarabai Sawant Polytechnic


(Approved by AICTE, New Delhi, Govt. of Maharashtra, Affiliated to MSBTE Mumbai)
Gate No. 720 (1 & 2) Wagholi, Pune Nagar Road, Pune-412207
Phone: 020-67335107 Tele Fax: (020)-67335100
E-mail: bspoly@rediffmail.com Website: www.jspm.edu.in

ANEXXURE II
Evaluation Sheet for the Micro Project

Academic Year : 2023-24 Name of the Faculty : Prof.


Course : GAD Course code : 22034 Semester : IV
Title of the project: Calculator GUI based application
COs addressed by Micro Project:
1. Use Visual Studio IDE to design application.
2. Develop GUI Application using Form Controls and its events.
3. Apply Object Oriented concepts in GUI Application.
4. Use Data access controls to store data in Database and retrieve it.
5. Use Data Binding in GUI Application.
Major learning outcomes achieved by students by doing the project
(a) Practical outcome: Develop a program using VB.net.
(b) Unit outcomes in Cognitive domain: Write the program by using VB.net application.
(c) Outcomes in Affective domain: ……………………………………………………………………………
Comments/suggestions about team work /leadership/inter-personal communication (if
any) ………………………………………………………………………………………………………………
Marks out of 6 for Marks out of 4for
Roll No performance in performance in Total out
Student Name group activity oral/ presentation of 10
(D5 Col.8) (D5 Col.9)

26. Pise Samruddhi Subhash

27. Waghmare Pratiksha Madhav

28. Zurunge Prathamesh Somnath

29. Tandale Aryan Raju

30. Anarase Shubham Bibhishan

(Name and Signature of Faculty)


Micro Project Plan

Week Sign of the


No. Guide
Date Duration Work or activity Performed
in hours

1
One hour Group discussion
2
One hour Searching of real life task

3
One hour Selection of micro project topic

4
One hour Gathering of information and application of it

5
One hour Group discussion

6
One hour Distribution of work to be done

7
One hour Preparing the overview of the project

8
One hour Gathering the details

9
One hour Coding / implementing programs

10
One hour Running the code

11
One hour Debugging the error
12
One hour Group discussion
13
One hour Gathering the data
14
One hour Modifying the code
15
One hour Finalizing code
16
One hour Preparing report
JAYAWANT SHIKSHAN PRASARAK MANDAL’s
Bhivrabai Sawant Polytechnic
(Approved by AICTE, New Delhi, Govt. of Maharashtra, Affiliated to
MSBTE Mumbai)
Gat No. 720 (1&2), Wagholi, Pune-Nagar Road, Pune-412207)
Phone: 020 – 67335100 Tele fax: - + 91-020-67335100
E-mail: bspoly@rediffmail.com Website: www.jspm.edu.in

Date: / /2024

CERTIFICATE
This is to certify that the Project titled “Calculator GUI Based Application” has been
completed in the academic year 2023-2024 by

1. Pise Samruddhi Subhash


2. Waghmare Pratiksha Madhav
3. Waghmare Pratiksha Madhav
4. Tandale Aryan Raju
5. Anarase Shubham Bibhishan

in partial fulfillment of the Diploma in the Computer Engineering as prescribed by the


MSBTE, Mumbai.

Guide External Examiner

H.O.D. Principal
Computer Department

Seal of
the
College
INDEX
1. Annexure-II

2. Project plan

3. Acknowledgement

4. Introduction

5. Project details

6. Advantages &Disadvantages

7. Conclusion

8. Reference
Acknowledgement
I have a great pleasure in presenting this project report on “Calculator GUI
based application” and to express my deep regards towards those who have offered their
valuable time and guidance in my hour of need because when any work is to be successfully
completed, it should be supported and guided by proper persons. For completing this project I
really got inspiration and guidance from many persons. I would like to express my sincere and
whole hearted thanks to my guide Prof. Jyotsna Patil without whose support I was unable to
express my ideas in this project. I also thank Prof. Sonali Patil, Head of Department for his
support and encouragement.

I am also glad to express my gratitude and thanks to my parents and my friends


who directly or indirectly supported me for completion of this project .
INTRODUCTION
GUI applications are very popular and important, especially for normal users, interaction to
computer becomes very easy with the help of Graphics.
A small electronic machine used for calculating figures Called CALCULATOR, in this project
we have tried to develop an CALCULATOR, which will help us to calculate big numbers just
on the tips of the fingers. In this application one perform the calculations of the big figures. A
calculator is a device that performs arithmetic operations on numbers. The simplest calculators
can do only addition, subtraction, multiplication, and division. More sophisticated calculators
can handle exponent operations, roots, logarithms, trigonometric functions, and hyperbolic
functions.
Code:
Imports System.Windows.Forms

Public Class CalculatorForm

Inherits Form

Private WithEvents bu on0 As Bu on

Private WithEvents bu on1 As Bu on

Private WithEvents bu on2 As Bu on

Private WithEvents bu on3 As Bu on

Private WithEvents bu on4 As Bu on

Private WithEvents bu on5 As Bu on

Private WithEvents bu on6 As Bu on

Private WithEvents bu on7 As Bu on

Private WithEvents bu on8 As Bu on

Private WithEvents bu on9 As Bu on

Private WithEvents bu onAdd As Bu on

Private WithEvents bu onSubtract As Bu on

Private WithEvents bu onMul ply As Bu on

Private WithEvents bu onDivide As Bu on

Private WithEvents bu onEquals As Bu on

Private WithEvents bu onClear As Bu on

Private WithEvents bu onDecimal As Bu on

Private textBoxDisplay As TextBox

Private operand1 As Double

Private operand2 As Double

Private opera on As Char

Private isOpera onPending As Boolean

Public Sub New()

Me.Text = "Calculator"

Me.Size = New Size(300, 400)

Me.StartPosi on = FormStartPosi on.CenterScreen


Ini alizeComponents()

End Sub

Private Sub Ini alizeComponents()

textBoxDisplay = New TextBox()

textBoxDisplay.ReadOnly = True

textBoxDisplay.Dock = DockStyle.Top

textBoxDisplay.Height = 50

textBoxDisplay.TextAlign = HorizontalAlignment.Right

Me.Controls.Add(textBoxDisplay)

Dim bu onLayout As New TableLayoutPanel()

bu onLayout.Dock = DockStyle.Fill

bu onLayout.RowCount = 5

bu onLayout.ColumnCount = 4

Me.Controls.Add(bu onLayout)

bu on0 = New Bu on()

bu on0.Text = "0"

bu onLayout.Controls.Add(bu on0, 0, 4)

bu on1 = New Bu on()

bu on1.Text = "1"

bu onLayout.Controls.Add(bu on1, 0, 3)

bu on2 = New Bu on()

bu on2.Text = "2"

bu onLayout.Controls.Add(bu on2, 1, 3)

bu on3 = New Bu on()

bu on3.Text = "3"

bu onLayout.Controls.Add(bu on3, 2, 3)

bu on4 = New Bu on()

bu on4.Text = "4"

bu onLayout.Controls.Add(bu on4, 0, 2)

bu on5 = New Bu on()

bu on5.Text = "5"
bu onLayout.Controls.Add(bu on5, 1, 2)

bu on6 = New Bu on()

bu on6.Text = "6"

bu onLayout.Controls.Add(bu on6, 2, 2)

bu on7 = New Bu on()

bu on7.Text = "7"

bu onLayout.Controls.Add(bu on7, 0, 1)

bu on8 = New Bu on()

bu on8.Text = "8"

bu onLayout.Controls.Add(bu on8, 1, 1)

bu on9 = New Bu on()

bu on9.Text = "9"

bu onLayout.Controls.Add(bu on9, 2, 1)

bu onAdd = New Bu on()

bu onAdd.Text = "+"

bu onLayout.Controls.Add(bu onAdd, 3, 4)

bu onSubtract = New Bu on()

bu onSubtract.Text = "-"

bu onLayout.Controls.Add(bu onSubtract, 3, 3)

bu onMul ply = New Bu on()

bu onMul ply.Text = "*"

bu onLayout.Controls.Add(bu onMul ply, 3, 2)

bu onDivide = New Bu on()

bu onDivide.Text = "/"

bu onLayout.Controls.Add(bu onDivide, 3, 1)

bu onEquals = New Bu on()

bu onEquals.Text = "="

bu onLayout.Controls.Add(bu onEquals, 2, 4)

bu onClear = New Bu on()

bu onClear.Text = "C"

bu onLayout.Controls.Add(bu onClear, 1, 4)
bu onDecimal = New Bu on()

bu onDecimal.Text = "."

bu onLayout.Controls.Add(bu onDecimal, 0, 4)

End Sub

Private Sub bu on_Click(sender As Object, e As EventArgs) Handles bu on0.Click, bu on1.Click, bu on2.Click,


bu on3.Click, bu on4.Click, bu on5.Click, bu on6.Click, bu on7.Click, bu on8.Click, bu on9.Click,
bu onAdd.Click, bu onSubtract.Click, bu onMul ply.Click, bu onDivide.Click, bu onEquals.Click,
bu onClear.Click, bu onDecimal.Click

Dim bu on As Bu on = CType(sender, Bu on)

Dim bu onText As String = bu on.Text

If bu onText = "C" Then

operand1 = 0

operand2 = 0

opera on = ""

isOpera onPending = False

textBoxDisplay.Text = ""

ElseIf bu onText = "+" Or bu onText = "-" Or bu onText = "*" Or bu onText = "/" Then

If Not isOpera onPending Then

operand1 = Double.Parse(textBoxDisplay.Text)

opera on = bu onText(0)

isOpera onPending = True

textBoxDisplay.Text = ""

End If

ElseIf bu onText = "=" Then

If isOpera onPending Then

operand2 = Double.Parse(textBoxDisplay.Text)

Dim result As Double

Select Case opera on

Case "+"

result = operand1 + operand2

Case "-"
result = operand1 - operand2

Case "*"

result = operand1 * operand2

Case "/"

If operand2 <> 0 Then

result = operand1 / operand2

Else

textBoxDisplay.Text = "Error"

Return

End If

End Select

textBoxDisplay.Text = result.ToString()

isOpera onPending = False

End If

Else

textBoxDisplay.Text += bu onText

End If

End Sub

End Class

Module Program

Sub Main()

Applica on.Run(New CalculatorForm())

End Sub

End Module
FIG:4.1
FIG:4.2
FIG:4.3

FIG:4.4
Actual Methodology Followed:
To develop ‘CALCULATOR’ online store using VB.Net.

I. Study the concept of VB.Net programming.


II. Study various syntax and functions of VB.Net.
III. Study to create Windows Form application.
IV. Study to connect Windows Form application to Database.
V. Study to create application to store and retrieve data from database.
VI. Make program for given criteria.
VII. Prepare the final report.

Actual Resources Used:

Front end resources:


In the provided code for a calculator GUI application in VB.NET, the front-end resources are the
graphical user interface (GUI) elements created using Windows Forms. These include buttons for
numbers (0-9), arithmetic operations (+, -, *, /), the equals sign (=), the clear button (C), and the
decimal point button (.). These buttons are arranged in a TableLayoutPanel to form the calculator
layout.

Back end resources:


The back-end resources include event handlers for the button clicks (button_Click method) and
variables to store the operands (operand1 and operand2), the current operation (operation), and a
flag to indicate if an operation is pending (isOperationPending). The back-end logic performs
arithmetic operations based on user input and updates the display accordingly.
Advantages & Disadvantages

Advantages:
1. Calculator can solve complicated problems quickly and in an efficient manner
2. Calculator gives more accurate results than counting manually
3. Calculator has all formulas for counting process and makes the counting process easier
4. Avoids the boredom in counting process
5. It can calculate cash that has been spent against the remaining money
6. It makes the counting process become faster than usual
7. Useful to convert the units of measurements

Disadvantages:
1.People will be so dependant on using calculators for counting
2.People will become 'lazy' because they already have a calculator for counting
3.Students will not know how to get the result of their questions
4.People will be unable to memorize the process of problem solving
5.Relying too much on calculator for counting can embarrass the users
6.Calculator limits the knowledge of the users
CONCLUSION
In this work we have developed a calculator for exact real number computation and performed a
theoretical analysis of the algorithms and experimented on their implementation.

We began by defining two representations of reals in the range [-1,1] using streams of digits.
These were then extended to represent real numbers on the whole real line using a (mantissa,
exponent) style representation. We showed how to convert between these representations, how to
convert decimal numbers into a signed binary representation, and how to convert a finite portion
of the signed binary representation back into decimal.

Algorithms for the basic arithmetic operations were implemented for these representations. A
number of different techniques are used to obtain these algorithms, including exploiting the
relationship between the list operation `cons' and numerical average, using certain identities, and
analysing of the range of possible values of a stream starting with a given digit or sequence of
digits.

We developed an algorithm for the direct multiplication of two streams of signed binary digit.
This is a more complex operation than the multiplication of dyadic digit streams, but avoids the
problem of dyadic digit swell which can be observed if the dyadic digit multiplication is used to
compute iterations of the logistic map, for example, and which can cripple performance.
REFERENCES
I. https://docs.microsoft.com/en-us/dotnet/framework/deployment/deployment- guide-for-
developers (20/07/2018)
II. https://www.safaribooksonline.com/library/view/programming-visual-
basic/0596000936/ch01s03.html (20/07/2018)
III. https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/program-
structure/namespaces (20/07/2018)
https://www.tutorialspoint.com//vb.net/vb.net_classes_objects.htm (20/07/2018)
IV. https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-
features/objects-and-classes/inheritance-basics(20/07/2018)
V. https://www.dotnetperls.com/r^ssagebox-show-vbnet(20/07/2018)
VI. http://www.visual-basic-tutorials.com/beginner/Message-Box-Dialog.(20/07/2018

You might also like