Sunteți pe pagina 1din 11

ABOUT PROGRAMMING{

Programming isnt an easy thing to do. It takes


years to learn and even then you still dont know
everything and make the dumbest mistakes.
So why learn how to program ? Programming
develops your mind , your creativity , and helps
you solve problems human mind alone cannot
even begin to comprehend and because

computers are a big part of our daily routine!

};

Why these techniques?{


Video : it can be seen over and over again till it
is fully understood.
Presentation : so that people will benefit from
some things here because they will know what
they should be waiting for.
Website : people can visit when they have
questions , ask for help or for marking ones
knowledge so far , take tests , learn from the
results ,watch tutorials and find new material .
Both our video ,our presentation and our website
are here : www.programo.weebly.com };

TUTORING OBJECTIVES{
Read&Print!
Variables!
The use of looping structures!
Differences between looping structures!
The use of selection structures!};
// And thats for
beginning;)

Read&Print{

When we need to read something from


the keyboard we use scanf.
Ex. Int x;
scanf(%d,&x); and x will take the value
we pressed
If we want to print something we use
ptintf!
Ex.int x=10;
printf(%d,x); and 10 will be seen in our
screen

VARIABLES{

//int

Variables are important because you and the


others will know exactly what was measured and
how!
Because this effort is addressed to students of 2 nd
grade of high school we will only talk about the
int
variable.
Int stands for integers !!! //int contains 16 bytes*(for after)
Ex. Int x; Ex int x =10; Ex int x; scanf(%d , &x);
Each variable must have the appropriate type! };

DIFFERENTIAL looping{//while- do
while
While(condition)
{code}

In this loop we could


be shut off right from
the 1st condition!
Loops continue as long
as the condition is
true!
Loops stop when the
condition is false!
The check is done 1st !

Do{ code}while(condi
tion);
In this loop, there will
be at least one
entrance!
Loops continue as long
as the condition is
false!
Loops stop when the
condition is true!
The check is done
last!

Few thing about

FOR

Both while and do_while are used for


unknown amount of repeats.
For known amount of repeats we use for
|for(i=x;i<j;i++);|
For is where most make a never ending loop.
For is mostly used in coordinate with arrays.
//For printing messages better use
While*};

SELECTION STRUCTURES!
{decisions
//if
When we want to male
based on a

condition we use the f structure.


Based on the conditions there is :

-Single-alternative selection structure


Ex if(condition){
code}

- Dual-alternative selection structure


Ex. if(condition){
code}
else{
code}

-Case selection structure (for afters)*};

EVALUATION{

//test_time

What we learned today is merely a


small fraction of what lies ahead of c
and mainly programming. What we
did was quite easy and the few
things we learned must not be
forgotten. So the test that is
uploaded in our website must be
quite easy to solve. Thus the
evaluation is going to be fair and
righteous!};

SO FAR {
We learned a few things about selection
and looping structures , also one thing or
two about variables ,how to read and print
only integers from our keyboard and we
will be tested using the evaluation test on
the website so we know were we stand!

// If I have seen a little farther than others, it is because I


have stood on the shoulders of giants. };

Bye Bye == Sayonara


Printf (THANK YOU FOR YOUR TIME);

Printf(THE END);
return 0;
}

S-ar putea să vă placă și