Question says it all, really. I'm not sure what the problem is. I'm fairly new to classes; my practical experience with them being close to nill, but I have read a fair amount about them.
I have created a class ECard with the following constructor
ECard::ECard( int bankNum, int PIN )
{
m_BankNum = new int;
m_PIN = ...
id Ptypefield Value
1 1 D
2 1 E
3 1 F
4 1 G
5 1 H
6 2 FL
7 2 IF
8 2 VVS1
9 2 VVS2
10 2 VS1
11 2 VS2
12 3 0.50
13 3 1.00
14 3 1.50
15 3 2.00
16 4 Marquise
17 4 Round
18 4 Pear
19 4 Radiant
20 4 Princess
this table i want to get id no i give value like D and F
this is ...
So I'm continuing my fight with this : http://stackoverflow.com/questions/2923545/creating-java-dialogs/2926126 task. Now my JOptionPane opens new window with envelope overfiew, but I can't change size of this window. Also I wanted to have sender's data in upper left corner, and receiver's data in bottom right. How can I achieve that ?
T...
I have an integer in an Access database, which is being displayed in ASP.NET. The integer represents the position achieved by a competitor in a sporting event (1st, 2nd, 3rd, etc.), and I'd like to display it with a standard suffix like 'st', 'nd', 'rd' as appropriate, rather than just a naked number.
An important limitation is that thi...
I saw this question in one of my question papers. Whether the question is valid?
...
what are virtual functions? what is pure virtual function? please explain with example
...
I need to write a function par :: String -> Bool to verify if a given string with parentheses is matching using stack module.
Ex:
par "(((()[()])))" = True
par "((]())" = False
Here's my stack module implementation:
module Stack (Stack,
push, pop, top,
empty, isEmpty)
where
data Stack a = Stk [a]
...
I have a project of soupUI and I don't have enough information about its' commercial tools in the soupUI, can you help me with that in a simple way?
...
I have a game that one player X wants to pass a ball to player Y, but he can be playing with more than one player and the others players can pass the ball to Y.
I want to know how many different paths can the ball take from X to Y?
for example if he is playing with 3 players there are 5 different paths, 4 players 16 paths, if he is pl...
I have following code:
public class LCS1 {
public static String lcs(String a,String b) {
String x;
String y;
int alen=a.length();
int blen=b.length();
if (alen==0 || blen==0) {
return "";
}
else if (a.charAt(alen-1)==b.charAt(blen-1)) {
return lcs(a.substring(0,alen-1),b.sub...
I was going over some sample questions for an upcoming test, and this question is totally confusing me. Any help would be appreciated.
Consider the following code:
class GraduateStudent : public Student
{
...
};
If the word "public" is omitted, GraduateStudent uses private inheritance, which means which of the following?
Graduat...
class Person holds personal data
Its constructor receives 3 parameters, two Strings representing first and last names and an int representing age
public Person(String firstName, String lastName, int age)
its method getName has no parameters and returns a String with format "Lastname, Firstname"
its method getAge takes no parameters...
There's a question on my exercise sheet to find the complement of r = (a|b)*ab(a|b)*
I've come up with a solution, but I'm not sure if it's correct. Please help me to check, and correct my errors.
Thanks in advance.
...
Hi All,
Is there any specific methodology followed to specify a language for given grammar ?? i.e. Is it necessary to run all the production rules given in a grammar to determine the language it represents? I don't have an example as such since the one I am working on is a homework question.
[edit]: adding an example, Describe, in Engl...
I have a school assignment: a Dog Show.
My assignment is to create a website, where vistors can display results, and where Judges and Secretary can admin and CRUD.
I have a small problem, one part of the assignment: the result should be based on two decisions from different judges, and after that checked by the secretary, before the re...
I am a brand new programming student, so please forgive my ignorance. My assignment states:
Write a program that declares an array of 10 integers. Write a loop that accepts 10 values from the keyboard and write another loop that displays the 10 values. Do not use any subscripts within the two loops; use pointers only.
Here is my code:
...
i have a project for a course, i did almost everything but i have this error i dont know who to solve it...
the project about doing our own shell some of them we have to write our code, others we will use the fork method..
this is the code,
#include <sys/wait.h>
#include <dirent.h>
#include <limits.h>
#include <errno.h>
#include <std...
Here is the matlab/freemat code I got to solve ODE numerically using backward Euler method. However the results are inconsistent with my textbook results, and sometimes even ridiculously inconsistent. Please point out what is wrong with the code.
I have already asked this question on mathoverflow.com no help there, hope someone here can...
Goodmorning everybody,
I'm having a little problem with a project for school.
We are told to make an Iterator that implements Enumeration over a Hashmap.
So i made this Enumeration:
public Enumeration<Object> getEnumeration() {
return new Enumeration<Object>() {
private int itemsDone = 0;
Collection<Lon...
Hello everyone.
I still have a question about Enumerations. Here's a quick sketch of the situation.
I have a class Backpack that has a Hashmap content with as keys a variable of type long, and as value an ArrayList with Items.
I have to write an Enumeration that iterates over the content of a Backpack. But here's the catch: in a Backp...