Text
print "welcome"x = raw_input("What is your name?")
print x
NumbersCombining Strings
start = "Hello, "
name = input("What is your name? ")
end = ". How are you today?"
sentence = start + name + end
Mixing Variablesprint "Welcome"
c = input("How many calories have you eaten today?")
s = 2000 -c
print "You can eat", s, "calories today"
Numbers
Selection
Anotações:
IF Statements
x = input ("Please enter a number")
if x > 500 :
print "Big number"
elifx > 250 :
print "medium number"
else:
print "small number"
Loops (Iteration)
Anotações:
For Loops
for iin range (3) :
print "I know a song that will get on your nerves"
print "And it goes like this..."
While Loops
times_printed= 3
while times_printed> 0 :print "I know a song that will get on your nerves"times_printed= times_printed-1print "and it goes like this…"
Selection variables
Anotações:
Combining Strings
start = "Hello, "
name = input("What is your name? ")
end = ". How are you today?"
sentence = start + name + end
Mixing Variablesprint "Welcome"
c = input("How many calories have you eaten today?")
s = 2000 -c
print "You can eat", s, "calories today"
What is a computer system?
Computer system
Anotações:
Computers have changed almost every aspect of our lives.
Computer systems are everywhere and sometimes we don’t even know it.
Think about where computer systems exist in your own home.
Features of a computer system
Anotações:
Computer systems have some common features.
Input means that a computer system takes data, usually in a form humans can understand and turns it into data computers can use.
Output means that a computer system turns data from a computers understand and convert it into a form humans can understand, such as sounds or images.
Process means taking data and using it. This may mean using it in calculations or helping it make decisions.
Storage stores data that is in a form computers understand so it can be used later. Stored data does not need to be input again.
Computers and the Law: The computer misuse act
The Law
Anotações:
THE LAW
The Computer Misuse Act 1990 was designed to protect the integrity of computer systems by deterring the activities of hackers. It created three new offences:
Unauthorised access to computer programs or data (£5000 fine or 6 months in prison)
Unauthorised access with a further criminal intent (known as the ‘ulterior intent’ offence) (Up to 5 years in prison)
Unauthorised modification of computer material. (Up to 5 years in prison)
Famous for hacking
Anotações:
Mark Zuckerberg
Kevin Mitnick
Gary McKinnon
Anonymous
LulzSec -Topiary
Computer Ethics
What are Ethics?
Anotações:
Ethics are a moral code for what is right and wrong.
In many cases these ethics are also enforced by law, but sometimes they are not.
Loyalty Cards
Anotações:
In USA a large super store chain used loyalty cards to track purchases of its customers in order to market to them more effectively.
One data analyst found he could predict which one the female customers were pregnant based on purchases and even predict when they would give birth.
This was used to market to prospective mothers.
Many women felt this was a breach of their privacy.
IT Professionals
Anotações:
Professionals should not undertake work that is out of their competence.
Professionals should work for the public interest. If a situation arises were the client interest is above the public interest then you should have to consider why? For example an app developer may be asked to create a game that snoops web browsing data for the client to sell to advertisers. As this is done without permission is unethical.
IT professionals need to make sure they only look at the parts of a client’s IT system that they are responsible for.
Computers and the Law: Copyright and Patients
Copyright
Anotações:
When you create something, such as a document, music, image or video, it is yours and you should have the right to say who can use it and how.
This is what is meant by copyright.
The same law applies to you when you see work by other people online.
With digital technology it is often incredibly easy to copy data, whether this is an image, music file, film or program.
The person or company that created the media owns the copyright. Copying data with out their permission is against the law.
COPYRIGHT
Does it hurt anyone?
Anotações:
Most Musicians do not earn millions like the biggest artists do.
A great deal of smaller artists may even have normal day jobs. They are not all living the pop star life style.
Movies and games cost millions of pounds to create and market. If that project does not make a profit then it puts at risk future projects.
It has been recently reported that the average author earns around £11,000 a year.