bahr_alhalak 4 Junior Poster in Training

can u elaborate in detail

package lrc;



import java.awt.*;
import java.awt.event.*;

import javax.swing.*;

import java.sql.*;
import java.text.DateFormat;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.Locale;
import java.util.TimeZone;




public class Search extends JFrame {

	private static final long serialVersionUID = 1L;
	
    private static JLabel wel_library;
    static String usname;
     String stat;
     int Copies;
	Db d=new Db();  //  @jve:decl-index=0:
	ShowCurrentTime tim =new ShowCurrentTime();  //  @jve:decl-index=0:
	private JLabel logo = null;
	private JLabel logo2 = null;
	ImageIcon college = new ImageIcon("sd1.JPG");
	ImageIcon college2 = new ImageIcon("sd.JPG");
	private JTabbedPane jp;
	private int user;
	private JLabel logo1;
	
///////////////////////////////////Search  component\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
	
    private JPanel search_pan;
    
	private JLabel lbSearch;
	private JButton btnFind;
	
	private JTextField txtSearch;
	private JRadioButton rb1,rb2,rb3,rb4;
	private int flag=0;

	private String bname,bauthor,bid,bcat,search;
	private int bmid,rows=0;
	private JTable table;
	private JScrollPane jsp;
	private Object data1[][];
 
   
    public Search() {
    	usrdetail();
        initComponents();
     
    }
    
   
    
    private void initComponents() {
    	
    	this.setSize(20000, 775);
    	 getContentPane().setLayout(null);
        jp = new JTabbedPane();
        logo1 = new JLabel(college2);
		logo1.setBounds(new Rectangle(2, 625, 1282, 192));
        
        wel_library = new JLabel();
        
        JLabel dateT = new JLabel();
        
        
      
        search_pan = new JPanel();
        

    
        //////////////////////////////Search component\\\\\\\\\\\\\\\\\\\\\\\\\
        
       
        
        wel_library.setFont(new java.awt.Font("Tahoma", 3, 15));
        wel_library.setHorizontalAlignment(SwingConstants.CENTER);
        wel_library.setText("Welcome"+":  "+ usname);
   
        wel_library.setBounds(0, 0, 200, 50);
       
       
        
    Calendar cal = new GregorianCalendar();
    String hour = String.valueOf(cal.get(Calendar.HOUR));
    String minute = String.valueOf(cal.get(Calendar.MINUTE));
    String second = String.valueOf(cal.get(Calendar.SECOND));
        
    dateT.setText(hour + ":" + minute + ":" + second);
    
    TimeZone timeZone = TimeZone.getTimeZone("CST");
       
        DateFormat formatter = DateFormat.getDateTimeInstance(
        		  DateFormat.FULL, DateFormat.FULL, Locale.US);

		formatter.setTimeZone(timeZone);


        dateT.setFont(new java.awt.Font("Tahoma", 3, 15));
        dateT.setHorizontalAlignment(SwingConstants.CENTER);
        
        GregorianCalendar calendar = new GregorianCalendar();

      
   
        dateT.setBounds(640, 0, 620, 50);
       
        lbSearch = new JLabel ("Search Field");
        lbSearch.setFont(new Font("Tahoma", 3, 18));
		lbSearch.setForeground (Color.black);
		lbSearch.setBounds (115, 95, 200, 20);
		
		txtSearch = new …
bahr_alhalak 4 Junior Poster in Training

Hi every one,
I need ur help on this part of my project i cant know to solve it and i done what i can....
the problems are:
1- the time must be update with time of computer but i cant do it just I take the current time???
2- the second problem is the table I need it to be embedded in the search fram not on other fram Also it has some problem i cant to fixed it,
Please help me.

all the clas and datBase are attachment.

bahr_alhalak 4 Junior Poster in Training

it's not a homework .

come on ,, no one want to help me

jephthah commented: here , have some more, liar. -1
bahr_alhalak 4 Junior Poster in Training

thanx for ur replay , and i think i dont do any thing wrong . i am just put a topic for participation and discussion .

bahr_alhalak 4 Junior Poster in Training

hello every body >>

i wana help to answer the question in the atteched file .

Nick Evan commented: no effort -2
bahr_alhalak 4 Junior Poster in Training

sorrry i mean reservation table....

reserve a particular book borrowed by others currently!!!

so i think we need to reservation

bahr_alhalak 4 Junior Poster in Training

thanx to interacte with my question . but what about reversation table ?
and u mention one to many relation betwen user and borrwing table??
and no relation between book and user?how it happen?
plez more explination..
and thanx

bahr_alhalak 4 Junior Poster in Training

hello every body

i want help for the ERD , if any missing in that pleas tell me and advise me how can i modify this ERD .

this ERD for Online Library management system . the diagram attached

bahr_alhalak 4 Junior Poster in Training

account No. ....... Pin No........Name........Balance
ex: a0910........21996........james........210.000


1) write a program to store data instance for 50 customers , and sort in the order of account no and take a report of all customers.

2) To store a data in a file .

pspwxp fan commented: Start your work yourself. +0
bahr_alhalak 4 Junior Poster in Training

i admire Senior members and their comments & suggestions.

i am just trying to discuse with them .
i want answer for my problem

tux4life commented: Begging won't help! -2
bahr_alhalak 4 Junior Poster in Training

there is more :(

bahr_alhalak 4 Junior Poster in Training

there are a mistakes i dont know how to solve it .. i am trying :(

#include<stdio.h>
#include<conio.h>
 
void main()
{
 float total,average, s;
 int i;
 int a;
 clrscr();
  printf("Enter the numbers : ");
 scanf("%d",&a);
 for ( i=0;i<a ; i++)
 {
  total=total+a;
  s=s+1;
  }
   average =total/s;
 printf("The sum of numbers are %f and the average is %f",total,average);
}
William Hemsworth commented: Read previous posts. -2
iamthwee commented: will this turn you to green? +21
bahr_alhalak 4 Junior Poster in Training

i need another solution for for looping

bahr_alhalak 4 Junior Poster in Training

thaaaaaanx WaltP ;

i am still trying

#include<stdio.h>
#include<conio.h>
 
int main()
{
 float total,average;
 int s;
 float a;
 clrscr();
do
{
total=total+a;
  s=s+1;
}
 while((scanf("%f",&a)>0));
 average =total/s;
 printf("The sum of numbers are %f and the average is %f",total,average);
}
bahr_alhalak 4 Junior Poster in Training

the problem that i need to use this program in another way
for example : for looping , do-while looping

bahr_alhalak 4 Junior Poster in Training

hello every body

i have a problem with a c program .
the question that ( write a c program that reads a real numbers untill error then calculate the sum and the average of all numbers )

i have solve it with a while looping . and i need it with adiffrent looping .

#include<stdio.h>
 
void main()
{
 float total,average;
 int s;
 float a;
 
 while((scanf("%f",&a)>0))
 {
  total=total+a;
  s=s+1;
 }
 average =total/s;
 printf("The sum of numbers are %f and the average is %f",total,average);
}
bahr_alhalak 4 Junior Poster in Training

How r u every body.
I have some qoustions:
1)What is the difference between an instance data field and a static data field??

2) Also I have assignment and i wont to add txt on text area and when add new one txt it must appear in next line of text area ???

bahr_alhalak 4 Junior Poster in Training

hi every one
i want C program to store 10 characters in alphabetical order using merge sort and quick sort?

and another program to input 10 names ,maximom of 25 characters ,using merge sort and quick sort?

bahr_alhalak 4 Junior Poster in Training

come-on ... why u r not want 2 be helpfull ..

i ask 4 help ..

bahr_alhalak 4 Junior Poster in Training

We are not here to give you the solution. We are here to help you find the solution if you show initial effort. Where's the effort ? Tells us what have you searched on the net about threads in Linux/Windows. What you are only putting effort in is writing useless posts without following what others are tyring to tell you.

thats mean u want all things what i have found it in the net .
i saw many things . but it diffecult to found spisific information about the operating systems. so, could u advice me ??

bahr_alhalak 4 Junior Poster in Training

waaaaaaw . i think we r here 2 help each other . if i know the solution . i'll not ask 4 help .

bahr_alhalak 4 Junior Poster in Training

And is your report getting done?

what u mean ???

bahr_alhalak 4 Junior Poster in Training

am waiting 4 help .. :(

bahr_alhalak 4 Junior Poster in Training

So write it. It's your homework and this has nothing to do with Java.

i dont know.
where can i put it ??

bahr_alhalak 4 Junior Poster in Training

write a report on threads in operating systems such as Linux and windows XP ?

jasimp commented: You never learn. -2
Killer_Typo commented: you can't learn unless you put forth the initial effort. -1
stultuske commented: just ... wow -1
bahr_alhalak 4 Junior Poster in Training

see attached file

Hi

bahr_alhalak 4 Junior Poster in Training

hi

bahr_alhalak 4 Junior Poster in Training

thanks

bahr_alhalak 4 Junior Poster in Training

Iam waitting>>>>>

bahr_alhalak 4 Junior Poster in Training

hi

i have question .

what data type of time ??

bahr_alhalak 4 Junior Poster in Training
import javax.swing.JOptionPane;
public class number_Occurrences {
public static void main(String[]args){
String s= JOptionPane.showInputDialog("please enter asentence");
int []counts= countLetters(s.toLowerCase());

String output="";
for (int i=0; i<counts.length; i++) {
if (counts[i] !=0)
output+=(char)('a'+i)+":"+ counts[i]+((counts[i]==0)?"\n":"\n");
}

JOptionPane.showMessageDialog(null,output);


}



public static int[] countLetters(String s) {
int[] counts=new int[26];

for (int i=0;i <s.length();i++){
if(Character.isLetter(s.charAt(i)))
counts[s.charAt(i)-'a']++;
}
return counts;
}

}
bahr_alhalak 4 Junior Poster in Training
import javax.swing.JOptionPane;
public class number_Occurrences {
public static void main(String[]args){
String s= JOptionPane.showInputDialog("please enter asentence");
int []counts= countLetters(s.toLowerCase());


String output="";
for (int i=0; i<counts.length; i++) {
if (counts !=0)
output+=(char)('a'+i)+":"+ counts+((counts==0)?"\n":"\n");
}


JOptionPane.showMessageDialog(null,output);



}


public static int[] countLetters(String s) {
int[] counts=new int[26];


for (int i=0;i <s.length();i++){
if(Character.isLetter(s.charAt(i)))
counts[s.charAt(i)-'a']++;
}
return counts;
}


}
bahr_alhalak 4 Junior Poster in Training

Hi ,
how are you?
please, could you help me to solve this question?
which is a part of the compitision's questions.
I am waiting for your respond!

bahr_alhalak 4 Junior Poster in Training

in this code give me another solving it not work correctly

public void initializeColor() {
        // TODO Auto-generated method stub
        double a =Math.random()*10;
        if(a<7.0)
            color=normal;
        else
            color= abnormal;

    }
bahr_alhalak 4 Junior Poster in Training

hi every one...
i need some help from u..
i solved my assingment by my self an I need from u some help I will post my prgram and please check it if it need any edite or anything...


This is the mainClass

import java.util.*;
public class mainClass {
	
	public static void main(String []args){
		
		

		Scanner w = new Scanner(System.in);
		
		System.out.println("Please enter the size of the array: ");
		int size = w.nextInt();
		
		Cell arr [][]=new Cell [size][size];
		
		for (int a =0 ;a<size;a++){
			
		
			for (int e =0 ;e<size;e++){
				Cell f = new Cell();
				
				f.initializeColor();
				arr[a][e]=f;
				
		}
		}
		
		displayArray(arr, size);
		System.out.print("\n Enter the number ");
		int x=w.nextInt();
		
		System.out.print("\n Enter the second number ");
		int y=w.nextInt();
		
		
		int r= countCells(arr,x,y,size);
		System.out.print("\n Enter the second number "+r);
		
	
	   //please implement the main method
	
	}//end main
	
	
	/*
	 *The method countCells is a RECURSIVE method whose job is to find
	 *how many cells are in the same blob as a given cell (i.e cell with
	 *specified coordinates x and y). The variable int size represents the
	 *size of the two-dimensional array. This value would have been provided
	 *by the user at the beginning of the main method.
         *Do NOT make any changes to the method declartion.
	 */
	public static int countCells(Cell [][]cells,int x,int y,int size){
			
	Cell r=new Cell();
		
		if(x <0 || x>=size || y<0 || y >= size)
			return 0;
		else if (cells[x][y].getColor().equals(r.normal) || cells[x][y].getColor().equals(r.temp))
			return 0;
		else
		{
			cells[x][y].setColor(r.temp);
				return 1 
			
			+ countCells(cells, x - 1, y + 1, size ) + …
bahr_alhalak 4 Junior Poster in Training

yeah you do.. not necesarilly ours though.
if I read over this code you've posted, it seems that in the comments you can write flawless (or almost flawless) english, while in your posts, you only reach to the level of my 2-year old cousin's english, and he has never even heard english, let alone tried to speak/write it.

this gives me the idea that you did not write this code, this was given to you as your assignment, or as aid by someone who did you one huge favour.

stop trying to cheat your way through, and put some effort in it yourself.

this shows you haven't even read your assignment, so, why should we?

upon my word I wrote this code and no one given to me as my assignment, or anything else >> please choose your word carefully>>
And I'm sorry to ask help from you>>

bahr_alhalak 4 Junior Poster in Training

upon my word I wrote this code and no one given to me as my assignment, or anything else >> please choose your word carefully>>
And I'm sorry to ask help from you>>

bahr_alhalak 4 Junior Poster in Training

my friend could u help me by give me the code of print array at least!!!

bahr_alhalak 4 Junior Poster in Training

this is the file bellow .. download and explain what u understand my frind

bahr_alhalak 4 Junior Poster in Training

because we need only for one cell ..

bahr_alhalak 4 Junior Poster in Training

hello again every body ...


i tried 2solveit ,but there are some problem faced me .. and i'll insert what i did .>>>

This is the main class..the main problem in it how 2 print the array like the example which i show it 2 u ...

import java.awt.DisplayMode;
import java.util.Scanner;



public class mainClass {

private static String[][] Cell;
final static String normal="white";
final String abnormal="green";
final static String temp="red";


public static void main(String []args){

Scanner w = new Scanner(System.in);
Cell c1 = new Cell();
//please implement the main method

System.out.println("Please enter the size of the array: ");
int size = w.nextInt();

displayArray();

c1.initializeColor(size);

System.out.print("Please enter the the cordinates to chek: ");

System.out.println("r: ");
int x = w.nextInt();

System.out.println("c: ");
int y = w.nextInt();

countCells( x, y);



}//end main


/*
*The method countCells is a RECURSIVE method whose job is to find
*how many cells are in the same blob as a given cell (i.e cell with
*specified coordinates x and y). The variable int size represents the
*size of the two-dimensional array. This value would have been provided
*by the user at the beginning of the main method.
*Do NOT make any changes to the method declartion.
*/

public static int countCells( int x, int y){
int count=0;

for(int x1=0; x1<Cell.length; x1++)
for(int y1=0; y1<Cell.length; y1++){
Cell[x][y]=normal;
}

for(int x1=0; x1<Cell.length; x1++)
for(int y1=0; y1<Cell.length; y1++){
if(getblobsize(x,y, Cell) > 0)
count++;
}
System.out.print("The number of blobs: " + count);
return count;

}//countCells()




private static …
peter_budo commented: Chat language, extensive use of red colour, didn't point exact errors and didn't close previous post. What to do with you? -2
bahr_alhalak 4 Junior Poster in Training

u told me try to solve it >>>


and i did what i can 2 do ...

if u do not have any idea about solving this program dont shar us >>

and thanx4 ur advise>>

bahr_alhalak 4 Junior Poster in Training

hi again ...

i tried 2solveit ,but there are some problem faced me .. and i'll insert what i did .>>>

This is the main class..the main problem in it how 2 print the array like the example which i show it 2 u ...

import java.awt.DisplayMode;
import java.util.Scanner;



public class mainClass {
	
	private static String[][] Cell;
	final static String normal="white";
	final String abnormal="green";
	final static String temp="red";
	
	
	public static void main(String []args){
	
		Scanner w = new Scanner(System.in);
		Cell c1 = new Cell();
		   //please implement the main method
			
			System.out.println("Please enter the size of the array: ");
			int size = w.nextInt();
			
			displayArray();

			c1.initializeColor(size);
			
			System.out.print("Please enter the the cordinates to chek: ");
			
			System.out.println("r: ");
			int x = w.nextInt();
			
			System.out.println("c: ");
			int y = w.nextInt();
			
			countCells( x, y);
			
			

	}//end main
	
	
	/*
	 *The method countCells is a RECURSIVE method whose job is to find
	 *how many cells are in the same blob as a given cell (i.e cell with
	 *specified coordinates x and y). The variable int size represents the
	 *size of the two-dimensional array. This value would have been provided
	 *by the user at the beginning of the main method.
         *Do NOT make any changes to the method declartion.
	 */
	
	public static int countCells( int x, int y){
		int count=0;
		
		for(int x1=0; x1<Cell.length; x1++)
			for(int y1=0; y1<Cell.length; y1++){
				 Cell[x][y]=normal;
			}
		
		for(int x1=0; x1<Cell.length; x1++)
			for(int y1=0; y1<Cell.length; y1++){
				if(getblobsize(x,y, Cell) > 0)
					count++;
			}
		System.out.print("The number of blobs: " + count);
		return count;
	
	}//countCells()
	



	private static int getblobsize(int r, int …
bahr_alhalak 4 Junior Poster in Training

hi my frinds ,,,


what happen..there is no one want to help .. i do not why ,, i need only this progam ,, i stay in daniweb mor than one week and no one want 2 help ,,i do not no why ,,


please our frinds ,,, do not forget me

Ezzaral commented: You refuse to show even the slightest effort. -2
bahr_alhalak 4 Junior Poster in Training

i need the idea

bahr_alhalak 4 Junior Poster in Training

hey ddanbe ;

my problem is i want to solve the program >>

bahr_alhalak 4 Junior Poster in Training

hey my frinds ...

there are 227 views and no one want to help me >>

bahr_alhalak 4 Junior Poster in Training

as we know if the person dose not know how to find what he or she want . he/she has to ask others >>>


and i come to to ask my frinds .. not to teach me hot to write .

bahr_alhalak 4 Junior Poster in Training

the general idea is: you analyse your assignment, check what kind of data (variables, Objects, ...) you'll need, what kind of actions must be performed on them, ...

then, you start creating your Objects, after which you create the code that uses them, you compile and run it

h'm sure i'll do these steps >>>

but i need more explaination

Ezzaral commented: No, you need to show some effort. -2
bahr_alhalak 4 Junior Poster in Training

i need only the idea to solve it >> and i will do it by myselfe >>>