Friday, May 14, 2010

Post 2

This post will show you how to using selection in C++.
The first example is to decide grade of student subject based on their marks.
We will declare grade as char and marks as int.
Then, we will prompts the users to enter their marks.

Clik here for coding.

Then, the program will decide the grade of the student based on the marks that student
enter.

The next program is to decide how much bonus the salesman will get based on their sales.
The program will first prompts the salesman to enter their sales.
We declare sales and bonus as int.

The program then will print the bonus that the salesman will get based on their sales.

This next program will asks the user to prompt their bill and the program will decide how much discounts the user will get.

Click here for coding.

The program will then calculate and print the payment that the user need to pay based on
the bill that the user prompt and the discount they get.

Tuesday, April 6, 2010

Post 1

This program is the introduction to the world of programming.
It's a simple coding that you can do by yourself even you're new in programming.
Let's take a look at it.

Click here for coding.

This program will print the information that are contain in the double notation.
Next, I will show to you how to input the data in the program and then print it.

It will ask you to prompts the marks and then print it.
Next we will see how to use a string type variable.
You see that server is the string type variable, so when the program ask you to prompts
the "Server : ", you can enter the alphabet. For example like Abc and Doremi.

Introduction

Hello guys and gurls!
In this blog I will teach you how to write a coding in C++.
I will review all my previous works as an example.
Instead of using straight writing to show the coding, I will using NOTEPAD and try to
visualized it. This is because the barrier in programming that prevent the straight writing in
this blog.
I hope you will understand and will make use of the coding as a reference in your study.
Thank you.