Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~6K People Reached
Favorite Tags
c x 42
java x 30
c++ x 1

37 Posted Topics

Member Avatar for nabil1983

Okay i've created an array object with help from here like so: CdRecord[] array = new CdRecord[5]; array[0] = new CdRecord(); now i've used a while statement to write to the arrays , im writing CDName,AlbumName & NumberOfTracks... when i run my program it all works except that when i …

Member Avatar for emilchacko
1
161
Member Avatar for nabil1983

Hello Everyone, been a while since i was here. Im doing my final year project (Dissertation) in BSc Computing Science, problem is i can not find a suitable topic to do it on, is there neone that can help me on this, some of the topics i have considered are …

0
52
Member Avatar for nabil1983

Ok got a new problem i've started to implement a GUI for my program but for some reason in the actionlistener metho i cannot pass the method i want to display.. I dont know what im doing wrong because i am not familiar with using GUIs... can somebody please help …

Member Avatar for jwenting
0
149
Member Avatar for nabil1983

Ok i got this thing to compile now perfectly no errors, when i run it the menu comes up. The problem is when i use the option in the menu it gives me an exception error?? ne one know where i went wrong on this one.... what i did was …

Member Avatar for DeepZ
0
119
Member Avatar for nabil1983

Hello Everytime i compile this i keep getting an error on non-static method can not bu passed to static method, i understand that. But how can i get around this, without making the non-static method static , because it has variable relating to otha methods ... i also keep getting …

Member Avatar for DeepZ
0
223
Member Avatar for nabil1983

hello. Im having problems trying to get my jframe gui to work correctly i got the window all done fine but when i tell it to display somethis in the code , it comes up with errors when compiled. Can someone please tell me where im going wrong .. apreciate …

Member Avatar for DeepZ
0
185
Member Avatar for nabil1983

Hello. I require help with my java stuff. Basically what i gotta do is create classes for a Text User Interface which will allow users to input student details. The problem is i really am confused with all this stuff , i've managed to create the classes, but i cant …

0
70
Member Avatar for nabil1983

Ok i finished off the program i was making. now i just got a couple problems icant work out....spent hours doing this please help me with my last few probs... First thing is when i write the records to file, and then when i try to sort it...the display shows …

Member Avatar for dwks
0
227
Member Avatar for nabil1983

Hello. I am doing a project for a database that takes in student details and allows users to display their records. My problem is this: I have created a class called student (below coding) and created a menu class that displays the menu (2nd coding) I seem to be stuck …

Member Avatar for server_crash
0
108
Member Avatar for nabil1983

Trying to understand how to do this Q. Can some explain using O-notation, how would i analyse the efficiency of the two algorithms below. ? Assuming that the critical operation is compute and size is the size of the array. 1) compute(a[1]) + compute(a[2]) + compute(a[3]) + compute(a[size]) 2) for …

Member Avatar for nabil1983
0
100
Member Avatar for nabil1983

Hello Im trying to understand and explain how the quick sort code actually works, i unable to understand or xplain line 4 to 11. Can ne of u xplain to me briefly what those lines actually do in the code algorithm.... Apreciate ne help. [CODE]do { while(strcmp(array[i].Genre,x)<0 && i<right) i++; …

Member Avatar for perniciosus
0
118
Member Avatar for nabil1983

Hello Can someone tell me what this sort algorithm is called.? And if possible a little bit of information about it... [CODE]void record_search(struct CdRecords cdDB[]) { system("CLS"); int i; char name[20]; printf("Enter Name:"); scanf("%s", name); for(i = 0;i<datasize;i++) { if((strcmp(name,cdDB[i].Artist))==0) { ENTER DATA TO BE DISPLAYED } } printf("Press Enter …

Member Avatar for SpS
0
175
Member Avatar for nabil1983

i got the quicksort coding correct ,, the problem is that the data is still not sorting below is the complete program to the database. The data is to be sorted by genre like i have stated i have checked over and over again but cant find nething wrong... The …

Member Avatar for nabil1983
0
183
Member Avatar for nabil1983

Hey after spending a few hours trying to understand why my quick sort is not owrking, i've tried calling the q_sort() and quick_sort() but with no luck...... below is how i had it from the start for less confusion,, can someone tell me why it isnt working... i've checked the …

Member Avatar for dwks
0
181
Member Avatar for nabil1983

This program is almost the same as the one last i posted but here the bubble sort algorithm is not working, i get a compiler error saying:: size of cdRecords is not known and need explicit cast to convert I cant work out what the problem is because another program …

Member Avatar for nabil1983
1
213
Member Avatar for nabil1983

I got everything working, a couple of probls with file write. But ill work it out. I just need help on getting the quick sort working here...i got it written and even in my switch statement but for some reason it dont work....ne one know y...?? [CODE]//(Database Management System(DBMS), user …

Member Avatar for nabil1983
0
453
Member Avatar for nabil1983

Does anyone know the code to show the critical count for a quick sort algorithm. Basically my cd database is almost finished. What i need to do is show a critical count for the quicksort quicksort for my database [CODE]void q_sort (struct CdRecords array [], int count) { quick_sort(array,0,count-1); } …

Member Avatar for nabil1983
0
278
Member Avatar for nabil1983

im trying to do a sort for the array structure records that i have entered... so far i've tried to use a book to do the coding...but im lost.. can anyone tell me if im on the right track or where im going wrong!!! [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> …

Member Avatar for perniciosus
0
186
Member Avatar for nabil1983

Hello I've rearranged my program so i can enter more than one word for a field and it works,, new problem is after just entering data once,, i get stuck in the menu with a loop. tried all kinds of stuff to get out but cant. what i want to …

Member Avatar for HyperEngineer
0
143
Member Avatar for nabil1983

'ello whenever i compile i keep getting an error saying identifier or declarator expected....for some reason i cant correct it neone know whats wrong??? [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> void filewrite(void); void fileprint(struct tuple *myDB); // Idea here is to enter an array of structures // write them to …

Member Avatar for Ancient Dragon
0
234
Member Avatar for nabil1983

Ok i've tried understanding some previous posts but im just finding it really hard to work with structure passing to other functions and sorting. Can someone please explain in a simplistic on how i can pass structure to a function that sorts the structure by 'Year' or 'Artist' Below is …

Member Avatar for Ancient Dragon
0
142
Member Avatar for nabil1983

Ok i decided to start from scratch for my CD database. I've created an array structure, i can enter the fields, but for some reason it dont display to screen neone know why please??? also how can i add an option to either add more records or just quit . …

Member Avatar for perniciosus
0
112
Member Avatar for nabil1983

Hello I done the program below for a CD database but im having a few problems with some of the functions can someone please help me out here ,, :: First this is when i enter a record i can enter the first set but when i try to enter …

Member Avatar for Dave Sinkula
0
152
Member Avatar for nabil1983

im writing a cd database program, i need to know how i can enter characters in a field which include numbers and letters. neone know what the type is for this. i've tried the following: char album[50]; char s1[50]; none of these work they only allow me to write characters …

Member Avatar for winbatch
0
106
Member Avatar for nabil1983

Does anyone know wether i can convert a Java written program to C? Thank You

Member Avatar for hollystyles
0
118
Member Avatar for nabil1983

Can someone please have a look and help me on making this Binary Search algorithm work. Donmt know what is wrong with it . [CODE]#include <stdio.h> #include <stdlib.h> #include <time.h> enum SearchResult {FOUND, NOT_FOUND}; SearchResult binarySearch(int array[], int key, int low, int high, int *comparisons); void fill_array(int array[], int sizeOfData); …

Member Avatar for SpS
0
209
Member Avatar for nabil1983

Hello ppl. Ok have to investigate and write a report on the efficiency of the following Linear Search algorithm. But im having problems starting off.... can anyone here help me kick start this 3 page report... would apreciate any information & help you guys here can give. [CODE]// This program …

Member Avatar for Rashakil Fol
0
183
Member Avatar for nabil1983

Does neone know the code instruction to store an array of CD objects. Each entry in the array has to be a single object describing a CD. i.e: Artist Name , Album Name, Number of tracks i've written the program out but i cannot seem to get the above right. …

Member Avatar for NPH
0
101
Member Avatar for nabil1983

hello everyone. ok i got a program (see below i know its long but just copy and paste and it will work),, my only problem is i need to include a search method (i.e. where i enter CDName and it prints out the rest of the details of the CD.) …

Member Avatar for NPH
0
112
Member Avatar for nabil1983

Does ne one know how to answer this question? Discuss the truth or otherwise of the statement “Recursion and loops are the same thing".

Member Avatar for paradox814
0
284
Member Avatar for nabil1983

Can someone explain this sort algorithm to me and how i can make a more efficient version, justifying the changes. for (int p = 0; p<n-1; p++) for (int counter = 0;counter < n-1; counter++) if (a[counter]> a[counter+1]) swap(a, counter, counter+1); Apreciate all help.

Member Avatar for jwenting
0
156
Member Avatar for nabil1983

Hello Everyone. Just a couple of questionsn i wanted to know. can someone explain what is meant by an index array and why its use can improve the efficiency of sorting? Can someone give me a more efficient verson of the sort algorithm below with reasons why its more efficient?? …

Member Avatar for tonakai
0
134
Member Avatar for nabil1983

Hello. As i couldnt work out my problem with my other version, i re-wrote it in a totally different form, now my program does display all the entries i make,, but the problem now is how do stop the dialog box from keep coming up. For example: i input 2 …

Member Avatar for Nandus
0
371
Member Avatar for nabil1983

Ok i've understood the use of arrays and most of it.... but my problem is no matter wat i do my program still only displays the last entry i make and not all. i've tried a for loop in the print method but no luck. Neone know what im doing …

Member Avatar for paradox814
0
151
Member Avatar for nabil1983

Hi all, This program below sorts arrays of integers. It counts the number of times it compares pieces of data to do the sort.With the array size set at 4 it always takes 9 comparisons. Does neone know how i can Modify it to read in a series of four …

Member Avatar for freesoft_2000
0
112
Member Avatar for nabil1983

Ok wrote this program out, compile it it compiles, when i run it it starts off nicely, but when i enter Album Name it gives me an error. Neone know where im going wrong..... import javax.swing.*; public class CdStorage { public static void main (String[] args) { String menu_choice; int …

Member Avatar for nabil1983
0
135
Member Avatar for nabil1983

Hi all, Ok i've started doing a mini project about a CD collection database. i got the program working ata stage where you can enter a single entry and the record is printed to the screen, the problem im having is i can not seem to modify the program to …

Member Avatar for tonakai
0
161

The End.