June 12, 2010

Tagging Tweeps- No More Local Lists, Know Who’s Actually The Funniest or Geekiest or Conversationalist

I see too many separate lists, possibly all good, tagging funny, conversationalists, and even maals (babes) on Twitter. It’s all about fun, but this technique is like the local maxima we read about in Artificial Intelligence books.

In my humble opinion, the next level for Twitter could be to allow signed-in users to thumbs up the users they’ve followed for a certain amount of time (say a week, to add credibility to the votes) to thumbs-up certain characteristics.

June 11, 2010

Modify the above program to display the two right-most digits of the integral part of the number

//E Balagurusamy, Programming in ANSI C,4E
//Exercise 3.3, p81

//Note:
//. comments with //scaff indicate scaffolding code to help during development of code
//. can be safely commented out/removed (in production code)
//HOW?
//1. extract integral part by explicit type casting to int
//2. use modulus (%) operater once to get the right-most portion
//3. repeat step 2 to get the next left digit
#include <stdio.h>
#include <conio.h>
int main(void)
{
    float number=0.0;

Given the values of the variables x, y and z, write a program to rotate their values such that x has the value of y, y has the value of z, and z has the value of x

//E Balagurusamy, Programming in ANSI C,4E
//Exercise 3.1, p81

//Note:
//. comments with //scaff indicate scaffolding code to help during development of code
//. can be safely commented out/removed (in production code)
//HOW?
//We'll take one temp variable and store any specific variable in it
//i.e that variable can then be written over.
//Thus, cycling over till we reach the end, where temp replaces the next one.
#include <stdio.h>
#include <conio.h>
int main(void)
{
    char x='x', y='y', z='z';
    char temp='0';

WAP to illustrate the use of symbolic constants in a real-life application

//E Balagurusamy, Programming in ANSI C,4E
//Exercise 2.10, p51

//Note:
//. comments with //scaff indicate scaffolding code to help during development of code
//. can be safely commented out/removed (in production code)
#define PI 3.14159265
#include <stdio.h>
#include <conio.h>
int main(void)
{
    float radius=0.0, perimeter=0.0, area=0.0;
    printf("\nEnter the radius : ");

WAP to read two floating point numbers using a scanf statement, assign their sum to an integer variable and then output the values of all the three variables

//E Balagurusamy, Programming in ANSI C,4E
//Exercise 2.8, p51

//Note:
//. comments with //scaff indicate scaffolding code to help during development of code
//. can be safely commented out/removed (in production code)
#include <stdio.h>
#include <conio.h>
int main (void)
{
    float real_first=0.0, real_second=0.0;
    int sum=0;