Showing posts with label that. Show all posts
Showing posts with label that. Show all posts

Friday, February 27, 2015

Gapminder Free software that visualise human development

URL: http://www.gapminder.org/

"Gapminder is a non-profit venture for development and provision of free software that visualise human development. This is done in collaboration with universities, UN organisations, public agencies and non-governmental organisations. Gapminder is a Foundation registered at Stockholm county administration board (Länstyrelsen) (reg. nr. 802424-7721). It was founded by Ola Rosling, Anna Rosling Rönnlund and Hans Rosling on 25 February 2005, in Stockholm. Gapminder Foundation will advance software development that have been done earlier by the non-profit company Gapminder Ltd. Funding has been and is mainly by grants from Sida for the Trendalyzer project. Being a producer of global public goods Gapminder benefit from free and creative inputs from pilot-testers and other end-users in many institutions and organisations."

"Why are Gapminder doing this? Gapminder work are due to a feeling of filling a gap. There has been a market failure in distributing global data. A lot of people are interested in the data, but do not get access to it (if they manage to access the data, they need to be advanced skilled statisticans to analyse it). Gapminder want´s to make the data more accessible and easier to use for instant analysis. There is no political agenda behind the work. The idea is that all people, independently of their political agenda, can use of this tools to easily improve their understanding about the complex society
..."

Gapminder visualizes and brings life to human development data over the last decades, and you can actually download the the different tools, presentations and documents (for free), which can for example be used in class to engage your students into understanding and caring more about this vital topic. It is simply awesome!

Read more »

Sunday, February 15, 2015

C program that reads a file containing integers and appends at its end the sum of all the integers

C program that reads a file containing integers and appends at its end the sum of all the integers

#include<stdio.h>
#include<conio.h>
#include<process.h>

main()
{
int a,i,n,sum=0;
FILE *fp;
clrscr();

//Writing numbers to the file
fp=fopen("DATA","w");
if(fp==NULL)
{
printf("File could not open!!");
exit(0);
}

printf("How many numbers?");
scanf("%d",&n);
printf("Enter numbers in the file:
");


for(i=0;i<n;++i)
{
scanf("%d",&a);
putw(a,fp);
}
fclose(fp);

//Reading the file and doing sum
fp=fopen("DATA","r");
if(fp==NULL)
{
printf("File could not open!!");
exit(0);
}

while((a=getw(fp))!=EOF)
sum+=a;

fclose(fp);

//Appending sum to the file
fp=fopen("DATA","a");
if(fp==NULL)
{
printf("File could not open!!");
exit(0);
}

putw(sum,fp);
fclose(fp);

//Displaying file after append
fp=fopen("DATA","r");
if(fp==NULL)
{
printf("File could not open!!");
exit(0);
}

printf("
File after append:
");

while((a=getw(fp))!=EOF)
printf("%d ",a);

fclose(fp);
getch();
}
Read more »