Halloween party ideas 2015


SIMPLE INTEREST CALCULATOR

Below is the interface of the calculator:




TOOL
CAPTION
NAME
Label1
Enter principal
Label1
Label2
Enter rate
Label2
Label3
Enter time
Label3
Label4

lblResult
Textbox1

txtPrincipal
Textbox2

txtRate
Textbox3

txtTime
Command1
Compute
cmdCompute
Command2
Reset
cmdReset

Below are the code:

Dim principal As Double
Dim rate As Double
Dim time As Double
Dim interest As Double

Private Sub cmdcompute_Click()
principal = Val(txtprincipal.Text)
rate = Val(txtrate.Text) / 100
time = Val(txttime.Text)

interest = (p * r * t) / 100
lblresult.Caption = interest
End Sub

Private Sub cmdreset_Click()
txtprincipal.Text = " "
txtrate.Text = " "
txttime.Text = " "
lblresult.Caption = " "
End Sub
at the first step, we declare our variable using dim and give it a data type double. double has decimal point.
In the second step, we assign our variable to text box and calculate them and also display the result in lblresult (label4)

caption is the name that appear on the form.



<doctype html>
<html>
<head>
            <title>my first web page</title>
</head>
<body>
<h1> this is my first web page</p>
                        <p>the function of this tag is paragraph</p>
                        <marquee>I love this page</marquee>
</body>
</html>

where h1 is the our heading and p is our paragraph.
copy this code to any text editor either notepad, sublime, or notepad++.
save the file name with html extension e.g web.html.
marquee in a moving text or image. once you add marquee your text will start moving.

tag is the opening and closing angle bracket < >.
element is every i.e the tag and what is between it e.g <h1>my first web</p>\

TYPE OF TAG
  1. container tag 
  2. self closing tag
container tag are tag that have opening and closing tag e.g <p> and</p >.
self closing tag are tag that stand on their own e.g <meta/>

note: every tag that is open must be close.

Some basic html tags
  1.  <h1> to <h6> headings
  2. <p> paragrah
  3. <br> break: used to break to another line
  4. <b> bold
  5. <u> under line
  6. <i> italics
  7. <em> emphasis: make text italics inline
  8. <strong> bold: used to bold  character inline
  9. <hr> horizontal: draw horizontal line
  10. <a> anchor: used when you want link to page
  11.  <sup> superscript
  12. <sub> subscript
  13. <abbr> abbreviation: used when you want abbreviate word
  14. <ul> unorder list
  15. <ol> ordered list
  16. <li> list
  17. <q> used for block quotation
  18. <blockquote> used for inline quotation
  19. <cite> indicate site
  20. <dfn> used when new word is introduced
  21. <address> used when you want to put your email address
  22. <ins> underline selected word
  23. <del> cancel unwanted text
  24. <s> cancel text that are block
  25. <dl> definition list
  26. <dt> definition terms
  27. <dd>

Basic HTML Template

<doctype html>
<html>
<head>
            <title>my first web page</title>
</head>
<body>
</body>
</html>

Doctype: tell the browser the type of document you used; in this case we you used html document
html: hyper markup language.
head: title is a child of head. there are some certain element element that only function on the head tag  e.g <script> tag,<meta> tag etc.
title: is the title of the page. the name that appear on your browser tag.
body: every other thing will be done within the body tag.
Powered by Blogger.