Entri Populer

Selasa, 25 Januari 2011

This Beautiful Models for Achievement in Korea



VIVAnews -
 Barbie Ernesta won the award 'Best Asian Super Models 2011' in the event '2011 Asia Model Festival Award '. The event was organized by the Model Center International and the Association of Korean models.    


                                                                                                                                      Nadila Ernesta (Gestina/VIVAnews)
                                                                                                                                                                                                   
"Get off the stage, my knees felt weak, and all the words that had been neatly arranged so dispersed. This is the first experience for me," said Barbie Ernesta at Graha Obor, Jalan Bangka Raya in South Jakarta.
The event was held from 18 to 22 January 2011 in 
the JW Marriott Hotel, Seoul, Korea, followed by models from 12 countries in Asia.Besides                                                                                                                        
Barbie, the star of the movie 'Shutter' Ananda Everingham of Thailand also attended this event.
"Actually there are two events. All I follow, I was interviewed by the Koreans in Jakarta. From there the result was brought to Korea. No I can phone him when told to come to attend the event appreciation in Korea," said movie stars 'Miracle'.
Barbie did not think could get an award at this prestigious event.Moreover, he had a lot to compete with super models from 12 Asian countries, including Japan, Thailand, India and China.
"Hopefully this award can be a trigger of spirits and to pave the way to go international," he said.
Barbie Ernesta began his career in the entertainment world as a model. But the girl was born February 4, 1988 better known as a television movie actress in Indonesia. His name was also recorded once starred in several big screen including 'Miracle', and 'House Ampera'. Through the prestigious event in Asia that, Barbie hopes he can realize the career footsteps of other countries. (Pet)

Program to enter three integers and output the smallest integer using IF.


#include <iostream.h>
#include <conio.h>
int main()
{
clrscr();
int x,y,z,smallest;
cout << "Enter 3 integers : ";
cin>>x>>y>>z;
smallest=x;
if(y<smallest)
smallest=y;
if(z<smallest)
smallest=z;
cout << "The smallest integer out of the 3 integers you typed ";
cout << x << ", " << y << " & " << z << " is : " << "\n" << smallest << "\n";
getch();
return 0;
}
This program takes in three integers x, y and z as a screen input from the user.
It then determines the smallest integer of the three and prints it out using the 'cout' command.

Program to find the sum of either of the diagonals of a 4 x 4 matrix.


#include <iostream.h>
#include <conio.h>

void main()
{
clrscr();
int x;
int A[4][4],sum=0; //Reading the matrix.
cout << "Enter the elements of the matrix : " << endl;
for(int y=0;y<4;y++)
for (int x=0;x<4;x++)
{
cout << "Element " << x+1 << ", " << y+1 << " : ";
cin>>A[x][y];
}
//Sum of either of the diagonal elements.
for(x=0;x<4;x++)
for(y=0;y<4;y++)
if(x==y)
sum+=A[x][y];
else if(y==4-(1+1));
sum+=A[x][y];
cout << "Sum of either of the diagonal elements is : " << sum;
getch();
}
This program takes in the elements A[x][y] of the 4 x 4 matrix as a screen input from the user.
It then calculates the sum of either of its diagonals and outputs it using the 'cout' command.

Program to enter 10 integers in a single-dimension array and then print out the array in ascending order.


#include <iostream.h>
#include <conio.h>

void main()
{
clrscr();
int array[10],t;
for(int x=0;x<10;x++)
{
cout << "Enter Integer No. " << x+1 << " : " << endl;
cin>>array[x];
}
for (x=0;x<10;x++)
{
for(int y=0;y<9;y++)
{
if(array[y]>array[y+1])
{
t=array[y];
array[y]=array[y+1];
array[y+1]=t;
}
}
}
cout << "Array in ascending order is : ";
for (x=0;x<10;x++)
cout << endl << array[x];
getch();
}
This program takes in the ten integers array[x] to be stored in the single-dimensional array as a screen input from the user.
It then sorts out these ten integers into ascending order and prints them out using the 'cout' command.

Program to enter a sentence and output the number of uppercase & lowercase consonants, uppercase & lowercase vowels in sentence..


#include <iostream.h>
#include <conio.h>

void main()
{
clrscr();
char line[80];
int number_of_vowels,uc,lc,uv,lv;
uc=lc=uv=lv=0;
cout << "Enter your sentence : " << endl;
cin.getline(line,80);
for(int x=0; line[x]!='\0';x++)
{
if(line[x]=='A'||line[x]=='E'||line[x]=='I'||line[x]=='O'||line[x]=='U')
uv++;
else if(line[x]=='a'||line[x]=='e'||line[x]=='i'||line[x]=='o'||line[x]=='u')
lv++;
else if(line[x]>+65&&line[x]<=90)
uc++;
else if (line[x]>=97&&line[x]<=122)
lc++;
}
//Printing the output.
cout << "Uppercase Consonants = " << uc << "." << endl;
cout << "Lowercase Consonants = " << lc << "." << endl;
cout << "Uppercase Vowels = " << uv << "." << endl;
cout << "Lowercase Vowels = " << lv << "." << endl;
number_of_vowels=uv+lv;
cout << "Number of vowels = " << number_of_vowels << endl;
getch();
}
This program takes in a sentence as a screen input from the user.
It then computes the number of uppercase and lowercase consonants, uppercase and lowercase vowels and the total number of vowels.
It then outputs it using the 'cout' command.

Program to convert temperatures from Celsius to Fahrenheit and vice versa.


#include <iostream.h>
#include <conio.h>

void main()
{
clrscr();
int choice;
float ctemp,ftemp;
cout << "1.Celsius to Fahrenheit" << endl;
cout << "2.Fahrenheit to Celsius" << endl;
cout << "Choose between 1 & 2 : " << endl;
cin>>choice;
if (choice==1)
{
cout << "Enter the temperature in Celsius : " << endl;
cin>>ctemp;
ftemp=(1.8*ctemp)+32;
cout << "Temperature in Fahrenheit = " << ftemp << endl;
}
else
{
cout << "Enter the temperature in Fahrenheit : " << endl;
cin>>ftemp;
ctemp=(ftemp-32)/1.8;
cout << "Temperature in Celsius = " << ctemp << endl;
}
getch();
}
This program takes in the user's choice choice as a screen input from the user.
It then asks the user for a temperature in Celsius or Fahrenheit depending on the choice.
It then converts the Celsius temperature to Fahrenheit or vice versa and prints it out using the 'cout' command.

Program to print the first 10 lines of pascal's triangle.


#include <iostream.h>
#include <conio.h>
#include <iomanip.h>
long triangle(int x,int y);
int main()
{
clrscr();
const lines=10;
for (int i=0;i<lines;i++)
for (int j=1;j<lines-i;j++)
cout << setw(2) << " ";
for (int j=0;j<=i;j++)
cout << setw(4) << triangle(i,j);
cout << endl;
getch();
}
long triangle(int x,int y)
{
if(x<0||y<0||y>x)
return 0;
long c=1;
for (int i=1;i<=y;i++,x--)
c=c*x/i;
return c;
}
This program does not take in any screen inputs from the user.
It just prints out the first ten lines of the pascal's triangle using the 'cout' command.