If you want to make money online : Register now

Hi Friends,

I hope you are enjoying the day.

Feeling blessed for 2015, now I have a list of friends. I hope this new year bring too much smiles n success.

Thank you

## 1. Scrolling Text  in a text box

<htm>
<script>
/*Set status and title of the page*/
window.status="Welcome to the scrolling text..........       " ;
document.title="Scrolling Program HTML Testing.......       ";

/*function scroll*/
function scr(){
msge=document.title;
msg=window.status;
window.status=msg.substring(1,msg.length)+msg.substring(0,1);
document.title=msge.substring(1,msge.length)+msge.substring(0,1);
theTimer=setTimeout("scr()",100)
}

scr();

document.write("<h1>TEXT SCROLL TESTING</h1>");
/*Initial tt*/
tt=setTimeout("",100);

/*function button click, whether right or left according to the parameter*/
function bnt_Click(LR){
txt=document.frmText.txtshow.value;
if(LR=='L')
{
document.frmText.txtshow.value=
txt.substring(1,txt.length)+
txt.substring(0,1);
}
else
{
document.frmText.txtshow.value=
txt.substring(txt.length-1,txt.length)+
txt.substring(0,txt.length-1);
}
tt=setTimeout("bnt_Click('"+LR+"')",100);
}

</script>

<body>
<form name=frmText>
<input name=txtshow size=50 value="Text scrolling here.......         ">
<br />
<input type=button name=bntL value="Left" onClick="window.clearTimeout(tt);bnt_Click('L');" >
<input type=button name=bntS value="Stop" onClick="window.clearTimeout(tt);">
<input type=button name=bntR value="Right" onClick="window.clearTimeout(tt);bnt_Click('R');" >
</form>
</body>
</html>

demo

Dear Student,

Term End practical examination Dec 2015 for MCA programme is scheduled at IGNOU Study Centre, UPTEC Computer Consultancy, Rana Pratap Marg, Lucknow from 10th January 2016. It is advised to contact examination supdt one day prior to the practical examination to know about your session and batch. Course wise list is also uploaded in RC Lucknow website.

Regional Director,
IGNOU RC Lucknow.

## MCSL-017 15-01-2016  - C & Assembly

Design a flow chart and write an interactive program for the problem given below: Assume that the United States of America uses the following income tax code formula for their annual income:
First US\$ 5000 of income: 0% tax
Next US\$ 10,000 of income: 10% tax
Next US\$ 20,000 of income: 15% tax
An amount above US\$ 35,000: 20% tax.

For example, somebody earning US\$ 38,000 annually
would owe US\$ 5000 X 0.00+ 10,000 X 0.10 + 20,000 X 0.15 + 3,000 X 0.20,

which comes to US\$ 4600. Write a program that uses a loop to input the income and calculate and report the owed tax amount. Make sure that your calculation is mathematically accurate and that truncation errors are eliminated

#include<stdio.h>
#include<conio.h>
void main()
{
float income,i=0,j=0,k=0,tax=0;
clrscr();
printf("\n\n\t\tEnter Your Income Tax -> ");
scanf("%f",&income);

/*--------Calculate The Tax---------*/

if(income>35000)
{
income=income-35000;
i=10000*.10;
j=20000*.15;
k=income*.20;
tax=i+j+k;
}
else if(income>20000 && income<=35000)
{
income=income-15000;
i=10000*.10;
j=income*.15;
tax=i+j;
}
else if(income>10000 && income<=20000)
{
income=income-15000;
i=10000*.10;
j=income*.15;
tax=i+j;
}
else if(income>5000 && income<=10000)
{
income=income-5000;
tax=income*.10;
}
else
{
printf("\n\n\t\t You have no tax");
}

getch();

}
#include<stdio.h>
#include<conio.h>
#include<string.h>
struct emp{

char name;
int age;

};

## File handling concept

void NameAndAgeStoring(){

struct emp e;
FILE *p, *q;
p= fopen("list.txt","a");
q= fopen("list.txt","r");

printf("enter the name and age");
scanf("%s %d",e.name,e.age);
fprintf(p,"%s %d",e.name,e.age);
fclose(p);

do{

fscanf(q,"%s %d",e.name,e.age);
printf("%s %d",e.name,e.age);
}
while(!feof(q));
getch();
}

## File handling concept - Create and store value

void file()
{
FILE *fp;
char ch;
fp = fopen("names.txt", "w");
while( ( ch= getchar())!=EOF){

putc(ch,fp);
}
fclose(fp);
}

## string length without strlen()

void stringCal(){

int i;
char str;
printf("enter string value \n");
scanf("%s",str);
for(i=0; str[i] != '\0';++i){

}
printf(" number of char entered %d",i);
getch();
}

## string reverse using pointer concept

int stringReverse(){
char str, *ptr;
int i, len;
printf("enter string \n");

gets(str);

ptr = str;
for(i=0; i <1000;i++)
{
if(*ptr == '\0'){
break;

}
ptr++;
}

len=i;
ptr--;
printf("revered string: ");

for(i=len; i>0; i--){

printf("%c",*ptr--);

}
getch();
return 0;

}

## search name in file - file concept

void SearchName(){

FILE *fp;
char ch,t, rep;
int flag=0;
printf("enter the value to search \n");
gets(t);
fp = fopen("names.dat","a+");
//tp =fopen("names.dat","w+");
do{

fscanf(fp,"%s\n",ch);
if(strcmp(ch,t) == 0){
//printf("%s\n",ch);
printf("name found, enter the replacement value \n");
gets(rep);

flag=1;
fseek(fp,0,SEEK_SET);
fprintf(fp,"%s\n",rep);
fclose(fp);

break;
}else{
{"ft_lang_label":"__label__en","ft_lang_prob":0.5320061,"math_prob":0.8890386,"size":7772,"snap":"2023-40-2023-50","text_gpt3_token_len":2437,"char_repetition_ratio":0.12062307,"word_repetition_ratio":0.66528064,"special_character_ratio":0.3869017,"punctuation_ratio":0.25636858,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95474106,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-21T19:53:32Z\",\"WARC-Record-ID\":\"<urn:uuid:6fa3e1ea-556c-4067-9cda-c6dd9732daf6>\",\"Content-Length\":\"135537\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:061fa92d-e5a7-4fa9-a74f-95390c8db17e>\",\"WARC-Concurrent-To\":\"<urn:uuid:b1b25834-dbd5-4f4d-b8c8-e410a145bfc4>\",\"WARC-IP-Address\":\"172.253.63.121\",\"WARC-Target-URI\":\"https://mba.ignougroup.com/2015/12/\",\"WARC-Payload-Digest\":\"sha1:G3AD4GPGIU4BK5KGRFIFRTDUBPM5CC3O\",\"WARC-Block-Digest\":\"sha1:ELK5XC7OVU2OTWLUJ5FHCCGKVEKUCJOY\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233506029.42_warc_CC-MAIN-20230921174008-20230921204008-00614.warc.gz\"}"}