iPhone 5 puts Galaxy S3 in its place

You will find a lot of Android owners explaining why the Samsung Galaxy S3 is better than Apple’s phone, although the iPhone 5 is expected to put Samsung’s flagship phone in its place over the next year. In terms of sales the iPhone 5 is predicted to shift over 250m units in total, and this is compared to 50m for the Galaxy S3, which only confirms that no single smartphone can compete with the iPhone.
iPhone 5 puts Galaxy S3 in its place

Apple freezes over-the-phone password resets

The hack performed against Wired writer Mat Honan serve as a cautionary tale for others to ensure they back up their data, but what about the security issues found with the companies that helped facilitate the crime? Amazon fixed its own security hole yesterday, and now Apple has blocked customer service representatives from issuing password changes over the phone for Apple IDs.

According to an Apple employee that spoke to Wired, the company has placed a 24 hour freeze on any new over-the-phone password changes in order to give the team more time to think about and implement new security measures. When Wired once again tried to duplicate the social engineering used against Apple customer service representatives, they were told that the systems were prevented from resetting passwords, and that users had to do so via Apple’s website instead.
There’s still no official comment from Apple regarding the freeze, however, and it’s not yet clear what the company intends to do to prevent similar situations from occurring in the future. Amazon quietly fixed its own security issue yesterday, with a new policy in place that prevents callers from simply provided a name, email address, and home address to gain access to an account.
The hacker who reset Honan’s various Apple devices first went after his Amazon account, providing the easily gathered information to customer service representatives over the phone in order to gain access. Once he managed that, the last four digits of Honan’s credit card were displayed in his account, information that Apple representatives happily accepted as proof as identity, allowing the individual to perform a password reset and gain access to the iCloud account

Count no. of students above,below and average students

  #include<stdio.h>
  #include<conio.h>
   void main()
    {
     int a[10];
     int aa=0,ba=0,ae=0,i;
     clrscr();
     printf("Enter the marks:\n");
     for(i=0;i<10;i++)
       {
scanf("%d",&a[i]);
if(a[i]>55)
aa++;
else if(a[i]<55)
ba++;
else
ae++;
       }
     printf("No. OF AVG STUDENTS ARE:%d\n",ae);
     printf("No. OF ABOVE AVERAGE STUDENTS:%d\n",aa);
     printf("No. OF BELOW AVERAGE STUDENTS ARE:%d",ba);
    getch();
   }

Misplaced modifiers


A modifier is a word or a phrase that describes something else. You should place it as close as possible to what it describes. If you don't, your intended meaning may not be clear. Consider the unintentional meanings in the following:
  • The young girl was walking the dog in a short skirt.
  • The dog was chasing the boy with the spiked collar.
You can see what's wrong. The dog isn't "in a short skirt" and the boy doesn't have a "spiked collar." Because the modifier is misplaced, we have to think for a minute before we get the intended meaning. The correct versions are:
  • The young girl in a short skirt was walking the dog.
  • The dog with the spiked collar was chasing the boy.
See how the proper placement clarifies the meaning?
You also need to watch the placement of modifiers such as almost, even, hardly, nearly, often, and only. A couple of examples should be enough:
  1. Big Dog almost ran around the yard twenty times.
  2. He nearly ate a whole box of treats.
In both sentences--when he "almost ran" and "nearly ate"--nothing happened! He didn't quite get around to doing either thing. What is intended is:
  1. Big Dog ran around the yard almost twenty times.
  2. He ate nearly a whole box of treats

Parallelism


To get across ideas of equal value or to create snazzy sentences, use parallel sentence structure. Good sentences attempt to form parallel patterns. Without this parallel structure, they can sound stilted and awkward. For instance, which sentence sounds better below?
 
(1) King Alfred tried to make the law clear, precise, and equitable.
(2) King Alfred tried to make clear laws that had precision and were equitable.
Most people would argue that the first sentence somehow "sounds better" than the second. The first sentence uses parallel structure in its adjectives. The second doesn't. If we label the parts of speech, the first sentence has this grammatical structure after the word law: [Adjective--Adjective--Adjective]. The second sentence has this grammatical structure after the word laws: [Relative Pronoun--Verb-- Direct Object--Conjunction--Verb--Adjective]. The first sentence has a clear pattern of adjective, adjective, adjective. The second sentence has no pattern at all!
To hear the difference between a parallel and non-parallel sentence, read aloud the sentences below. The red sentences are examples of "bad" or faulty parallelism. The blue sentences use parallel structure.
faulty parallelism: She revels in chocolate, walking under the moonlight, and songs from the 1930s jazz period.
good parallelism: She revels in sweet chocolate eclairs, long moonlit walks, and classic jazz music.
more good parallelism: She loves eating chocolate eclairs, taking moonlit walks, and singing classic jazz.
Do you hear the difference? What causes that distinction between "good" and "bad" sentences? Again, the difference appears in the pattern of grammar. If we dissect the sentence, the faulty sentence on top has a grammatical pattern that looks like this:
"She revels in . . . "
"chocolate," [Object of Preposition,]
"walking under the moonlight," [Gerund--Preposition--Definite Article--Object of Preposition]
"and songs from the 1930s jazz period." [Conjunction--Direct Object--Preposition--Definite Article--Adjective --Adjective--Object of Preposition]
It's all a jumbled mess of different parts of speech being used in different ways. On the other hand, the second sentence has a clear parallel pattern:
"She revels in"
"sweet chocolate eclairs," [Adjective--Adjective--Object]
"long moonlit walks," [Adjective--Adjective--Object]
"and classic jazz music." [Adjective--Adjective--Object]
The same pattern (adjective, adjective object) reoccurs in the same way. It is parallel in its structure, and thus musical and rhythmical to read and to hear spoken aloud. The second example is also parallel, just in a different pattern.
"She revels in"
"eating chocolate eclairs" [Gerund--Adjective--Object of Gerund]
"taking moonlit walks" [Gerund--Adjective--Object of Gerund]
"and singing classic jazz." [Gerund--Adjective--Object of Gerund]
Good writers attempt to form these good sentences. Here are some more examples culled from Karen Gordon's The Transitive Vampire:
  • faulty parallelism: I like to eat rich deserts, playing fast card-games, and riddles.
  • good parallelism: I like eating rich deserts, playing fast card-games, and solving difficult riddles.
  • more good parallelism: I like to eat rich desserts, to play fast card-games, and to solve difficult riddles.
  • more good parallelism: I like rich desserts, fast card-games, and difficult riddles.
  • bad: She is unfathomable, with a head of strawberry blond hair, and has a seductive manner.
  • good: She is an unfathomable, seductive strawberry blond.
  • bad: He is cute, wears a pinstriped suit, and has a dashing way about him.
  • good: He is cute and dashing in his pinstriped suit.
  • bad: The faun has shyness, with rough hooves, and behaves in a sylvan fashion.
  • good: The faun is shy, rough-footed, and sylvan.
  • good: The rough-hoofed faun is shy and sylvan.
Note that faulty parallelism isn't really a grammatical mistake. It's actually a stylistic problem. When editors are marking up a paper for revisions, you may note they place a pair of slanting lines in the margin--like this //. Those two slanting lines (//) indicate the editor has spotted faulty parallelism in that line of text, and the editor wants the author to fix it.

Classification Paragraph

Definition of a Classification Paragraph

Hopefully, after reading the classification paragraph examples, you have a general sense of what such a paragraph entails. You have to pick some sort of specific main idea, as we did above. After you select a main idea or topic, you pick a few subcategories of that topic, as we exemplified in the first sentence of each paragraph. Throughout the rest of the paragraph, you will explain the ideas which you introduced in the first sentence of your paragraph.
Certainly, writing a new type of paragraph can be overwhelming. However, knowing various types of paragraph formats can provide variety in your writing and make your finished work more interesting.

                                    Some cause and effect paragraph

 

                                                    First Dates

A first date can end up being categorized as successful, a clingy, a boastful or awkward. Successful first dates include both parties expressing information about what they like, who they are, and so forth. Usually, these dates will end in tentative plans for a second one. Clingy dates end up with one of the parties practically begging for information about the other. However, the non-clinger is not interested. On boastful dates, one member of the duo talks about all of his or her skills, talents, and abilities. The listening end of the pair is never asked about his or her life. Awkward first dates generally involve lots of silence or one or both of the partners not knowing how to act appropriately. While many dates occur every day, they can generally fall into one of these categories.




                                                        Rock Music
There are three different types of rock music, alternative rock, classic rock, and hard rock, also known as metal. Alternative rock features a steady bass drum laying down the beat, with easy flowing guitar riffs over the top. The bass line is toned town, and the lyrics are sung with intensity an authority. Depending on the song, the guitars can either be acoustic guitars or electric guitars. Classic rock combines a steady driving bass drum sound, with high snare overtones, steady and often repeating guitar riffs, and an intensive bass line. The guitars are more often than not all electric guitars, and distortion is rarely used. The lyrics are sung with style and enthusiasm. Hard rock, or metal, features a hard rolling bass drum with an abundant amount of cymbal work. This style of rock uses several electric guitars with heavy distortion to bring a very intense sound. A hard, intense, driving bass line rounds out the style. The lyrics aren’t really sung so much as screamed. It doesn’t matter what your preference is, each different style of rock music is unique on its own.

How to Write a Cause and Effect Paragraph

What makes something happen is  called a cause.An effect is what happens as a result of the cause. Cause and effect paragraphs are not just written for English writing assignments; news reporters, magazine writers and bloggers also use them. However, writing with the cause and effect approach usually means separating cause and effect into different paragraphs.

Instructions








    • Decide whether to write about a cause or an effect or both. You can choose to discuss only the causes of an event or only the effects of an event. Alternately, you can discuss the causes AND effects of a certain event -- but if you do, you'll have to keep each of them brief and to the point.
    • Make a list of causes or effects. Then narrow down that list to include only the most important causes or effects.
    • Explain each cause or effect in the paragraph in as much detail as possible. Likely you will need to offer a little cause to an effect paragraph, or a little effect to a cause paragraph just to give it context.
    • Use transitional words in your paragraph, such as: also, as a result, because, first and finally.
    • Include in your paragraph a clear topic sentence. This sentence should state the main idea of your paragraph. In other words, what point are you trying to make?
    • Arrange your points in chronological order to show how events moved through time. Use your transitional words from Step 4 to accomplish this. You can also use order of importance, which describes events that are most important first.








      Tips & Warnings

      • Type your paragraph using 12-point font so it's not too small or big.
      • Double-space your paragraph.
      • Check over your paragraph many times for errors.



            Some cause and effect paragraph


                                                              Bad effect of smoking


 Smoking has many serious effects.  The most obvious effect is the deterioration of a smoker's health.  Smoking increases the risk of lung disease, increases blood pressure, increases the risk of heart attacks, and reduces the flow of oxygen to the brain.  Smoking creates respiratory problems.  A smoker's cough expels phlegm, a thick mucus in the nose and the throat that wants to escape the body.  Prolonged use may lead to emphysema and the need to hook up to a machine to pump enough oxygen into the lungs.  Another effect of this habit is that smoking breeds halitosis; a smoker's breath always smells foul and repulsive.  Smoking frequently results in social isolation because fewer people smoke or want to be in the presence of a second-hand smoker.  Friends and acquaintances often bluntly tell their smoking friends that they don't want the smell in their cars or in their homes.  The strong, offensive odor of smoke clings to smokers' clothing, hair, and skin. The final effect of smoking is that it depletes the pocketbook. Smoking is now an expensive habit, and the price of cigarettes continues to rise.  The effects of smoking are many, which leaves one wondering why intelligent people do not find a way to break their harmful addiction.


                                                           Cities have grown very large

Presentation



In recent decades, cities have grown so large that now about 50% of the Earth's population lives in urban areas. There are several reasons for this occurrence. First, the increasing industrialization of the nineteenth century resulted in the creation of many factory jobs, which tended to be located in cities. These jobs, with their promise of a better material life, attracted many people from rural areas. Second, there were many schools established to educate the children of the new factory laborers. The promise of a better education persuaded many families to leave farming communities and move to the cities. Finally, as the cities grew, people established places of leisure, entertainment, and culture, such as sports stadiums, theaters, and museums. For many people, these facilities made city life appear more interesting than life on the farm, and therefore drew them away from rural communities.
                           




Nasa has successfully landed Curiosity





To count number of vowels


void main ()
{
char s[20],vw=0,i;
clrscr();
printf ("Enter any string: ");
gets (s);
for (i=0;i<=strlen(s);i++)
{
switch (s[i])
{
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
case 'A':
case 'E':
case 'I':
case 'O':
case 'U':
vw++;
}
}
printf ("There are %d vowels in it",vw);
getch ();
}

Print a double pyramid


void main(void)
{
clrscr();
int i,j,k,l,b,n;
printf("Enter the value of N:");
scanf("%d",&n);
for(i=0;i
{
printf("");
for(l=0;l
printf(" ");
for(j=i+1;j<=n;j++)
printf("%d",j);
for(k=n-1;k>i;k--)
printf("%d",k);
}
b=n-1;
for(i=0;i
{
printf("");
for(l=n-2;l>i;l--)
printf(" ");
for(j=b;j<=n;j++)
printf("%d",j);
for(k=n-1;k>=b;k--)
printf("%d",k);
b--;
}
getch();
}

Write a C Program to count the array elements


#include<conio.h>
#include<stdio.h>
void main()
{
int a[10],i,c=0;
clrscr();
printf("enter array elements=");
for(i=0;i<10;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<10;i++)
{
c++;
}
printf("counting elements of an array is:%d",c);
getch();
}

Write C Program to Print a Triangle


#include<stdio.h>

#include<conio.h>

void main()

{

int n;

printf("enter the lines :");

scanf("%d",&n);

for(int i=1;i<=n/2;i++)

{

printf("*\n");

for(int j=1;j<=2*i;j++)

printf("%d",j);

printf("\n");

}

if(n%2!=0)

printf("\n*");

getch();

}

Find address of char, string, integer


#include<stdio.h>
#include<conio.h>
 main()
  {
   char *chp,*sp;
   int i;
   char ch,s[10];
   int *ip;
   clrscr();
   printf("Enter a char:");
   scanf("%c",ch);
   printf("Enter a string:");
   scanf("%s",s);
   printf("Enter a integer:");
   scanf("%d",&i);
   chp=&ch;
   sp=s;
   ip=&i;
   printf("\nchar\tadd\tstring\t\tstringadd\tint\tint add\n");
   printf("%c\t%u\t%s\t\t%u\t\t%d\t%u",ch,&chp,s,&s,i,&i);
   printf("\nchar pointer value is:%u",chp);
   printf("\nstring pointer value is:%u",sp);
   printf("\nint pointer value is:%u",ip);
   getch();
  }

To find out Year is leap or not (IF-ELSE)


void main ()
{
int a;
clrscr ();
printf ("Enter the Year: ");
scanf("%d",&a);
if (a%4==0)
{
printf ("\nYear is Leap");
}
else
{
printf("\nYear is not Leap");
}
getch ();
}

Multiplication of Two Matrices


//Multiplication of Matrix
#include <stdio.h>

#include <conio.h>
int m1,n1,m2,n2,i,j,k,z[10][10]={0};
void value_sub(int a,int b,int arr[][10] )

{

for(i=0;i<a;i++)

{

for(j=0;j<b;j++)

{

printf(“Mat[%d%d] = “,i+1,j+1);

scanf(“%d”,&arr[i][j]);

fflush(stdin);

}

printf(“”);

}

}

void mat_mul(int a,int b,int arr[][10],int brr[][10])

{

int k=0;

for(i=0;i<a;i++)

{

for(j=0;j<b;j++)

{

for(k=0;k<a;k++)

z[i][j]+=arr[i][k]*brr[k][j];

printf(“%d\t”,z[i][j]);

}

printf(“\n\n”);

}

}

int main()

{

int A[10][10]={0},B[10][10]={0};

printf(“Enter the column and row of first matrix(m x n)\n”);

scanf(“%d%d”,&m1,&n1);

printf(“Enter the column and row of second matrix(m x n)\n”);

scanf(“%d%d”,&m2,&n2);

printf(“\n\n”);

if (n1==m2)

{

value_sub(m1,n1,A);

printf(“\n\n”);

value_sub(m2,n2,B);

printf(“\n\n”);

mat_mul(m1,n2,A,B);

}

else

printf(“Matrix multiplication cannot be done”);

getch();

}

To Sum, Subtract, Multiply & Division of two numbers (5 Variables)

#include<stdio.h>
void main ()
{
int a,b,c,d,e,f;
clrscr();
printf ("Enter A: ");
scanf ("%d",&a);
printf ("Enter B: ");
scanf ("%d",&b);
c=a+b;
d=a-b;
e=a*b;
f=a/b;
printf ("\nSum is : %d",c);
printf ("\nSubtraction is : %d",d);
printf ("\nMultiplication is : %d",e);
printf ("\nDivision is : %d",f);
getch ();
}

To find out power of any number

#include
void main ()
{
double no,r,res;
clrscr ();
printf ("Enter Number : ");
scanf ("%lf",&no);
printf ("Enter raised : ");
scanf ("%lf",&r);
res=pow(no,r);
printf ("\nResult is %.2lf", res);
getch ();
}

To find out Even or Odd number (IF-ELSE)


void main ()
{
int a;
clrscr ();
printf ("Enter the value of A: ");
scanf("%d",&a);
if (a%2==0)
{
printf ("\nNumber is Even");
}
else
{
printf("\nNumber is Odd");
}
getch ();
}

Convert Decimal to Hexadecimal Number



#include<stdio.h>
#include<conio.h>
#include<process.h>
void main()
{
Int x, y=30, z;
clrscr();
printf(“Enter the number:);
scanf(%d”, &x);
printf(“\n conversion of decimal to hexadecimal number\n”);
for(;;)
{
if(x= =0)
exit(1);
z=x%16;
x=x/16;
gotoxy(y--,5);
switch(z)
{
Case 10:
Printf(“A”);
Break;
Case 11:
Printf(%c”, „B?);
Break;
Case 12:
Printf(%c”, „C”);
Break;
Case 13:
Printf(“D”);
Break;
Case 14:
Printf(“E”);
Break;
Case 15:
Printf(“F”);
Default:
Printf(%d”, z);
}
}
getch();
}

Output:
Enter the number: 31
Conversion of decimal to Hexa decimal number
1F