I got some problems with my program here. There are lots of lacking in my code. Hope you can help me with this guys. I'm still a student. Here's the problem: A program that prints figures of (*): 1. Displays a menu [1] Figure 1 [2] Figure 2 [3] Figure 3 [4] Figure 4 [5] Figure 5 [6] Figure 6 Enter your choice:_ 2. Input for no. of levels to be printed. 3. Use functions for menu and 6 functions for printing the different figures. Here's my codes: [CODE=c]#include"stdio.h" int menu(); void fig1(int a); void main() { int choice; choice=menu(); …

Member Avatar
Member Avatar
+0 forum 13

Hello, good morning. :) I'm using a J2ME language. I'm coding a SMS Textspeak Corrector. SMS Textspeak Corrector is a mobile application which will correct the shortcut words that the user typed in the Create Message. What I want to happen is, I'm going to create a ".txt" file which contains all the shortcut words along with the original words. The shortcut words will be replaced with the original words in the Textbox. Now my problem is, how will I compare the text in the Textbox to the ".txt" file which contains the shortcut and original words? This is what …

Member Avatar
+0 forum 0

Hello, good morning. :) I got some questions about the RAID 2, 3, and 4: 1. In RAID 2 and 3, if the parity disk is damage can I still recover the files? 2. In RAID 4, if the ECC disk is damage can I still recover the files?

Member Avatar
Member Avatar
+0 forum 4

Hello, good evening. :) This is a thesis. My thesis is "SMS Textspeak Corrector". [b]SMS Textspeak Corrector[/b] is a text messaging software for mobile phone where users can convert or correct the “txt spk” message to the original normal words. For instance, it will correct the “txt spk” text message to “text speak” when a user send the message to the recipient. So the recipient will receive the complete words of text message in his mobile phone. Please take a look my code. I having a problem in replacing the text inside the TextBox. Here's the code: [code]import javax.microedition.midlet.*; import …

Member Avatar
Member Avatar
+0 forum 4

Hello, good afternoon. :) Now I got some problems with my "Create Payroll". I changed the "rate[100]" integer to "salrate[100]" float. After changing these errors prompted me. [b]Errors:[/b] payroll system.cpp(157,22): Illegal use of pointer <-- This is "Error" payroll system.cpp(158,8): Possible use of 'gsalary' before definition <-- This is "Warning" I don't know what are the errors all about. I need some explanations with this and what should I do in order to solve this problem. Here's the whole codes: [code=C]#include <stdio.h> #include <conio.h> #include <string.h> int payroll_system_menu(); int main() { char fname[100][100],lname[100][100],sex[100][100],address[100][100],dob[100][100]; char *day[5]={"Monday","Tuesday","Wednesday","Thursday","Friday"}; int empno[100]; int i=0,j=0,f=0,found=0; int …

Member Avatar
Member Avatar
+0 forum 1

Hello, good evening. :) I'm having a hard time with my "Searching" codes. :( [b]The problem is:[/b] When I try to search the employee number after registering, my program will print "EMPLOYEE NUMBER NOT FOUND". I don't know where's the culprit. :( Here's the whole codes: [code=C]#include <stdio.h> #include <conio.h> #include <string.h> int payroll_system_menu(); int search_employees_menu(); int main() { char fname[100][100],lname[100][100],sex[100][100],address[100][100],dob[100][100]; char *day[5]={"Monday","Tuesday","Wednesday","Thursday","Friday"}; int empno[100],rate[100]; int payrollmenu,searchmenu; int i=0,j=0,f=0,found=0; int srchemp,payemp; float timeinhour[5],timeinminute[5],timeouthour[5],timeoutminute[5]; float totalhour,totalmin,workhour; float sss,cashad,others,gsalary,salary,salrate,tax; totalhour = 0; totalmin = 0; clrscr(); do { payrollmenu = payroll_system_menu(); if(payrollmenu == 1) { printf("\n\t\t******************************************"); printf("\n\t\t********* REGISTER NEW EMPLOYEE **********"); printf("\n\t\t******************************************"); …

Member Avatar
Member Avatar
+0 forum 1

Hello again guys, I got here a Stack and Queue Array program. My problem is deleting an item in Queue. Here's a quick video of my problem: [url]http://www.youtube.com/watch?v=X_G82aU_LV4[/url] Here's my code: [code=C]#include <stdio.h> #include <conio.h> int main() { int a[100],n=0,i; int cho,choi,choice; clrscr(); do { printf("\n\n\n [1] Stack\n"); printf(" [2] Queue\n"); printf(" [3] Exit\n"); printf("\n Enter your choice: "); scanf("%d", &cho); switch (cho) { case 1: { do { printf("\n\n\n [1] Push items\n"); printf(" [2] Pop items\n"); printf(" [3] Display items\n"); printf(" [4] Exit\n"); printf("\n Enter your choice: "); scanf("%d", &choi); switch (choi) { case 1: { clrscr(); printf("\n\n Enter …

Member Avatar
Member Avatar
+0 forum 2

Hello, good morning guys! I got a problem here with my submenus of Stack and Queue link list. When I try to add an item, it won't display and pop the items when I try to select the display and pop functions. Same as well with Queue. Can anyone help me with this? Here's my code: [code=C]#include <stdio.h> #include <conio.h> #include <stdlib.h> struct node { int val; struct node *next; }*head; void main() { int cho,choi,choice,x; struct node *curr,*tempe; clrscr(); head=NULL; do { clrscr(); printf("\n\n [1] Stack\n"); printf(" [2] Queue\n"); printf(" [3] Exit\n\n"); printf(" Enter your choice: "); scanf("%d",&cho); if(cho …

Member Avatar
Member Avatar
+0 forum 3

Hello, I got working code of Linked List here. But I having a problem with adding an item. I added four numbers in the Linked List. First, I added 2 then 8 then 4 and the last one 16. The result would be like this: [IMG]http://i168.photobucket.com/albums/u162/SHENGTON/display-1.jpg[/IMG] What I want to happen is, whatever the first item that I added in the list would be the first list in the list and so on. [b]So if I added "2,8,4,16" the result should be:[/b] The linked list contains: 2 The linked list contains: 8 The linked list contains: 4 The linked list …

Member Avatar
Member Avatar
+0 forum 9

Hello, I'm still a novice with this C programming and I got some problems with my program. I got 3 errors and 3 warnings with my Linked List. I attached an image for you to see. Someone can help me how to solve this problem? Here's my code: [CODE=C]#include<stdio.h> #include<stdlib.h> void push(struct list *sList, int data); void pop(struct list *sList); void print(struct list *sList); struct node { int data; struct node *next; }; struct list { struct node *start; }; int main() { struct list *sList; int i,cho=0; do { printf("\n\n\n [1] Add Items\n"); printf(" [2] Display Items\n"); printf(" [3] …

Member Avatar
Member Avatar
+0 forum 4

Hello, good day. :) I got a problem with "passes occurred". This is the only problem left in my program. My program is about Naive Searching and Binary Searching. There's no problem with my "Naive Searching". The problem is the "Binary Searching". [b]Naive Searching:[/b] This is the result when I inputted a number to be searched in the array. There's no problem with the "passes". The "passes occurred" there is how many times does the searching occurred. [b]Since:[/b] [b]index[/b] --> 0 1 2 3 4 [b]array[/b] --> 5 4 3 2 1 [b]passes[/b] --> 1 2 3 4 5 [IMG]http://i168.photobucket.com/albums/u162/SHENGTON/naive.png[/IMG] …

Member Avatar
Member Avatar
+0 forum 7

Hello, good day. :) I got a problem here in displaying the items of array. In "Display Items", it should display the numbers that I inputted in the "Input Items". Is there lacking in my code? [b]Menu:[/b] [IMG]http://i168.photobucket.com/albums/u162/SHENGTON/menu.png[/IMG] [b]Input Items:[/b] [IMG]http://i168.photobucket.com/albums/u162/SHENGTON/input.png[/IMG] [b]Display Items:[/b] [IMG]http://i168.photobucket.com/albums/u162/SHENGTON/result.png[/IMG] Here's the code: [CODE=C]#include<stdio.h> #include<conio.h> int input(void); void display(int n); int main() { int cho, i, n; do{ printf("\n\n\n [1] Input Items\n"); printf(" [2] Display Items\n"); printf(" [3] Exit\n\n"); printf(" Enter your choice:"); scanf("%i",&cho); i = getchar(); if(cho==1) { n = input(); } if(cho==2) { display(n); } }while(cho != 3); printf("\n\n\t\t\t press enter when ready"); i …

Member Avatar
Member Avatar
+0 forum 11

Hello, good evening. :) I got some problems with the "Bubble Sort" and "Selection Sort". My "Insertion Sort" is already ok. I just can't figure it out with this problem. Hope you can help me with this and explain it to me my mistakes. Here's the whole code: [CODE=C]#include<stdio.h> #include<conio.h> void bubble(void); void insert(void); void select(void); int main() { int cho, i; do{ printf("\n\n\n[1] Bubble Sorting\n"); printf("[2] Insertion Sorting\n"); printf("[3] Selection Sorting\n"); printf("[4] Exit\n\n"); printf("Enter your choice:"); scanf("%d",&cho); i = getchar(); if(cho==1) { bubble(); } if(cho==2) { insert(); } if(cho==3) { select(); } }while(cho != 4); printf("\n\n\t\t\t press enter when …

Member Avatar
Member Avatar
+0 forum 5

Hello guys, My friend bought an old hard drive. He noticed something with the hard drive that it was just replaced with a SATA socket. Now the question is: 1. Does the Transfer Rate of the harddisk (that has been replaced from PATA socket to SATA socket) would be SATA transfer rate? OR would still be PATA transfer rate? Hope someone can answer with this. Thanks!

Member Avatar
+0 forum 0

Good day DaniWeb experts. This is my first post here and hope you can help me with my problem. I'm a noob with Borand C++. I see a tutorial here "[url=http://www.dreamincode.net/forums/showtopic37428.htm]Converting and Evaluating Infix, Postfix and Prefix Expressions in C[/url]". I copied the code and run it in my Borland C++ program. [b]Problem with "Infix to Postfix"[/b] Here's what I get if I run the code: [img]http://i168.photobucket.com/albums/u162/SHENGTON/AnabelInfixtoPostfix.jpg[/img] I'll just include the code here: [code]#include <stdio.h> #include <string.h> #include <ctype.h> #define MAX 10 #define EMPTY -1 struct stack { char data[MAX]; int top; }; int isempty(struct stack *s) { return (s->top …

Member Avatar
Member Avatar
+0 forum 6

Hi DaniWeb experts, good day. :) Just tested my internet speed awhile ago in three websites. Here are the results. [url]www.speedtest.net[/url] [IMG]http://www.speedtest.net/result/339081775.png[/IMG] [url]www.abeltronica.com[/url] [IMG]http://i168.photobucket.com/albums/u162/SHENGTON/Test.jpg[/IMG] [url]www.onestopclick.com[/url] [IMG]http://i168.photobucket.com/albums/u162/SHENGTON/Test2.jpg[/IMG] Question: 1. Why I'm getting different results? Hope you can help me with this. Thanks and God bless. :)

Member Avatar
Member Avatar
+0 forum 4

Hi DaniWeb experts, good day. :) Every time I had a customer and if the problem is in the memory. I used to clean it with eraser, and viola, the computer will had a display again. Someone told me that cleaning a memory using eraser is not advisable. It's because it will fry the RAM chips. [b]Questions:[/b] 1. Is rubbing an eraser to the memory contacts can fry the chips of RAM? 2. Is rubbing an eraser across the connectors will produce a LOT of static electricity? Do you think that his statements are true? Honestly I'm a bit doubt …

Member Avatar
Member Avatar
+0 forum 3

The End.