So the teacher has posed this assignment:
You have been hired by the United Network Command for Law Enforcement, and you have been given files containing null cyphers you have to decrypt.
So for the first file given (as an example), every other letter is correct (ie: 'hielqlpo' is hello (assuming you start with the first letter). My f...
Okay, so I need to have the output look like a diamond of asterisks, with each row increasing by 2 asterisks until the middle has 9 asterisks...and then the rows decrease. function main has to be:
int main (void){
int i;
i = 0;
while (i < 5){
printline (4-i, i*2+1);
i = i + 1;
}
i = 3;
w...
I have a JList which i want to use to display a list a caches that are added in from another form, I've got this working and I want to be able to add the caches directly to the list... Is there a way to change what gets displayed to the user? or would it simply be a case of making to the toString method of my object what i want to be dis...
As example, I login in to the system ad...
But how can i use the session function to recall the current applicationid?
Which I need to store in form and to the other table of database..
Behind code.. vb not c#
Thanks a lot.
Your guide is appreciate .
Example..
1. Login with the session fix (userid) in virtual studio..
2. I wanna reca...
I'm trying to convert this MATLAB function into c#
but my results are not as expected.
Can anyone see where I've gone wrong?
MATLAB:
function check=CRC8(xa);
% xa is array of bits to be transmitted (column vector)
% Generates 8-bit CRC check with g(x) = x^8 + x^2 +x + 1
xae = [xa;0;0;0;0;0;0;0;0]; % Append 8 zeros to array contain...
I am trying to add an image to a BLOB field in a mysql database. The image is going to be less then 100kb in size. However I am running into problems and was wondering what would be a better way to add this data to the database?
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'Data' at row 1
PreparedStatem...
I have an abstract data type that can be viewed as a list stored left to right, with the following possible operations:
Push: add a new item to the left end of the list
Pop: remove the item on the left end of the list
Pull: remove the item on the right end of the list
Implement this using three stacks and constant additional memory, so ...
I have a old program in which some library function is used and i dont have that library.
So I am writing that program using libraries of c++.
In that old code some function is there which is called like this
*string = newstrdup("Some string goes here");
the string variable is declared as char **string;
What he may be doing in that f...
The following is an excerpt from Bjarne Stroustrup's book, The C++ Programming Language:
Section 4.6:
Some of the aspects of C++’s fundamental types, such as the size of an int, are implementation- defined (§C.2). I point out these dependencies and often recommend avoiding them or taking steps to minimize their impact. Why should ...
I am looking for a method to compute a derivate using a discrete and fast method. Since now I do not know the type of equation I have, I am looking for discrete methods analog to the ones that we can find for the integral such as, the Euler method.
Thanks a lot.
...
Can you give me an almost overly simplistic understanding of abstract class vs inheritance use and help me so I can truly understand the concept and how to implement? I have a project I'm trying to complete, and am lost on how to implement. I've been chatting with my professor and been told off pretty much, saying that if I can't figure ...
I have to implement Java.Polynomial as a school assignment. Part of the methods are add(polynomial), multiply(polynomial) etc.
In the case of something like
p.add(q); // computes p + q
is it better to return void and keep the sum of the polynomials in p? or is it better to return a polynomial and keep the former value of p intact?
M...
FIXED
The problem was fixed by simply telling netbeans to do a clean rebuild of my application. Thanks for your comments guys.
I've tried to create a generic Observable class that I can use in my program:
public class GeoGolfObserver<T> extends Observable
{
public GeoGolfObserver()
{
super();
}
public void p...
I have to do an exercise using arrays.
The user must enter 3 input (each time, information about items) and the inputs will be inserted in the array
Then i must to display the array.
The difficulty i face is that i don't know how to increase the array's length without changing the information within it and how to allow the user to ent...
Hello stackoverflowers :)
I am in need of a performance-oriented hash function implementation in C++ for a hash table that I will be coding. I looked around already and only found questions asking what's a good hash function "in general". I've considered CRC32 (but where to find good implementation?) and a few cryptography algorithms. M...
For the given relation, determine the current normal form, and list the reason why it is in that normal form. Then, using ONLY the information given, transform the relation into third normal form. Note that by default all attributes are depended on the composite primary key.
Order(
CID, VesselID,
VoyID, VoyDest, EID, ContID, CDESC...
What are "Splay trees”, “Red-black trees”, AVL Tree, B-Tree and T-tree?
looking for good implementations.
Thanks
...
As part of a project for school, I need to replace a string from the form:
5 * x^3 - 6 * x^1 + 1
to something like:
5x<sup>3</sup> - 6x<sup>1</sup> + 1
I believe this can be done with regular expressions, but I don't know how to do it yet.
Can you lend me a hand?
P.S. The actual assignment is to implement a Polynomial Processing...
I'm relatively new to VHDL. I'm attempting to write code to do unsigned multiplication using a combination of full adders. When compiling it passes up to the port mapping. I've resolved the errors in the first map, but all of the others give me problems.
I get the same error for each: "Expression actuals in port map aspect must be stati...