# Monthly Archives: February 2015

## 11559 – Event Planning

By thinking 24 hr++ I have solved this problem.I got guidance from my friend M.H Riyad also..He discussed and showed me how to solve this problem easily..Thank you dost for your kindness 🙂

Here is my code it is accepted..Alhamdulillah 🙂

I tried to built this system from youtube videos and by searching net.

I am sharing the code and what I have learnt today 🙂

We will use two php file in an one directory

Then go to your phpmyadmin and create a table then create a database and create a table name ‘store’ or paste this sql query on the SQL box on your phpmyadmin

then create one file with your PHP IDE or different text editor and paste this code name of the file will be:index.php

Read out the whole code line by line and you will be definitely understand what I have written.

and second just create a get.php file and paste the code

Voila ! you are done ! 🙂

You can checkout this whole project in my github  I made it public and opensource you can also fork it and contribute.

Please keep a comment if it’s helped you  or you have found any bug.Thanks for reading 🙂

## Uva 11498 – Division of Nlogonia

Solution actually simple…You have to think simple

here is the cartesian co ordinate link check here then think
http://www.mathsisfun.com/data/cartesian-coordinates.html

Code with one technique

Code with another technique

## Some ICPC related programming techniques in c

Sometimes i feel i have to write those in somewhere so i am writing those techniques here which I am learning day by day by reviewing others code….

Here ==1 means TRUE and the program will enter the loop if anything inside the loop will work except zero 0.

Here for(;;) means infinity loop run and everything will work fine except k==0..when zero come program will stop to run

You can also put all of your input in your extended outside text file and load it in the console
by this code

## Art of Effective Living Online Course Exam Experience

I am sharing Art of Effective Living Online Course Exam Experience here….Here I am writing answers where my sir asked me to write  any of my special capacity which made me extraordinary…

From my self evaluation I am sharing here why this capacity is extraordinary:

1.I love to lead my team as well as I love to be a team player.
2.How the situation goes on I love to maintain well balanced communication with my team members.
3.I love to listen from my team members.
4.I love to follow the community standards.
5.I love to struggle to handle the difficult situations from outwards or inwards for my team.

## Some format specifiers in C

The % Format Specifiers

The % specifiers that you can use in ANSI C are:

Usual variable type Display

%c char single character

%d (%i) int signed integer

%e (%E) float or double exponential format

%f float or double signed decimal

%g (%G) float or double use %f or %e as required

%o int unsigned octal value

%p pointer address stored in pointer

%s array of char sequence of characters

%u int unsigned decimal

%x (%X) int unsigned hex value

I have collected those from this website www.le.ac.uk/users/rjm1/cotter/page_30.htm

## Pointer

What is pointer?
Pointer is actually a variable which points to another variable by address not value

notation is simple just a asterisk before the variable name

Example:

suppose
int live=20;
int *zaki=&live; //here i am pointing *zaki to a variable address of live
so *zaki is a pointer

now we want to print what actually shows

if we write these line
printf(“zaki = %d”,*zaki);

Output will be: 20 //the value of live

And if we print
printf(“zaki = %d”,zaki);
Output will be: 2686744 //the address of memory location of  the variable live

Another example from subeen vaia’s book:

## String Processing

নিজের কন্সেপ্ট ক্লিয়ার করতে এই পোস্ট টা দেয়া

স্ট্রিং প্রসেসিং এর আগে ভাবছি পয়েন্টার আর অ্যারে কনসেপ্টটাও ক্লিয়ার করে নিবো

যাই হোক স্ট্রিং ৩ ভাবে প্রসেস হয়..String processes in 3 types
They are Insertion,Deletion and Replace

Insertion in string:

Suppose:T=Text,P=position,S=string
INSERT(T,P,S)
Example:
INSERT(“ABCDEFG”,3,”xyz”)=”ABxyzCDEFG”

Deletion in string:

Suppose:T=Text,P=position,L=Length
pseudo code for deletion
DELETE(T,P,L)
Example:
DELETE(“ABCDEFG”,4,2)=”ABCDFG”

Replacement in string:

Suppose:T=Text,P1=position1,P2=position2
pseudo code for replacing
REPLACE(T,P1,P2)
Example:
REPLACE(“MASUD KARIM”,”D”,”M”)=”MASUM KARIM”

## URI Online Judge Solution | 1037 Interval

http://www.mathsisfun.com/sets/intervals.html

Check there about the interval notation section…

## Interval Notation

In “Interval Notation” we just write the beginning and ending numbers of the interval, and use:

• [ ] a square bracket when we want to include the end value, or
• ( ) a round bracket when we don’t

Like this:

### Example: (5, 12]

Means from 5 to 12, do not include 5, but do include 12

## URI Online Judge Solution| 1036 Bhaskara’s Formula

An equation ax2 + bx + c = 0 where a,b and c are any number  and called the coefficient of the equation
It is known as quadratic equation because any seconbd degree polynomial equation is known as quadratic equation.This equation has two roots x1 and x2

This is Bhaskara’s Formula or Bhaskaracharya’s Formula where discriminant D or Del = b24ac
If D>0 then root of quadratic equation are real and unequal
If D=0 then root of quadratic equation are real and equal
If D<0 then root of quadratic equation are conjugate complex number
7s+Formula

So my code is here

## URI Online Judge Solution | 1035 Selection Test 1

Hints: Don’t forget to think that A is even so we have to use a%2==0 that’s it

## Software Engineer from Google visited today in our Daffodil University

Software Engineer from google name Arne Mauser visited today in our Daffodil University and described us about the searching algorithm behind google translator…Passed a nice evening with this event 🙂
Event name was Enriching open source and local content : future ahead by GDG Bangla and Daffodil International University