Jumat, 30 November 2012

Part Of Speech


Parts of Speech Table
This is a summary of the 8 parts of speech. You can find more detail if you click on each part of speech.
part of speech
function or "job"
example words
example sentences
action or state
(to) be, have, do, like, work, sing, can, must
EnglishClub.com is a website. I like EnglishClub.com.
thing or person
pen, dog, work, music, town, London, teacher, John
This is my dog. He lives in my house. We live in London.
describes a noun
a/an, the, 2, some, good, big, red, well, interesting
I have two dogs. My dogs are big. I like big dogs.
describes a verb, adjective or adverb
quickly, silently, well, badly, very, really
My dog eats quickly. When he is very hungry, he eats really quickly.
replaces a noun
I, you, he, she, some
Tara is Indian. She is beautiful.
links a noun to another word
to, at, after, on, but
We went to school on Monday.
joins clauses or sentences or words
and, but, when
I like dogs and I like cats. I like cats and dogs. I like dogs but I don't like cats.
short exclamation, sometimes inserted into a sentence
oh!, ouch!, hi!, well
Ouch! That hurts! Hi! How are you? Well, I don't know.

Program Menghitung Nilai IP dengan C++

Berikut merupakan contoh program untuk menghitung nilai indeks prestasi (IP) yang saya buat menggunakan bahasa C++. Program ini sebenarnya merupakan tugas yang diberikan oleh dosen saya pada mata kuliah Algoritma dan Pemograman 2. Nah langsung aja ni codingnya:

#include <iostream.h>
#include <stdio.h>
#include <conio.h>
#include <iomanip.h>
#include <stdlib.h>

main()
{
int nilai1[10];
char nama[25];
char nim[10];
int a, b, c, i, n;
char matkul[10][30];
char d;
char nilai[10];
int sks[10];
float jumlahsks;
float total;
float ip;

lagi:
clrscr();

cout<<"\t---------------------------------------------------\n";
cout<<"\t===Program Menghitung Nilai Indeks Prestasi (IP)===\n";
cout<<"\t---------------------------------------------------\n\n";

cout<<"Input Nama Anda\t: ";
gets (nama);
cout<<"Input NIM Anda\t: ";
gets (nim);

cout<<endl;
cout<<" Input Jumlah Mata Kuliah Yang Diambil : ";
cin>>n;
cout<<endl;

cout<<" Input Mata Kuliah, Nilai dan SKS !\n";
cout<<"----------------------------------\n";
for (i=1; i<=n; i++)
{
cout<<i<<". "<<"Mata Kuliah\t: ";
gets(matkul[i]);
cout<<"   Nilai\t: ";

cin>>nilai[i];
if (nilai[i]=='A' || nilai[i]=='a' || nilai[i]=='4')
{
nilai1[i]=4;
}
else if (nilai[i]=='B' || nilai[i]=='b' || nilai[i]=='3')
{
nilai1[i]=3;
}