mini project (autosaved) ashish

Upload: ankur-kadaskar

Post on 08-Apr-2018

231 views

Category:

Documents


1 download

TRANSCRIPT

  • 8/7/2019 mini project (Autosaved) ashish

    1/18

    Certificate

    Project Report on

    FFuunn SSooffttwwaarree FFoorr kkiiddsssubmitted By

    Ashish Nilawar Roll No. 08

    Sagar Jamgade Roll No. 02

    Pavan Harkar Roll No. 17

    Rushikesh Gangatre Roll No. 15

    Mustakim Jiwani Roll No.07

    Under the Supervison of

    ..

    For the Subject

    In Academic Year: 2010-11

    This is certify that Mr....has completed the project work

    during Diploma and the Report embodies the result of work. It is therefore and

    forwarded for submission

    .Mr. Prof. Wankhede SirDept of: Computer Engg.

  • 8/7/2019 mini project (Autosaved) ashish

    2/18

    AACCKKNNOOWWLLEEDDGGEEMMEENNTT

    would like to thank everyone who helped to see this project to

    completion. In particular, I would like to thank my project guide Mr.

    Prof. Wankhede Sir. for her moral support and guidance to complete my

    Project on time. I express my gratitude to all my friends and classmates for

    their support and help in this mini project.

    Last, but not the least I wish to express my gratitude to God almightyfor his abundant blessings without which this mini project would not have

    been successful.

    I

  • 8/7/2019 mini project (Autosaved) ashish

    3/18

    CCOONNTTEENNTTSSTTiittlleeIInnttrroodduuccttiioonnCCooddiinnggOOuuttppuuttRReeffeerreennccee

  • 8/7/2019 mini project (Autosaved) ashish

    4/18

    FFuunn SSooffttwwaarree ffoorr KKiiddssuussiinngg VVBB..nneett

  • 8/7/2019 mini project (Autosaved) ashish

    5/18

    IInnttrroodduuccttiioonn

    VB.NET PROJECTS contains six programs you can use at home. The programs illustrateadvanced uses of VB.NET. Topics covered include using the Windows API for timing and

    sounds, input validation, printing, using multiple forms, graphics, and working with

    sequential files. This free product has the actual source code for VB.NET PROJECTS that you

    can study and modify, as you desire. You should be able to understand this code if you have

    completed our LEARN VISUAL BASIC course. We will soon offer a LEARN VB.NET tutorial.

    Check our website for all of our tutorials.

    The programs included with VB.NET PROJECTS are:

    STOPWATCH - A dual-mode stopwatch

    LOAN CALCULATOR - A program that lets you compute loan repayments

    GAS MILEAGE - Track your car's gas mileage performance

    BIORHYTHMS - Compute your body's natural rhythms

    MEMORY GAME - A fun game for the whole family

    ONE-ARMED BANDIT - A slot machine simulation

    We hope you have fun and learn from each of these programs.

  • 8/7/2019 mini project (Autosaved) ashish

    6/18

    MMIINNII SSOOFFTTWWAARREE

    SSTTOOPPWWAATTCCHH::

    This program is an implementation of a computer stopwatch. Selecting STOPWATCH from

    the VB.NET PROJECTS menu screen starts the program.

    The STOPWATCH form has two time displays and three command buttons. The stopwatch is

    started by clicking 'Start' and stopped by clicking 'Stop'. You may start and stop the

    stopwatch as many times as you like. The top displayed time shows the amount of time the

    stopwatch is 'running.' The bottom displayed time shows the amount of time that has

    elapsed since 'Start' was first clicked. You reset the displayed values by clicking 'Reset' and

    exit the program by clicking 'Exit' (you are returned to the VB.NET PROJECTS main menu).

    LLOOAANN CCAALLCCUULLAATTOORR

    This program lets you see just how much a consumer loan is costing you. Selecting LOAN

    CALCULATOR from the VB.NET PROJECTS menu screen starts the program.

    The LOAN CALCULATOR form uses text boxes to obtain loan information. You input the

    'Loan Amount', the 'Yearly Interest', and the 'Number of Months' you take to pay back the

    loan. Click 'Compute Payment' to see the 'Monthly Payment'. At this point, you may input

    values for another loan or click 'Print Repayment Schedule' to obtain a month-by-monthaccounting on the loan as it is repayed. Click 'Exit' to stop the program and return to the

    VB.NET PROJECTS main menu.

    In this project, you learn key trapping using the text box KeyPress event, how to use

    message boxes to validate entries, and how to do printing from VB.NET (one of the more

    tedious tasks).

  • 8/7/2019 mini project (Autosaved) ashish

    7/18

    GGAASS MMIILLEEAAGGEE

    This program provides a way for you to track the gas mileage of your vehicles. Selecting GAS

    MILEAGE from the VB.NET PROJECTS menu screen starts the program.

    The GAS MILEAGE program provides several options. A text box is used to display a

    particular car's mileage record (displaying input dates, odometer readings, gas pumped and

    mileage readings). All information is stored on sequential files. To start a new file, click

    'New'. To open an existing file, click 'Open' and choose the desired file. The file will open

    and the record will be displayed. To save the current information, click 'Save' and provide a

    filename. To exit the program and return to the VB.NET PROJECTS menu scrren, click 'Exit'.

    To add a new entry to the displayed information, click 'Add New Entry'. A frame will appear

    to allow the new entry. You input the date, the odometer reading and the gallons pumped.

    Click 'Add Entry' to add the information to the current display. Add as many entries as you

    like. Click 'Done' when done adding entries. To see a plot of your mileage (both Recent,

    mileage since last entry, and Overall, mileage since first entry), click 'Plot Gas Mileage'. A

    separate form displaying the plot will appear. Click 'Done' to hide the plot form and return

    to the GAS MILEAGE program.

    BBIIOORRHHYYTTHHMMSS::

    MMaannyy ppeeooppllee tthhiinnkk tthhee bbooddyy ggooeess tthhrroouugghh tthhrreeee ccyycclleess ((pphhyyssiiccaall,, eemmoottiioonnaall,, aanndd

    iinntteelllleeccttuuaall)) ffrroomm bbiirrtthh.. TThhiiss pprrooggrraamm lleettss yyoouu vviieeww tthheessee ccyycclleess.. SSeelleeccttiinngg BBIIOORRHHYYTTHHMMSS

    ffrroomm tthhee VVBB..NNEETT PPRROOJJEECCTTSS mmeennuu ssccrreeeenn ssttaarrttss tthhee pprrooggrraamm..

    TThhee pprrooggrraamm rreeqquuiirreess aa bbiirrtthh ddaattee aanndd aa bbiioorrhhyytthhmm ddaattee.. EEaacchh ddaattee iiss iinnppuutt uussiinngg ssccrroollll

    bbaarrss.. TThhee pprrooggrraamm ccoommppuutteess tthhee nnuummbbeerr ooff ddaayyss bbeettwweeeenn tthheessee ttwwoo ddaatteess aanndd ddiissppllaayyss

    tthhaatt vvaalluuee iinn ''DDaayyss SSiinnccee BBiirrtthh''.. TThhee pprrooggrraamm aallssoo ddiissppllaayyss tthhee rreellaattiivvee vvaalluuee ooff tthhee tthhrreeee

    bbiioorrhhyytthhmm ccyycclleess iinn aa bbaarr cchhaarrtt ((HHiigghh iiss ggoooodd,, LLooww iiss bbaadd,, oorr ssoo tthheeyy ssaayy)).. AAss yyoouu cchhaannggee

    eeiitthheerr ddaattee,, tthhee ddiissppllaayyeedd iinnffoorrmmaattiioonn cchhaannggeess.. TThheerree aarree lloottss ooffbbooookkss aabboouutt bbiioorrhhyytthhmmss..

    YYoouu mmiigghhtt lliikkee ttoo rreeaadd aabboouutt tthheemm.. TToo rreettuurrnn ttoo tthhee VVBB..NNEETT PPRROOJJEECCTTSS mmeennuu ssccrreeeenn,, cclliicckk

    ''EExxiitt''..

  • 8/7/2019 mini project (Autosaved) ashish

    8/18

    MMEEMMOORRYY GGAAMMEE

    A favorite game of many is 'Concentration' where you remember where pairs of items are

    hidden. This program is a computer version of such a game. Selecting MEMORY GAME

    from the VB.NET PROJECTS menu screen starts the program.

    Sixteen boxes are shown. Behind these boxes are eight pairs of fruits (bananas, apples,

    oranges, grapes, cherries, plums, pears and lemons). Click on a box to see what is hidden.

    Click on a second box. If there is a match, a cute sound plays and the fruits remain. If thereis no match, an 'uh-oh' is heard and the boxes return to the screen. Continue searching

    until all matches are found, or click 'Stop' to stop before finding all the fruits. You may start

    a new game by clicking 'New Game' or return to the VB.NET PROJECTS menu by clicking

    'Exit'.

    OONNEE--AARRMMEEDD BBAANNDDIITT

    This is a simulation of a Vegas-style slot machine. It shows how easy it is to write such

    programs and how easy it is to rig the odds to whatever you want. Selecting ONE-ARMED

    BANDIT from the VB.NET PROJECTS menu screen starts the program.

    The program screen shows three displayed pictures. Click 'Spin It' to spin the pictures. Each

    picture stops in sequence. The amount won (if you win) depends on the displayed pictures.

    Three in a row always wins (with the Star being a Jackpot). A single, double or triple cherryalways wins something too. The title in the frame shows how much you have in your

    Bankroll (you start with $100). Click 'Exit' to stop and return to the VB.NET PROJECTS menu

    screen.

  • 8/7/2019 mini project (Autosaved) ashish

    9/18

    CCooddiinnggOptionExplicitOnOptionStrictOn

    PublicClass frmMenuInherits System.Windows.Forms.Form

    #Region" Windows Form Designer generated code "

    PublicSubNew()MyBase.New()

    'This call is required by the Windows Form Designer.InitializeComponent()

    'Add any initialization after the InitializeComponent() call

    EndSub

    'Form overrides dispose to clean up the component list.ProtectedOverloadsOverridesSub Dispose(ByVal disposing AsBoolean)

    If disposing ThenIfNot (components IsNothing) Then

    components.Dispose()EndIf

    EndIfMyBase.Dispose(disposing)

    EndSubFriendWithEvents btnStopWatch As System.Windows.Forms.ButtonFriendWithEvents btnExit As System.Windows.Forms.Button

    FriendWithEvents btnBiorhythms As System.Windows.Forms.ButtonFriendWithEvents btnMemory As System.Windows.Forms.ButtonFriendWithEvents btnBandit As System.Windows.Forms.ButtonFriendWithEvents btnMileage As System.Windows.Forms.ButtonFriendWithEvents btnLoan As System.Windows.Forms.ButtonFriendWithEvents PictureBox1 As System.Windows.Forms.PictureBox

    'Required by the Windows Form DesignerPrivate components As System.ComponentModel.Container

    'NOTE: The following procedure is required by the Windows Form Designer'It can be modified using the Windows Form Designer.'Do not modify it using the code editor.

    PrivateSubInitializeComponent()

    Dim resources As System.ComponentModel.ComponentResourceManager =New System.ComponentModel.ComponentResourceManager( GetType(frmMenu))

    Me.btnExit = New System.Windows.Forms.ButtonMe.btnMileage = New System.Windows.Forms.ButtonMe.btnLoan = New System.Windows.Forms.ButtonMe.btnStopWatch = New System.Windows.Forms.ButtonMe.btnMemory = New System.Windows.Forms.ButtonMe.btnBandit = New System.Windows.Forms.ButtonMe.btnBiorhythms = New System.Windows.Forms.ButtonMe.PictureBox1 = New System.Windows.Forms.PictureBoxCType(Me.PictureBox1,

    System.ComponentModel.ISupportInitialize).BeginInit()Me.SuspendLayout()

  • 8/7/2019 mini project (Autosaved) ashish

    10/18

    ''btnExit'Me.btnExit.BackColor = System.Drawing.SystemColors.ControlMe.btnExit.Location = New System.Drawing.Point(352, 168)Me.btnExit.Name = "btnExit"

    Me.btnExit.Size = New System.Drawing.Size(75, 23)Me.btnExit.TabIndex = 2Me.btnExit.Text = "Exit"Me.btnExit.UseVisualStyleBackColor = False''btnMileage'Me.btnMileage.BackColor = System.Drawing.Color.RedMe.btnMileage.Font = New System.Drawing.Font("Microsoft Sans

    Serif", 12.0!, System.Drawing.FontStyle.Bold,System.Drawing.GraphicsUnit.Point, CType(0, Byte))

    Me.btnMileage.ForeColor = System.Drawing.Color.YellowMe.btnMileage.Location = New System.Drawing.Point(208, 112)

    Me.btnMileage.Name = "btnMileage"Me.btnMileage.Size = New System.Drawing.Size(176, 40)Me.btnMileage.TabIndex = 1Me.btnMileage.Text = "Gas Mileage"Me.btnMileage.UseVisualStyleBackColor = False''btnLoan'Me.btnLoan.BackColor = System.Drawing.Color.RedMe.btnLoan.Font = New System.Drawing.Font("Microsoft Sans Serif",

    12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,CType(0, Byte))

    Me.btnLoan.ForeColor = System.Drawing.Color.YellowMe.btnLoan.Location = New System.Drawing.Point(208, 64)Me.btnLoan.Name = "btnLoan"Me.btnLoan.Size = New System.Drawing.Size(176, 40)Me.btnLoan.TabIndex = 1Me.btnLoan.Text = "Loan Calculator"Me.btnLoan.UseVisualStyleBackColor = False''btnStopWatch'Me.btnStopWatch.BackColor = System.Drawing.Color.RedMe.btnStopWatch.Font = New System.Drawing.Font("Microsoft Sans

    Serif", 12.0!, System.Drawing.FontStyle.Bold,System.Drawing.GraphicsUnit.Point, CType(0, Byte))

    Me.btnStopWatch.ForeColor = System.Drawing.Color.YellowMe.btnStopWatch.Location = New System.Drawing.Point(208, 16)Me.btnStopWatch.Name = "btnStopWatch"Me.btnStopWatch.Size = New System.Drawing.Size(176, 40)Me.btnStopWatch.TabIndex = 1Me.btnStopWatch.Text = "Stopwatch"Me.btnStopWatch.UseVisualStyleBackColor = False''btnMemory'Me.btnMemory.BackColor = System.Drawing.Color.RedMe.btnMemory.Font = New System.Drawing.Font("Microsoft Sans Serif",

    12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,CType(0, Byte))

    Me.btnMemory.ForeColor = System.Drawing.Color.YellowMe.btnMemory.Location = New System.Drawing.Point(392, 64)

  • 8/7/2019 mini project (Autosaved) ashish

    11/18

    Me.btnMemory.Name = "btnMemory"Me.btnMemory.Size = New System.Drawing.Size(176, 40)Me.btnMemory.TabIndex = 1Me.btnMemory.Text = "Memory Game"Me.btnMemory.UseVisualStyleBackColor = False'

    'btnBandit'Me.btnBandit.BackColor = System.Drawing.Color.RedMe.btnBandit.Font = New System.Drawing.Font("Microsoft Sans Serif",

    12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,CType(0, Byte))

    Me.btnBandit.ForeColor = System.Drawing.Color.YellowMe.btnBandit.Location = New System.Drawing.Point(392, 112)Me.btnBandit.Name = "btnBandit"Me.btnBandit.Size = New System.Drawing.Size(176, 40)Me.btnBandit.TabIndex = 1Me.btnBandit.Text = "One-Armed Bandit"Me.btnBandit.UseVisualStyleBackColor = False

    ''btnBiorhythms'Me.btnBiorhythms.BackColor = System.Drawing.Color.RedMe.btnBiorhythms.Font = New System.Drawing.Font("Microsoft Sans

    Serif", 12.0!, System.Drawing.FontStyle.Bold,System.Drawing.GraphicsUnit.Point, CType(0, Byte))

    Me.btnBiorhythms.ForeColor = System.Drawing.Color.YellowMe.btnBiorhythms.Location = New System.Drawing.Point(392, 16)Me.btnBiorhythms.Name = "btnBiorhythms"Me.btnBiorhythms.Size = New System.Drawing.Size(176, 40)Me.btnBiorhythms.TabIndex = 1Me.btnBiorhythms.Text = "Biorhythms"Me.btnBiorhythms.UseVisualStyleBackColor = False''PictureBox1'Me.PictureBox1.InitialImage =

    CType(resources.GetObject("PictureBox1.InitialImage"),System.Drawing.Image)

    Me.PictureBox1.Location = New System.Drawing.Point(12, 16)Me.PictureBox1.Name = "PictureBox1"Me.PictureBox1.Size = New System.Drawing.Size(154, 143)Me.PictureBox1.TabIndex = 3Me.PictureBox1.TabStop = False''frmMenu'Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)Me.BackColor = System.Drawing.Color.FromArgb(CType(CType(192,

    Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte),Integer))

    Me.ClientSize = New System.Drawing.Size(588, 255)Me.Controls.Add(Me.PictureBox1)Me.Controls.Add(Me.btnLoan)Me.Controls.Add(Me.btnMileage)Me.Controls.Add(Me.btnBandit)Me.Controls.Add(Me.btnMemory)Me.Controls.Add(Me.btnBiorhythms)Me.Controls.Add(Me.btnExit)

    Me.Controls.Add(Me.btnStopWatch)

  • 8/7/2019 mini project (Autosaved) ashish

    12/18

    Me.FormBorderStyle =System.Windows.Forms.FormBorderStyle.FixedSingle

    Me.Name = "frmMenu"Me.StartPosition =

    System.Windows.Forms.FormStartPosition.CenterScreenMe.Text = "VB.NET Projects"

    CType(Me.PictureBox1,System.ComponentModel.ISupportInitialize).EndInit()Me.ResumeLayout(False)

    EndSub

    #EndRegion

    PrivateSub btnExit_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles btnExit.Click

    Me.Close()EndSub

    PrivateSub btnStopWatch_Click(ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles btnStopWatch.ClickDim frmStopWatch AsNew frmStopwatch()frmStopWatch.Show()

    EndSub

    PrivateSub frmMenu_Load(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) HandlesMyBase.Load

    Me.CenterToScreen()EndSub

    PrivateSub btnBiorhythms_Click(ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles btnBiorhythms.Click

    Dim frmBio AsNew frmBio()frmBio.Show()

    EndSub

    PrivateSub btnMemory_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles btnMemory.Click

    Dim frmMemory AsNew frmMemory()frmMemory.Show()

    EndSub

    PrivateSub btnBandit_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles btnBandit.Click

    Dim frmBandit AsNew frmBandit()frmBandit.Show()

    EndSub

    PrivateSub btnMileage_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles btnMileage.Click

    Dim frmMileage AsNew frmMileage()frmMileage.Show()

    EndSub

    PrivateSub btnLoan_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles btnLoan.Click

    Dim frmLoan AsNew frmLoan()frmLoan.Show()

    EndSub

  • 8/7/2019 mini project (Autosaved) ashish

    13/18

    PrivateSub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVale As System.Windows.Forms.LinkLabelLinkClickedEventArgs)

    Diagnostics.Process.Start("http://www.kidwaresoftware.com" )EndSub

    PrivateSub RichTextBox1_TextChanged(ByVal sender As System.Object,

    ByVal e As System.EventArgs)M()EndSub

    PrivateSub Label1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs)

    EndSub

    PrivateSub TextBox1_TextChanged(ByVal sender As System.Object, ByVal eAs System.EventArgs)

    EndSub

    EndClass

  • 8/7/2019 mini project (Autosaved) ashish

    14/18

    Ou tput

  • 8/7/2019 mini project (Autosaved) ashish

    15/18

  • 8/7/2019 mini project (Autosaved) ashish

    16/18

  • 8/7/2019 mini project (Autosaved) ashish

    17/18

  • 8/7/2019 mini project (Autosaved) ashish

    18/18

    RREEFFEERREENNCCEESSWeb Support:

    www.Thinkdigit.com www.Wikipedia.org www.sourcecodeworld.com Sourcecodeonline.com

    Text Support:

    Advance Web Technology_by Yogesh kapure [Techmax publications]

    http://www.thinkdigit.com/http://www.thinkdigit.com/http://www.wikipedia.org/http://www.wikipedia.org/http://www.sourcecodeworld.com/http://www.sourcecodeworld.com/http://www.sourcecodeworld.com/http://www.wikipedia.org/http://www.thinkdigit.com/