Custom Search

Rabu, 19 Agustus 2009

Instruksi IF (lanjutan)




Program 1 :

#include<stdio.h>

main()
{

int grade;
printf("Masukkan Nilai anda (0 s/d 100) = ");
scanf("%d",&grade);
if(grade >= 90)
printf ("Nilai Anda adalah = A\n");
else if(grade >= 80)
printf("Nilai Anda adalah = B\n");
else if(grade >= 70)
printf("Nilai Anda adalah = C\n");
else if(grade >= 60)
printf("Nilai Anda adalah = D\n");
else printf("Nilai Anda adalah = E\n");
}

Tampilan Program:

Masukkan Nilai anda (0 s/d 100) = 99
Nilai Anda adalah = A

Program 2 :

#include<stdio.h>

main()
{
int na;
printf(Masukkan nilai angka= ");
scanf("%i", &na);
if (na >= 85)
printf("Nilai anda A. Anda layak dapat bintang\n");
else if (na >= 70 && na <= 84)
printf("Nilai anda B.Good...Good...Good\n");
else if(na >= 55 && na <= 69)
printf("Nilai anda C.Lumayan deh\n");
else if(na >= 30 && na <= 54)
printf("Nilai anda D.Don't worry, next time better\n");
else if(na <= 29)
printf("Nilai anda E. Anda tidak lulus\n");
else printf("Nilai anda tidak dikenal");

}

Tampilan Program:
Masukkan nilai angka = 88
Nilai anda A. Anda layak dapat bintang




Leia Mais…

Instruksi IF




Pemakaian if digunakan untuk mewujudkan percabangan bersyarat. Di dalam bahasa C, instruksi if mempunyai beberapa bentuk, yaitu:

1. Instruksi if tunggal

if (ekspresi) pernyataan;

Pengujian ekspresi selalu diapit dengan tanda kurung. ekspresi dengan menggunakan operator perbandingan akan di tes nilai kebenarannya apakah benar atau salah.pernyataan bisa berupa perintah mencetak output, proses, atau gabungan.

2. Instruksi if dengan else

if (ekspresi) pernyataan1;
else pernyataan2;

Operator lain yang sering digunakan adalah ternary (?) yang mempunyai bentuk
(ekspresi) ? pernyataan1 : pernyataan2;

Perintah di atas mempunyai nilai yang sama dengan perintah berikut:

if (ekspresi) pernyataan1 else pernyataan2;

3. Instruksi if dengan pilihan if lainnya

if (ekspresi) pernyataan1;
else if (ekspresi2) pernyataan2;
else pernyataan3;

4. Instruksi if dalam instruksi if

if (ekspresi1) pernyataan1;
else if (ekspresi2) pernyataan2;

Contoh Program Next Tutorial

Leia Mais…

Selasa, 18 Agustus 2009

Struktur Bahasa C




Struktur bahasa C secara garis besar sama seperti bahasa pemrograman tingkat tinggi lainnya. Secara umum dapat dikatakan bahwa bentuk dasar bahasa C meliputi:

  1. Praprosessor
  2. Prototipe fungsi
  3. Variabel
  4. Fungsi
Jika bentuk dasar diatas dibawa ke dalam bentuk program C, maka akan tertampil seperti berikut:

/*-----------------------*/ <======== komentar
/* Bentuk Program C */
/* By Rheims Corps */
/*----------------------*/

#include<stdio.h> <======== praprosessor
float jumlah(float x, float y); <======== prototipe fungsi
main() <======== fungsi
{
int a = 6;
int b = 3; <======== variabel

float c;

}

float jumlah(float x, float y); <======== fungsi

Penulisan library atau praposessor selain diapit dengan tanda <> juga dapat diapit menggunakan tanda petik ganda "", misal #include "stdio.h"

Program C pada hakekatnya merupakan susunan atas beberapa fungsi. Program C paling sederhana harus memiliki minimal satu buah fungsi. Program paling sederhana dari bahasa C adalah seperti berikut:

/*-----------------------*/
/* Bentuk Program C */
/* By Rheims Corps */
/*----------------------*/

#include<stdio.h>
main()
{
}

Dalam C fungsi main() harus didefinisikan dan pada setiap fungsi yang ada dalam bahasa C akan memiliki bentuk:

nama_fungsi (parameter)
{
variabel lokal
C statement
}

Berikut contoh program dalam bahasa C

/*-----------------------*/
/* Bentuk Program C */
/* By Rheims Corps */
/*----------------------*/

#include<stdio.h>
main()
{
printf("I Like C \n");
exit(0);
}

Pada program contoh di atas ada beberapa hal yang dapat dilihat, yakni:
  1. Penulisan komentar pada C bisa dengan cara mengapit komentar menggunakan /*komentar*/ atau sebelum menulis komentar didului dengan //komentar
  2. C membutuhkan titik koma (semicolon) di belakang setiap statement
  3. printf merupakan fungsi standar C dipanggil dari fungsi main
  4. \n akan memberikan baris baru dalam output
  5. exit() merupakan fungsi standar yang menyebabkan program berhenti atau selesai

Leia Mais…

C# Pengenalan Logika Basic




Pendahuluan

Pertama kali mendengar kata “C#” kita akan bertanya “Bahasa pemprograman apakah ini” ? “Apa Tujuannya kita mempelajarinya” ? “Bagaimana cara mempelajarinya” ? “Apa bedanya dengan bahasa .Net lainnya yg terdapat pada Visual Studio” ? Saya Akan menjawab pertanyaan ini masing-masing agar dapat membuka pikiran anda lebih luas lagi. C# adalah salah satu bahasa pemprograman intermediate yg digunakan oleh programmer untuk membuat executable programs / program yg dapat di eksekusi. C# dapat memisahkan jarak antara aplikasi yang powerfull tapi membingungkan seperti C++ dan sangat mudah sekali untuk digunakan , C# memiliki extension .CS .

Tujuan kita mempelajari C# adalah untuk membuat suatu program, apa itu program ? wah menjadi pertanyaan lagi ☺ , program adalah suatu executable file atau dengan kata lain adalah file yg dapat di eksekusi dengan double klik suatu icon ,Sebagai contoh adalah Microsoft word yg sering kita gunakan adalah sebuah program, file ini memiliki extension .exe yang merupakan executable files.

Sebelum menjalankan aplikasi yg dibuat dengan C# , kita memerlukan Common Language Runtime(CLR) untuk meng-eksekusi program yg di generate dengan C#. Ini kita dapat dari .Net Framework yg dapat kita download langsung dari situs Microsoft secara free, atau otomatis terinstall ke dalam komputer ketika menginstall Visual Studio sebagai suatu syarat standard pada procedure penginstalan.

Berikut ini beberapa kelebihan C# :
- Flexible: C# program dapat di eksekusi di mesin computer sendiri atau di transmiskan melalu web dan di eksekusi di computer lainnya
- Powerful: C# memiliki sekumpulan perintah yang sama dengan C++ yang kaya akan fitur yang lengkap tetapi dengan gaya bahasa yang lebih diperhalus sehingga memudahkan penggunanya
- Easier to use: C# memodifikasi perintah yang sepenuhnya sama dengan C++ dan memberitahu dimana letak kesalahan kita bila ada kesalahan dalam aplikasi , hal ini dapat mengurangi waktu kita dalam mencari error
- Visually oriented: The .NET library code yang digunakan oleh C# menyediakan bantuan yang dibutuhkan untuk membuat tampilan yang complicated dengan frames, dropdown , tabbed windows, group button , scroll bar , background image , dan lainnya
- Secure: semua bahasa pemprograman yg digunakan untuk kebutuhan internet mesti memiliki security yg benar-benar aman untuk menghindari aksi kejahatan dari pihak lain seperti hacker , C# memiliki segudang fitur untuk menanganinya

Isi

Pertama – tama , mari kita mempelajari struktur dasar dari logika basic pemprograman. kita mesti mengenal penggunaan macam-macam perulangan yang kita gunakan untuk meng-handle memproses data yang telah diinput menggunakan looping seperti for / while ataupun sesuatu nilai inputan yang sudah pasti di definisikan nilai yang akan di proses menggunakan case , kita mesti mengetahui kapan kita mesti menggunakannya.
berikut adalah contoh untuk menampilkan output huruf 1-6 dengan berbagai model perulangan :

1. For
int[] array1 = {0, 1, 2, 3, 4, 5};
for (int i=0; i<6; i++)
{
System.Console.WriteLine(array1[i].ToString());
}


2. For Each
int[] array1 = {0, 1, 2, 3, 4, 5};
foreach (int n in array1)
{
System.Console.WriteLine(n.ToString());
}


3. While
int[] array1 = {0, 1, 2, 3, 4, 5};
int x = 0;
while (x < 6)
{
System.Console.WriteLine(array1[x].ToString());
x++;
}


4. Do While
int[] array1 = {0, 1, 2, 3, 4, 5};
int x = 0;
do
{
System.Console.WriteLine(array1[x].ToString());
x++;
} while(x < 6)

Leia Mais…

Jumat, 14 Agustus 2009

Domain .Com .Net .Org 100% Free




For one free domain you must have 9 referrals

For more information here : click


Leia Mais…

SONAR 8.3




screenshot

Description Software

"The SONAR, digital multitrack recording system, build your cakewalk home studio."
Brothersoft Editor: The SONAR™ digital multitrack recording system is a new generation of professional audio technology from Cakewalk, the leading developer of music and sound software for Windows. SONAR is the musician's choice for recording, editing, mixing, and delivering music and sound projects for CDs, film and video scores, the Internet, or any Multimedia project. you can free download SONAR 8.3 now.

  • Size: 131MB
  • License: Demo $619.00
  • OS: Windows 2000, 98, Me
Download here : click

Download keygen/crack: click

Leia Mais…

Hiphop eJay 6




Description Software

"Remix and compose hip hop style tracks plus drum machine and DJ decks."
Brothersoft Editor: Remix and compose hip hop style tracks plus drum machine and DJ decks.

Bring on the noise with HipHop 6, the new Hip Hop based music studio from the eJay Virtual Music Studio range. HipHop 6 is easy to use. You will be making music and sound clips in no time.

Features:

# 5,000 royalty-free professional samples, loops, beats and patches.

# 5 virtual instruments; Sample Loop Player, Drum Machine, Poly Synth, Bass Synth and DJ Decks - switch Between beginner and advanced mode as desired.

# 9 top notch effects; echo, chorus, reverb, compressor, distortion, vocoder, harmonizer, Unison and Equalizer with the ability to add more...

# Master Effects: gives you the power to create a polished final mix.

# Sample studio: professional Audio Editor to create and modify samples.

# Volume & Pan Curves: gives you full mixing desk style control over each track.

# Sample direct from CD or from any device connected to your sound card.

# Auto Archive: automatically creates a backup of every song you save.

# Burn your tracks to audio CD with the integrated burner.

# Export your songs as WAV files.

# Comprehensive offline HTML manual and quick tutorial. you can free download Hiphop eJay 6 now.

  • Size: 153.32MB
  • License: Shareware £19.99
  • OS: Windows Vista, XP, 2000
Download here : click

Leia Mais…

JetAudio 7.5.3 Basic




screenshot

Desciption Software

"jetaudio is an integrated multimedia player."
Brothersoft Editor: Jetaudio is a powerful audio/video play & conversion
Multifunctional toolbar
MCE (Microsoft Media Center) compatible Remote controller support *
Additional features
- Repeat A<->B
- Bookmark
- Bookmark menu is shown when clicking click time information in jetAudio window.
- History (Resume)
- History menu is shown when clicking click track number in jetAudio window. you can free download JetAudio 7.5.3 Basic now.

  • Size: 25.95MB
  • License: Freeware Free
  • OS: Windows Vista, XP, 2000, 98, Me
Download here : click

Leia Mais…

Winamp 5.5.0.1640




screenshot

Description Software

"Winamp - Play and organize a variety of audio and video files."
BS Editor: Support for classic Winamp 1.x/2.x/2.9x skins and Winamp 3 ("Modern") skins

Fancy new modern skin:
- Integrated video, AVS, and Milkdrop support
- Many built-in colorthemes
-winap skin
Same ol' classic skin for people who want the Winamp 2 feel
Vastly more powerful Media Library:
- Automatic background directory scanning options
- Customizable views and columns, graphical view editor
- Internet Radio (SHOUTcast) and TV listings
- Context-sensitive item info viewer
CD rippingsupport (AAC@2x in free version, MP3 at unlimited speeds in pro)
CD burning support (limited to 2x in free version)
Advanced title formatting logic for file types that support it
Huge AVS updates:
- New effects, bundled some popular 3rd party APEs
- A much better selection of default presets
- Experimental SMP support
- Full AVS preset subdirectory support
- Extensions and optimizations to the AVS evaluation library

Some of features:

- Support for playback of AAC and VP6 in NSV files/streams
- Global HotKey support
- New Signal Processing Studio DSP plug-in
- Options to disable plugin exception handling for developers
- A ton of new plug-in API calls (SDK forthcoming)
- Fixed changing-systray options while minimized bug
- New Winamp icon
- Added XP MANIFEST.xml to winamp.exe
- Made agent icon use configured winamp system tray icon
- Optimized winamp's load titles on demand logic, made faster
- Made winamp's internal submenu management more reliable
- Added skin font override preferences
- Added spacebar shows current playlist item in playlist editor
- Fixed manual playlist advance w/ repeat
- Made winamp's open directory recurse checkbox nicer looking you can free download Winamp 5.5.0.1640 now.

  • Size: 8.10MB
  • License: Freeware Free Buy
  • OS: Windows Vista, 2003, XP, 2000, 98, Me, NT
Download here : click

Leia Mais…

Visual C# 2008 Express Edition




screenshot

Description Software

"A great combination of power and productivity for the Windows developer"
EditByBSEditor: Simple:
Design Windows Presentation Foundation (WPF) applications with built-in designer support
Create data-enabled applications with the lightweight SQL Server Compact Edition or powerful client/serve applications with SQL Server 2005 Express Edition
Develop quickly with IntelliSense support for the latest Visual C# enhancements
Fun:
Add cool, fun controls to your projects using the C4F Developer Toolkit and the C4F Vista P2P Developer Kit
Share projects with others using the Popfly Explorer
Connect with your friends and create cool applications with the Facebook Developer Toolkit
Checkout cool fun projects dedicated to Do-It-Yourself developers on Coding4Fun
Easy to learn:
Get started quickly by becoming familiar with the Visual C# development environment with the Introduction to Visual C# 2008 video
New to programming or Visual C#? Start with the Beginner Developer Learning Center
Access the online documentation including samples and walkthroughs
Get online with your peers and connect with other beginners and hobbyists
note: Minimum: 1.6 GHz CPU, 192 MB RAM, 1024x768 display, 5400 RPM hard disk
Recommended: 2.2 GHz or higher CPU, 384 MB or more RAM, 1280x1024 display, 7200 RPM or higher hard disk
On Windows Vista: 2.4 GHz CPU, 768 MB RAM you can free download Visual C# 2008 Express Edition now.
  • Size: 2.56MB
  • License: Freeware Free
  • OS: Windows Vista, 2003, XP
Download here : click

Leia Mais…

Visual Basic 2008 Express Edition




Screenshot

screenshot

Description Software

"The ideal tool for productively building object-oriented applications"
EditByBrothersoft: Design Windows Presentation Foundation (WPF) applications with built-in designer support
Create data-enabled applications with the lightweight SQL Server Compact Edition or powerful client/server applications with SQL Server 2005 Express Edition
Develop quickly with IntelliSense support for the latest Visual Basic enhancements
Add cool, fun controls to your projects using the C4F Developer Toolkit and the C4F Vista P2P Developer Kit
Share projects with others using the Popfly Explorer
Connect with your friends and create cool applications with the Facebook Developer Toolkit
Checkout cool fun projects dedicated to Do-It-Yourself developers on Coding4Fun
Get started quickly by becoming familiar with the Visual Basic development environment with the Introduction to Visual Basic 2008 video
New to programming or Visual Basic? Start with the Beginner Developer Learning Center
Access the online documentation including samples and walkthroughs
Get online with your peers and connect with other beginners and hobbyists
note: Minimum: 1.6 GHz CPU, 192 MB RAM, 1024x768 display, 5400 RPM hard disk
Recommended: 2.2 GHz or higher CPU, 384 MB or more RAM, 1280x1024 display, 7200 RPM or higher hard disk
On Windows Vista: 2.4 GHz CPU, 768 MB RAM you can free download Visual Basic 2008 Express Edition now.
  • Size: 2.58MB
  • License: Freeware Free
  • OS: Windows Vista, 2003, XP
Download here : click

Leia Mais…

Dev-C++ Portable 4.9.9.2






# License: Freeware Free

Bloodshed Dev-C++ is a full-featured Integrated Development Environment (IDE) for the C/C++ programming language. It uses Mingw port of GCC (GNU Compiler Collection) as it's compiler. Dev-C++ can also be used in combination with Cygwin or any other GCC based compiler.

Free Software (GPL)
For Windows 95, 98, NT, 2000, XP

Authors : Colin Laplace, Mike Berg, Hongli Lai : Development
Mingw compiler: Mumit Khan, Jan Jaap van der Heidjen, Colin Hendrix and GNU coders.

Download here: click

Leia Mais…

Comments



1