This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Saturday, June 30, 2012

Loop: Maximum & Minimum

Assalamu Alaikum. Hope, you all are well by the grace of Almighty ALLAH. Today we learn how to find out the maximum & minimum from the n numbers. Take a look at the problem.

Problem: Write a program to find out the maximum & minimum from the given n numbers.

Solution:



Thank you all..:)

Thursday, June 28, 2012

Send anyone's profile picture on chat

Assalamu Alaikum. Hope you all are well by the grace of Almighty ALLAH. Today we learn how to send anyone's profile photo as an emotion on chat in Facebook.

To do this, you have to follow some easy steps.

Monday, June 25, 2012

Switch Case: Add, Subtract, Multiply, Divide

Assalamu alaikum. Hope you all are well by the grace of Almighty ALLAH. Today we learn how to add/ subtract/ multiply/ divide two numbers. Let's look at the problem.

Problem: Write a program that takes two integer value from the user. Then asked the user what he/she wants to do(Add/ Subtract/ Multiply/ Divide/Modulus). Then show the result according to the given choice.


Solution:


Thank you all..:)

Tuesday, June 19, 2012

Physics 2: Module 3

Thursday, June 14, 2012

Switch Case: Vowel-Consonant

assalamu Alaikum. Hope you all are well by the grace of Almighty ALLAH. Today we learn vowel - consonant problem by Switch Case in C. Let's look at the problem.

Problem: Write a program that takes a character and output it is vowel or consonant.


Solution:


a, e, i, o, u are the vowels and rest of the characters are consonant. Let's look at the program.



Thank you all..:)

Switch case: Temperature Convertion

assalamu Alaikum. Hope, you all are well by the grace of Almighty ALLAH. Today we learn Temperature conversion by switch case in C. Let's look at the problem.

Problem: Let consider, C/5 = (F-32)/9 = (K-273)/5. Write a program that first takes the choice from the user what he/she wants. Then a temperature is given as input. Convert the temperature and output the result according to the given choice.

Switch Case: 1st day of the year

Assalamu Alaikum. Hope you all are well by the grace of Almighty ALLAH. Today we learn year program by switch case in C. Let's look at the problem.

Problem: According to the gragorian calender, it was monday on the dat 01/01/01. If any year(2001-2100) is input through the keyboard, write a program to find out what is the day on 1st January of this year.


Solution:


A year will be a leap year if it is divisible by 4 but not by 100. If a year is divisible by 4 and by 100 it is not a leap year unless it is also divisible by 400.

In this program we have to consider leap year. Let's look at the program.


Thank you all..:)

Switch Case: Euro , Dollar, Taka Conversion

Assalamu Alaikum. hope you all are well by the grace of Almighty ALLAH. Today we learn Euro, Dollar & Taka conversion by switch case. Let's look at the problem.

Problem: Let Consider The conversion rate of US Dollar, Euro & Taka are 1 Dollar = 80.45 Taka and 1 Euro = 125.34 Taka. Write a program that first takes the choice from the user what conversion he/she wants. Then an amount is given as input. Convert the amount and output the result according to the given choice.


Solution:


Given, 1 dollar =  80.45 taka & 1 Euro = 125.34 taka.
So, 1 Euro = 1.55 dollar.

Now. let's look at the program.


Thank you all.. :-)

Physics 2: Chapter 2

Wednesday, June 13, 2012

Switch Case:Centimeters-inches Conversion

Assalamu Alaikum. Hope, you all are well by the grace of Almighty. Today we learn centimeters-inches conversion by switch case in C programming. Let's look at the problem.

Problem: Write a program that converts centimeters to inches & inches to centimeters.


Solution:


We know that, 1 Centimeter = 0.3937 inche &
                       1 Inche = 2.54 Centimeters

In this program we use 1 centimeter = .03937 inches. let's look at the program.


Thank you all.. :-)

Tuesday, June 12, 2012

If else statement: Temperature Conversion

Assalamu Alaikum. Hope, you all are well by the grace of Almighty ALLAH. Today we learn how to do temperature conversion by if else statement. let's look at the problem.

Problem: Let consider the conversion rate of Centigrade and Fahrenheit are C/5 = (F-32)/9 . Write a program that first takes the choice from the user what conversion he/she wants. Then a temperature is given as input. Convert the temperature and output the result according to the given choice.

Solution:



Thank you all..:)

If Else Statement: Dollar Taka Conversion

Assalamu Alaikum. Hope you all are well by the grace of Almighty ALLAH. Today we learn how to do a program for dollar taka conversion by if else statement. Let's look at the problem.

Problem: Let consider the conversion rate of US Dollar and Taka are 1 Dollar = 80.45 Taka. Write a program that first takes the choice from the user what conversion he/she wants. Then an amount is given as input. Convert the amount and output the result according to the given choice.

Solution:



We can also do this program by the following way.


Thank you all..:)


If Else: Vowel Consonant

Asalamu Alaikum. Hope you all are well by the grace of Almighty. Today we learn how to find out vowel or consonant from the given character. Let's look at the problem.

Problem: Write a program that takes a character and output it is vowel or consonant.


Solution:



Thank you all...:)

Monday, June 11, 2012

Swap without Temporary variable

Assalamu Alaikum. Hope, you all are well by the grace of Almighty ALLAH. Today we learn how to swap values without using temporary variables. Let's look at the problem.

Problem: Write a program, interchange the values of two variables, say x and y without using temporary variable.

Solution:



















Thank you all..:)

Beginning

Assalamu Alaikum. How are you all ?? Hope, you all are well by the grace of Almighty ALLAH. Today we learn something about switch case.

Switch case:

  • same expression
  • equal to operator

Syntax of the switch statement:

  • Switch Case statement is used to make a decision from multiple choices.
  • Default is optional


We can also compare this with if-else statement.


Examples:

01.

02.


Thank You all..:)






Sunday, June 10, 2012

Physics 2: Chapter 1

Tuesday, June 5, 2012

Physics 2 Lab

Assalamu Alaikum. Hope, you all are well by the grace of almighty ALLAH. Here you will find some necessary files for Physics 2 lab.


Data Table

Thank You all..:)

Greater, Less, Divisible

Assalamu Alaikum. Hope you all are well by the grace of Almighty ALLAH. Today we learn some problems for if-else statement. Let's look at the problems.

Problem 1: Write a program to find a given number is greater than 100 and less than 250 and divisible by 7.


Solution:


















Problem 2: Write a program to find a given number is greater than 100 and less than 250 or divisible by 7.

Solution:




















Problem 3: Write a program to find a given number is greater than 100 or less than 250 and divisible by 7.

Solution:





















We can also do this program by the following way.




















In this program in line no. 10 & 11 if is used twice. This type of if is called nested if.

Thank you all..:)

Monday, June 4, 2012

Physics 2

Assalamu Alaikum. Hope, you all are well by the grace of Almighty ALLAH. Here you will find some soft copy for physics 2.

Friday, June 1, 2012

AIUB Campus

Assalamu Alaikum. Hope, you all are well by the grace of Almighty ALLAH. Today we learn how to solve AIUB Campus problem. Let's look at the problems.

Problem 1:
Consider the room numbers of AIUB campus  4 -  423, 432, 441, 234, 534, 132. Here first digit represents campus number, second digit represents floor number and third digit represents room number in that floor. Write a program that will take a three digit number (like 423) and output the campus, floor & room number according to the input.


Sample Input:  423
Sample Output: Campus: 4, Floor: 2, Room: 3


Solution:





























Problem 2:
Consider the room number of AIUB Campus 7 -7123, 7032, 7022, 7051. Here first digit represents Campus number, second & third digit represent floor number and the fourth digit represents the floor number in that floor. Write a program that will take a four digit number (like 7123) and output the campus, floor and room number to the input.

Sample Input:  7123
Sample Output: Campus:7, Floor: 12, Room: 3

Solution:


















Thank you all..:)

Salary Bonus

Assalamu Alaikum. Hope, you all are well by the grace of Almighty ALLAH. Today we learn how to code salary bonus programs. Let's look at the problems.

Problem 1: 
Write a C program to calculate the salary earned by a worker such that -
- pay $500 at hours.
- if worked more than 20 hours a bonus worth ^$1000 will be given.
Your program should take total hours at input.


Solution:


























Problem 2:
Write a C program to calculate the salary  earned by a worker such that if his/her salary is more than $5000, he/she will get 5% bonus.
Your program should take salary as input.

Solution:












Thank you all..:)

Find Out Maximum and Minimum

Assalamu alaikum. hope, you all are well by the grace of Almighty ALLAH. Today we learn how to find out maximum and minimum number from two/ three numbers. Let's look at the problems.

Problem 1: Find out the maximum and minimum between two integer numbers.

Solution: 













We can also do this code by following way.






















Problem 2: Find out the maximum and minimum among three integer numbers.

Solution:




























We can also do this program by the following way.


























Thank You all..:)

Leap Year

Assalamu Alaikum. Hope, you all are well by the grace of Almighty. Today we learn how find out the leap year. Let's look at the problem.

Problem: Any year is entered through the keyboard. Write a program to determine whether the year is a leap year or not.

Sample Input: Enter the Year: 2012
Sample Output: Leap Year

Solve:


Leap Year:


A year will be a leap year if it is divisible by 4 but not by 100. If a year is divisible by 4 and by 100, it is not a leap year unless it is also divisible by 400.


By using this calculation we write a C programming code. Let's look at the programs.
























We can also do this program by following way:




















Thank You all..:)

Subtraction the Minimum from the Maximum

Assalamu Alaikum. Hope, you all are well by the grace of Almighty ALLAH. Today we learn how to subtract the minimum number from maximum number. Let's look at the problem.

Problem: Write a program that takes two integer numbers and output the subtraction result from maximum to minimum.

Sample Input: Enter Two Numbers: 10 5
Sample Output: Result: 5

Solve:


















We can also do this code by following way:


















Thank You all..:)