- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
41 Posted Topics
here code for make new file .. how i can make it to insert data to file and open it /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package files; import java.io.*; import java.util.Scanner; public class Files{ public static … | |
hi .. i make this code .. but when i run it ..doesn't show whole output in window ..and its not show correct answer .. i can't find error / but its not worked welll /* * To change this template, choose Tools | Templates * and open the template … | |
plz i have question that is statistical which is course that i still missed .. how i can make code for median , mean,strdDevition , mode else presented as class and object i will realy thanks for whom will help me ,, | |
hi i need to help me to understand this code how its work and depend on what it determine how many time yopu should enter values [CODE]#include <stdio.h> #define SIZE 100 #define SENTINEL -99999 #define TRUE 1 #define FALSE 0 #define READ 10 #define WRITE 11 #define LOAD 20 #define … | |
in this code i have logical error its give me wrong output [CODE]import java.util.Scanner; public class OneFile { static final int MAX = 100; static final int READ = 10, WRITE = 11, LOAD = 20, STORE = 21; static final int ADD = 30, SUBTRACT = 31, MULTIPLY = … | |
hi i was writte program that implement one-d array user enter 10 element without any duplication it is give me all element its already exist [CODE]import java.util.Scanner; public class Duplicates { public static void main(String[] args) { Scanner input = new Scanner(System.in); int[] array = new int[10]; int[] copyarray = … | |
i made code that calculate fibonaci number (n) but how i can determine the largest fibonaci number [CODE] import java .util.Scanner; public class Fibo { public static long fib(int n) { if (n <= 1) return n; else return fib(n-1) + fib(n-2); } public static void main(String[] args) { Scanner … | |
hi can someone explain this small code how its work : [CODE]/** * @(#)Output.java * * * @author * @version 1.00 2011/12/24 */ public class Output { public static int rec(int x, int n) { if (n < 0) { System.out.println("Illegal argument"); System.exit(0); } if (n > 0) return ( … | |
my code should print numbers in reverse array its not have error but the lest for statement its not print array in reverse order [CODE] import java .util.Scanner; public class R { public static void main (String [] args){ Scanner input=new Scanner(System.in); int size; System.out.println("Size "); size=input.nextInt(); int [] array=new … | |
can help me in this code i made it to check if a given number is plindrom or not [CODE] import java .util.Scanner; public class PNumber { public static void main(String[] args) { System.out.println("Enter size "); Scanner input = new Scanner(System.in); int size = input.nextInt(); int [] array=new int [size]; … | |
plz i try to make factorial program but i have mistake [CODE] import java .util.Scanner; public class Factorialrec { int fact(int n) { int result; if ( n ==1) return 1; result = fact (n-1) * n; return result; } } public static void main(String [] args){ Scanner input = … | |
hi can i reset my password and user name for oracle 10g i lost all users and user default it can not log using system . sys or scott at moment plz how i can rest password i have to do project and i cant acess to sql plus | |
the output of this program should return the number of letter in words [CODE]/** * @(#)Coun.java * * * @author * @version 1.00 2011/11/18 */ import java .util.Scanner; public class Coun { Scanner input=new Scanner(System.in); public static void main(String [] args) { System.out.println("Enter a string: "); String[] arr = input.nextInt(); … | |
hi I want to implement this program correctly about plindrom like ( ara) is plindrom i try to writed code for non-recursivly but i didn't understand method CharAt () IgnorCase() [CODE] import java.util.Scanner; public class Plindrom { public static void main (String[] args) { String str; int left, right; Scanner … | |
program enter element and if num is already exist give message enter other number no duplicate my code give me alwayes else condition [CODE]/** * @(#)Enter.java * * * @author * @version 1.00 2011/11/18 */ import java.util.Scanner; public class Enter { public static void main(String []args){ Scanner input=new Scanner(System.in); int … | |
[CODE]/** * @(#)TestClassOne.java * * * @aziza meshal * @version 1.00 2011/11/12 */ import java.util.Scanner; public class TestClassOne { public static void main(String [] args) { int size; Scanner input=new Scanner (System.in); System.out.println("plz enter size of array"); size =input.nextInt(); int [] a1 = new int [size]; ClassOne [] a2 = … | |
calculate value of PI from the infinite series Ï€ = 4-4/3+4/5-4/7+4/9-4/11 +..... write a class with two data members aproxivalue(double value ) and percision ( integer value ) where precion is the number of terms of the series used to compute the value of approxivalue : 1- default constructor permits … | |
hi i write code that is mesure the area of traingle with two constructor ... with argument and default constructor and set ,, get , high and length ,, and tostring , equals methods but i think is there a logical error class file [CODE] public class Traingle { private … | |
write a class Circle with one double data radius . write motheds ::: public Circle(),public Circle (double),public Circle (Circle c) public double getRadius() public setRadius (double) public getPerometer(int)where the parameter indicates the number of terms for Ï€ public getArea (int) where the parameter indicates the number of term for Ï€ … | |
hi my program should implement queue using stack h make a code but i still have error if an one can tell me what is he error [CODE]#include<stdio.h> #include<conio.h> #include<process.h> int in_top=-1; int out_top=-1; void in_stack_push(int item); int in_stack_pop(); void out_stack_push(); int out_stack_pop(); int insert_queue[20],delete_queue[20]; void main() { int i,ch,item; … | |
hi i hope you to help me . my teacher in introduction to programming concept course ask me to make a small realy small compiler that i did not study before .. i don't have any idea about compiler never if you can give me tutorial about it ..plz i … | |
i am write a code to print element in stack in reverse order i need two stack to push from first and pop to other but i have something error .. [CODE]#include<iostream.h> #include<process.h> struct stack{ stack s1,s2; int info; }; class stacks { private: stack top; int x; public: s1.stack(){top=-1;} … | |
waht the steps to make c++ compiler my compiler is to define - ,+ * / mathematical expresstion ? how i can make it plz :) i realy need help | |
plz help me with code c++ for binary full adder that sum to binaryn like 1111 + 0110 [CODE]#include <iostream> using std::cout; using std::endl; const int LENGTH = 5; char sumChars(char x, char y, char& carry); int main() { char first[LENGTH + 1] = "10100";// 20 char second[LENGTH + 1] … | |
hi plz i wanna ask how i can print stack from bottom to top ... :( ? | |
plz how i can write a program to pop from one stack and save the value deleted to onther stack .. means .. pop the top from one stack and push the delete value to other stack ... :( | |
plz i cant't correct the errors .. can any one correct this [CODE] #include<iostream.h> #define size 100 struct stack { int item [size]; int top=0 ; }; class m{ bool isempty(stack s) { if (s.top==-1) return true ; else return false ;} bool isfull(stack s); } return (s.top==size-1);} int count … | |
what the wrong for this code : [CODE]if (head==NULL)//1 if the list is embty cout<<"NO element in linked list "; else if { if (head==tail){ ///2- if we have one node delete head ; } [/CODE] how i can write the other case if valid addrese if the addrese in … | |
i am write program that insert at tail in circular singlelinkedlist but i have some errors .. [ICODE]#include<iostream.h> struct node { int info ; node * next ; }; class clist{ private : node *tail; int size; public: clist(){ tail=NULL; size=0; void addtail(int x){ node *p=new node; p->info=x; if(tail==NULL) p->next=p; … | |
i make twwo single linkedlist,, but i didn't know how i can merge those lists ;; [ICODE]#include <iostream.h> class linklist { private: struct node { int data; node *link; } *p; public: linklist(); void append( int num ); void appendd(int size); void display(); }; linklist::linklist() { p=NULL; } void linklist::append(int … | |
hi i make code for double linkedlist.. but i didn't have a syntax erroe .. i don't know where the error . [ICODE]#include <iostream.h> struct dnode { int info; dnode *next; dnode *prev; }; class dlist { private : dnode *head; dnode *tail; dnode *current; public : void addEnd(int y){ … | |
plz how i can delete a specific value in linkedlist .. | |
[CODE]#include<iostream.h> int liner(int [], int ,int ); void main () { int a[1000]; int arraysize,element; int searchkey; cout<<"Enter how many elements in your array"; cin>>arraysize; cout<<"enter the elements of the array "; for(int i=0;i<arraysize;i++) cin>>a[i]; cout<<"Enter the searchkey"; cin>>searchkey; element=liner (a,searchkey,arraysize); if (element!=-1) cout<<"::::Found value in index \n"<<element<<"\n"; else cout<<"::::value … | |
i want you to help me to find the mode in array size n if there two element have same number of repetion there is no mode . mode :: the most number is repeted . e.g {1,2,3,4,3} the mode is 3 but if we have {1,2,3,1,3} there is no … | |
hi i am answer this question , but i didnt know what the errore with cast represent uppercase letters, lowercase letters and a considerable variety of special symbols. C++ uses small integers internally to represent each different character. The set of characters a computer uses and the corresponding integer representations … | |
hi . plz I need you to explain for me how i can write a function that return the mod of array with n value . i think mod is that sample mode is it ? i am try to solve . but my code print the number taht is … | |
Hi , pls i need your help . i write algorithm that calculate prefix average .. sum=0 for i=1:n do sum =suma+a[i] b[i]=sum/i return array b my teacher said , write above code using insted for .. how i can use the other for .. what are your opinion? | |
Re: [CODE]{cout<<number[nr[i]-48]<<" ";}[/CODE] why you put this number[nr[i]-48]<<" . there is other way .. we can search about the value and print it as char | |
Hi .. for(int i=1;i<=n;i++) { first=i%10; last=i/10; ....... i want to see how many number that first number equal last number; like 3003..and 1,2,3... is counted because its a single numbers but my statmant it is just count the num unti 100 and its not count the single numbers .. … | |
Hi, I am write code about stack[pop,push,overflow,underflow] but i think i have Mistake in underflow and overflow .. and how i can Enter any thing in my array .. like if i want to enter [$] or[xxxxx] whatever not only int if you can correct in same code >> [CODE]#include<iostream.h> … | |
Hi ,all I hope that everybody will be fine I have q; How do I write simple [very simple] code that receives letters with stack [push,pop,over flow,under flow] for example . output: Enter later: A B C D E EDCBA i writed code that receives number .. but i face … |
The End.