199,114 Archived Topics
Remove Filter ![]() | |
[code]import java.io.*; class caesercipher { String str; int key; public void main()throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("ENTER A STRING"); str=br.readLine(); System.out.println("ENTER A SHIFT"); key=Integer.parseInt(br.readLine()); String encrypted=encrypt(str,key); System.out.println(encrypted); String decrypted=decrypt(encrypted,key); System.out.println(decrypted); } public String encrypt(String str,int key) { String encrypted=""; int i; for(i=0;i<str.length();i++) { int c=str.charAt(i); if(Character.isUpperCase(c)) { c+=(key%26); … | |
hello guys, i'm pretty new to php and to this forum, but i need a little bit of help and i hope i can find it here :). I need a wordpress page to create dynamic links, using the url and the wordpress database (or a new database¿?) to grab … | |
I have some problem with my report. I don't know how to update my report. Every time i enter any data, the report did not show the added data. Please guys i need help. Thank you in advance, God bless. | |
This is the code at line 23: [CODE] foreach($form->getErrorArray() as $m){ $x .= "".$m." + "; header("Location: Form_Display.php?message=".$x."") [/CODE] Gives me two error messages 1. Passwords don't match 2. Email not entered I've banged my head out, smoked a carton of cigarettes and had a quiet meditation session after raging. … | |
A matrix to be designed in following manner for a n x n order : 1 5 9 2 12 13 14 6 8 16 15 10 4 11 7 3 view sourceprint?01 int i,j,k,l,m,b=n; 02 int w=1, x=2, y=3, z=4; 03 int a[][] = new int[n][n]; 04 for(i=0;i<=n/2;i++) 05 … | |
Hi Guys, I'm new to programming and webdesign, but my girlfriend asked me if I'd build her a site for her massage therapy with an online booking calendar as she can't take calls for bookings during work so I thought I'd have a go. I've pretty much finished the booking … | |
I only know a little bit about the Global Assembly Cache. After creating a WPF application, in the toolbox, if you right click and select "Choose Items", it will open a window in which you can specify controls you want to use that are in the GAC. Is it safe … | |
hi, i'm did a program in C++6.0 that retrives data from Access. the program was ok and runs normally for quite sometime and suddenly the error [B]"Unable to Create File Buffer"[/B] appear. After searching high and low for solution and trying multiple suggestions, i found that that problem is because … | |
Me again :) Seems like this problem will never end.. All works fine in my code, except it doesn't REMOVE the email addresses that are NOT 2 days behind. In my messagebox it displays all the ones that are behind, so that means I only want those in my 'to' … | |
Hey everyone, New to Java and i was hoping if anyone could assist me.I needed to write a program that could display results of Champions League initial menu screen with the following set of options: 1. Display the current score for each possible response. 2. Vote 3. Quit the program. … | |
Hi ,I have super class vehicle,truck extends vehicle,and I created array in test class full with objects from vehicle and truck,how can I call method from vehicle,is this the way (truck)object1[1].getMethod() | |
how to transform from double to int (rounded) ? by using basic stuff ? | |
First of to clarify i'm virtually new to java and not that good in programming. But i was told to develop an 2.2 android apps which takes video excluding sound when on the road "acts like a car blackbox".. I found a series of code online but i just don't … | |
I'm retreiving data from a texfile with AJAX through: document.getElementById("my div").innerHTML=xmlhttp.responseText; but I want to make a linebreak in the text before each capital letter starts. How do I go about doing that? Appreciate the help. | |
Hi All I want to use a template that should be used in my email function of my application. Below is my code so how should I modify it so that I can use a template instead of having to everytime type in the body of the email. Thanks in … | |
How Would i be able to check for valid input on cin or getline heres what i have [CODE] #include <iostream> #include <string.h> using namespace std; int main() { string word; getline(cin, word); cout << word; system("PAUSE"); return EXIT_SUCCESS; } [/CODE] what i mean by valid input is either if … | |
Hi, I am trying to set up transactional replication on a MS SQL 2008 database that has two Schemas, both schemas have some tables with the same names. Schema A A.Customer A.Product A.Invoice Schema B B.Customer B.Product B.Incoive My first problem is actually configuring Replication on the publisher using the … | |
I am trying to calculate the 'Profit' field based on the current record's 'ProjectTotalBillingEstimate' field and the 'ProjectActualCost' field. I want the 'Profit' text field to be calculated every time a record is changed, either via the navigation toolbar or the Project ID drop down box. I tried performing the … | |
hiiii i am aneesh...my doubt is how we can insert a repeater inside a gridview??? i want to put all repeater in one column of gridview. how it can achieve???? i am totally confused please give me a solution... | |
my prof ask us to make a code for the game FLAMES using function oriented program.wherein the prog. will count the number of same letters to be cancelled in each name and will print the result. ex. julie ann :2 mjhay :2 marry i dont know whats wrong w/ my … | |
Hey guys! I'm a newbie at databases and ER diagrams, and I need help with describing [URL="http://img194.imageshack.us/img194/521/38770389.jpg"]this ER-diagram[/URL]. I'm having problems with describing "Wine" - "Stocked" - "Inventory". I've learned that "Stocked" is an identifying relationship type and that "Inventory" is a weak entity type. But I have no idea … | |
Hi! I'm new in shell scripting, so please help me with my problem. How can I do a bash script's [B]for loop[/B] to find the smallest number? If I have an example: 1 4 6 23 5 7 100 2 Answer: 1 It needs to be a for loop. Any … | |
Can You explain me.. :confused: Hey dude...I have a problem....Why is it happen like that? 1st follow the steps & check i am correct or not.... 1.take the photo extension with jpg (if u can use any type [U][I]photo[/I][/U]..but i don't know correctly is work or not) 2.change the extension … | |
Hi All, After searching the web and this specific forum I can't seem to find a suitable solution to my problem and after hours of thinking I wasn't able to come up with a solution that will fit the problem. This is the case: I need a database model that … | |
hi friend, i want that my program should work like this, after inputs of total amount and expenses it automatically give the Total Expense and than TOTAL AMOUNT - TOTAL EXPENSE it give me the Remaining Amount. the total Expense and Remaining Amount should show in a text boxes. as … | |
hi, i have a table which have code col and data col.the code and data occur repeated no of time. so i run query like SELECT code, COUNT( code ) AS no_of_times FROM testing_table GROUP BY code ORDER BY code which give no of time code is repeated in the … | |
i have 2 forms, one is Named With territory, where the territory description is given, and other form is Heirarchy, whre the tree will b shown, when any one writes the description in territory, and presses update button, the Node should b created in heirachy... can u help me plz...? | |
This is an assignment question, I know i should do it myself, but believe me i have just learned this subject and couldn't find the answer. Please if someone could give me the answer, i would be greatfull. And please if you could hurry because I have to submit on … | |
i am making a register page on my website. i have a password and a re-enter password text fields. how would i validate those two by making sure they are the same in ajax? and how would i make that happen on the re-enters onblur or onchange? thank you | |
Hi all. This is my first post and i am bit new to python. Pls dont mind if my question is dumb, kindly guide me I am writing a pexpect script (i am using linux Centos 5.5) to access my cisco router and want to record the output of "show … | |
I trying to finish this assignment for Java and it's really getting to me. I haven't had this much trouble in the past, but things ramped up pretty quickly and I'm really stuck. I'll post what I have, although it's not much, if someone out there is kind enough to … | |
Problem is based on C#, ADO.NET, using Access Database. I am trying to filter the results from the database and display them in DataGridView on click of 'button1' button. But the datagridview shows empty results when there are actually 3 records with matching conditions. According to what I know, the … | |
I am an extreme newbie when it comes to JSP and I am really stuck. This is my code: [CODE]while (rst.next()) { id=rst.getString("ID"); nme=rst.getString("Name"); twn=rst.getString("Town"); cny=rst.getString("Country"); out.println("<tr>"); out.println(" <td width='10%'>"+id+"</td>"); out.println(" <td width='20%'>"+nme+"</td>"); out.println("<td width='10%'>"+twn+"</td>"); out.println("<td width='10%'>"+cny+"</td>"); out.println("<td width='10%'>Edit</td>"); out.println("<td width='10%'>Delete</td>"); out.println(" </tr>"); } out.println("</table>"); out.println("</center>");[/CODE] Where it says "edit" … | |
I would like to create a Player database and link this to my website game how do I do this and what is the best application to create this in? Thanks in advance. | |
![]() | Hello everyone! I'm new to c# and i've come on here hoping your knowledge can help me out. I'm trying teach myself at home but have got really stuck on this question, any help would be great [U]"Declare an integer array of 10 elements. Fill the elements with values that … |
Hello Fellow Webberz. I am from a php,html,css,jquery blah blah background but have always had a fascination for the .net languages. Finally my time to join the C# environment has come, due to some financial success i can now afford to study :). I would greatly appreciate it if anybody … | |
Hey, I was wondering if anybody out there is using Aptana Studio 3, For the last 3 months i have changed from dreamweaver to aptana and have had no regrets. I found that dreamweaver has alot of blah blah on their interface... What are your thoughts? and any other great … | |
Dear Freinds I face a problem that if i make a datattype in sql server of Integer and then use it in linq to sql query it give error of "specific cast not valid" and when i change datatype into varchar the linq to sql query work fine one more … | |
How do I change it so that it will only say how many times the program has ran once I typed another key then [B]y[/B]. Output: ================================= Programmer Name: Peter Langlands Program 3 Description: CS 150 Spring 2011 Lab CRN: Date: ================================= Enter an nonnegative number: 10 a0 = 10 … | |
How would I make this program that it tells me the number of odds or evens. I only have 1 number at the time, so I need it to either say 1 odd or 1 even. [CODE]#include <iostream> #include <fstream> using namespace std; void printInfo(); int nonNegative(int a, int k); … | |
I'm new to C/C++ and I'm having difficulty with calculating leap years in my Zeller's Algorithm program (based off of the Gregorian Calendar). I've lost sleep over this code for the last week and this is my final breaking point. I continually get "This day is Friday." for input 1 … | |
Hi friends i was in a need of using reorderlist from ajax family. I tried a lot and was unable to do anything with please help me. Munnazz | |
Hello, How to use date function in my sql for current date. Table description: jid desc cname category date(posting date) 1 kpo job ab kpo 7/3/2011 2 lpo job bc lpo 8/3/2011 3 bpo job df bpo 9/3/2011 What i want to do, when i fetch data from the table … | |
here is a webcam capturing project............. suppose imagine in our system we have connected 3 webcam device, say iBallCam1,iBallCam2,iBallCam2.............and if we run this project there will come an webcam selection option, and in that we have to choose the corresponding webcam device............. what i want to do is this........ can … | |
hello to all In my code I have to check currently running processes from task manager and perform some actions on them but the problem I am facing in doing so is that I am not able to get a processes location from where it is running (i.e. path of … | |
i have a empty c++ win32 console program Peter.cpp and a window form John.h added. a error of " error C2061: syntax error : identifier 'John' " just comes out due to the code " Application::Run(new John); " when complie. could you please help me to fix the program? thank … | |
Hello, I am looking to simulate keyboard inpout for a computer in general, not just for a window. I was allready told how to simulate keyboard strokes in a certan window, although I just want to simulate them as they might be in general. As in program says "X" and … | |
I NEED HELP!! I'm writing a program where the user inputs the pH Level and it goes and tells if it is a certain solution. Some of them work some don't Can somebody tell me where in my code I am going wrong. I am not asking for the solution … | |
I would like to retrieve the previous date (i.e., current date minus 1) and use it in a query through an = operator. I got the following query to retrieve the previous date: [icode]select DATEADD(DD, DATEDIFF(DY, 0, GETDATE()), -1)[/icode] It gives: 2011-03-14 00:00:00.000 I would like to get only: 2011-03-14, … | |
Hi, this is probably a pretty simple question for you pro's but would appreciate some help as I have ogtten stuck. I have a html form [CODE]<html> <body> <form action="com.php" method="post"> Firstname: <input type="text" name="firstname" /> Lastname: <input type="text" name="lastname" /> Age: <input type="text" name="age" /> <input type="submit" /> </form> … |
The End.