Thursday, September 20, 2007

We Were asked in clas to create a pay roll applictation that will take in hours worked for 2 weeks work. It also had to claculate the amount of over time pay that should be recieved if a person worked more than 40 hours per week. this rate of overtime was calculated at 1.2 times the usual rate of pay, which can be changed at any time.

We then ahd to do several extension to which i have managed to get the first 3 done.


1) Add a button which when clicked outputs a wage slip as a simple text file.
a. Try using Intellisense to insert the code for creating a text file (Edit >
Intellisense > Insert Snippet)
b. Something like: Streamwriter.(“wageslip.txt”,true)
2) Improve on this by creating a .html file instead of plain text (uses the same
process)
3) Have the program create a file using the employee name & current date as
part of the filename.
4) *Work out how to read in the employee timesheet data from a text / csv file*
5) **Implement this as a batch system (process a list of employee timesheet
records from a csv file.

If anyone has any idea how to do the last 2, please comment.

Wednesday, September 19, 2007

Pay Roll Questions

  1. All the different data types in the projet are:
  • Double
  • Decimal
  • String

2. Double means it is not an integer and does not have to be a whole number

Decimal means it is not a whole number and can be used in calculations

String is a line of charcators with no numerical value attached. they nust be converted to be used in calculations

3. As double is used because it may not be a whole number

Decimal is used because it more than likely will not be a whole number

String is used as it can hold any form of data type easily which can be converted in to numberical values if needed.

4. It is used to conver numerical charactors of string in to numerical values such as integers

5.Identifys the form that you are coding in.

6.If Then Else selection

7.If an result is true, then a set of code is carried out, if it is false, another differnet code is carried out.

8. This is an unfinished project as there is

  • No Tax taken off
  • Only one person can be added at a time
  • If you leave out a box, an error occurs

Tuesday, September 18, 2007

Visual Basic

Rite finially got Visual Basic up and running so now i can practice this stuff at home...and eventually get good at it..well thats the idea.

took 5 litterally 5 hours to install..so il post work 2moro

homework done in my "hardback book"
ps. im viewing this web page on my own browser haha..pathetic, i no

MindMap Chapter 37

Here is a mind map of the key features in Chapter 37 of out text book on High Level Languages.

Reasons for using this method are :



  1. Easy Resvision

  2. Clearly set out key points

  3. No long donting paragraphs

Thursday, September 6, 2007

Hyperlinks

In this capter i learned how to creat a hyperlink to ether a new wab site or to a place in the current web site.


link to a new web page.

This is simply done using the syntax:

href="url">Text to be displayed with an anchor of <>



To make the new site open in a new window you use the synatx:

target="_blank"



this is the syntax that i have used in my own website so far:

Tuesday, September 4, 2007

HTML Basics


This is the first of a series of basic HTML notes. Heres some keynotes of what i have learned so far.



  1. A HTML file must befig with and end with

  2. The brackets used are called angle brackets. These are then called tags when thay contain text or commands.

  3. An HTML file muct be saved as .html.




This is an example of some of the work that i have done recently. I have complied a webite of some of the features that i have learned to date. these include headings, background colour, bold writing, subscript and superscript text. I have also used 2 seperate types of paragraphs.









In my next post i will detail hyperlinks and tables











Monday, September 3, 2007

today in class - 3rd sept

today we were introduced to w3schools.com...a site to help learn programming languages. we were told to revise beginers HTML and advanced HTML for a test on fri. we were also set a homework to write a letter to Mr Barr about how thankful we will be wen we pass A-level computing with an A grade.

A2 computing

MY FIRST BLOGG

over