Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
1
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~4K People Reached
Favorite Tags
Member Avatar for comp_sci11

I'm currently making a program that list all the perfect numbers from 1-1000. and list also its factors. heres my code. [INLINECODE] public class perfect { public static void main(String[]args) { int sum=0; int x=0; for(int num=1;num<1000;num++) { for(int factor=1;factor<num;factor++){ x=num%factor; if(x==0) sum=sum+factor;} if(sum==num){ System.out.print(num); System.out.print("The factors are "); for(int …

Member Avatar for gihariwathsala
0
1K
Member Avatar for comp_sci11

I'm trying to create a tree using C and print its tree traversals(preorder,inoreder,postorder) so i decided to start creating a tree first. My program accepts a characters in preorder but it doesn't print the data I entered. Could someone help me? [code] #include<stdio.h> #define MAXNODES 26 void push(); void pop(); …

Member Avatar for ankitcuul
0
198
Member Avatar for comp_sci11

hi there!! i'm having problem with my winforms. because when i run it at a different computer's resolution it doesn't look like the one i made. like for example, i build it using a 1280X1024 hence it runs fine at using this resolution but when i run it on a …

Member Avatar for sknake
0
418
Member Avatar for comp_sci11

I am wondering if it is possible to connect to a certain database that i've created Programmatically by Using ADO.NET. I was able to create a new database by code but I was wondering if i can connect to it by code? like accessing it after creating tables and entering …

Member Avatar for LizR
0
55
Member Avatar for comp_sci11

hi... I'm using a windows xp.... I have two computers at home(one is the host and the other is a client) and i connected them using LAN so that the other computer can have an internet connection. first, i didn't have any problems regarding internet sharing connection...but after about 1 …

Member Avatar for Stylish
0
130
Member Avatar for comp_sci11

I really need some help here and hope there are some Access database whizzes out there...and i know...there are.... my friend and I are doing a database project for a health care service... and we are trying to use the expression builder to perform calculations But for our fields, we …

Member Avatar for comp_sci11
0
151
Member Avatar for comp_sci11

can somone help me! where can i find a turbo C compiler that has a BGI! Coz i have a program that have some graphics but i can't run it through my compiler coz it doesn't have a BGI! is there someone who knows where i can find a complete …

Member Avatar for ~s.o.s~
2
152
Member Avatar for comp_sci11

[code] #include<alloc.h> #include<stdio.h> #include<string.h> #include<conio.h> #include<dos.h> #include<ctype.h> typedef struct node { int dd,mm,yy; int cus_ac_no[15]; char cus_name[25],cus_add[45],cus_ph_no[17]; double cus_bal; float cus_intrst; struct node *next; }node; node *L,*ptr; void add() { node *p,*q,*new; p=q=L; clrscr(); new=(node*)malloc(sizeof(node)); if(new==NULL) { printf("list is full"); getch(); return; } else { printf(" Enter customer account number …

Member Avatar for Salem
0
266
Member Avatar for comp_sci11

I'm currently working on a ATM program wherein a 3.5 floopy diskette would serves as the card of the user. this diskette has a program wherein it has a account number and a password. And when the user inserted a diskette, he will be instructed to input his password and …

Member Avatar for Grunt
0
441
Member Avatar for comp_sci11

[code] #include <stdio.h> int arrange(int[],int); main() { int array[10],num,i,flag; clrscr(); puts("Enter length of array"); scanf("%d",&num); puts("Enter the enties:"); for( i=0; i<=num-1; i++) { printf("\n(%d).......",i+1); scanf("%d",&array[i]); } do { flag=arrange(array,num); }while( flag==-1); printf("\nThe array in desending order is: "); for(i=0; i<=num-1; i++) printf("\n\t\t***** %3d *****",array[i]); getch(); } int arrange(int *block,int num) …

Member Avatar for dwks
0
251
Member Avatar for comp_sci11

[code]#include<stdio.h> #include<string.h> #define size 21 #define max 5 int id[max][size]; char ln[max]; int pr[max]; int mt[max]; int fg[max]; void getrecord() { int i; for(i=0;i<=4;i++) { clrscr(); printf("id number:"); scanf("%d",id[i]); printf("last name:"); scanf("%s",ln[i]); printf("prelim:"); scanf("%d",pr[i]); printf("midterm:"); scanf("%d",mt[i]); fg[i]=(pr[i]*0.4)+(mt[i]*0.6); } getch(); } void displayreverse() { int i,p; clrscr(); printf(" idno. lstnme prelim …

Member Avatar for Ancient Dragon
0
153
Member Avatar for comp_sci11

can someone help me about creating a window in turbo c?? because i can't find anything about creating a window in turbo c! is there a site explaining or about creating a window in turbo c??

Member Avatar for Ancient Dragon
0
161
Member Avatar for comp_sci11

[code]#include<stdio.h> #define size 21 #define max 10 typedef struct id { int idnum,q1,q2,q3; char fn[size]; char ln[size]; char mi[2]; float ave; }id; id l[max]; id a; int menu() { int i,s=0; while(s<1 || s>4) { clrscr(); gotoxy(5,5); printf("MENU"); gotoxy(5,7); printf("1. insert"); gotoxy(5,9); printf("2. delete"); gotoxy(5,11); printf("3. display"); gotoxy(5,13); printf("4. exit"); …

Member Avatar for Ancient Dragon
0
182
Member Avatar for comp_sci11

[code]#include<stdio.h> #include<string.h> #include<conio.h> #define SIZE 21 #define MAX 10 int id[MAX]; int idn[MAX]; char fn[MAX][SIZE]; char ln[MAX][SIZE]; char mi[MAX][SIZE]; int q1; int q2; int q3; float ave; int menu() { int i,s=0; while(s<1|| s>4) { clrscr(); gotoxy(5,5); printf("menu"); gotoxy(5,7); printf("1.insert"); gotoxy(5,9); printf("2.delete"); gotoxy(5,11); printf("3.Display all"); gotoxy(5,13); printf("4.Quit"); gotoxy(5,15); printf("Select(1-4): "); …

Member Avatar for comp_sci11
0
146