amir Ghannad

Greenhorn
+ Follow
since Feb 09, 2015
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by amir Ghannad

Hi folks,
Can I get a help on this? I am not sure about my answer can some one explain this for me? how is this valid or invalid




which of the following is valid or invalid?
valid


invalid
valid

valid

valid
7 years ago
One more question, I know that the output for this code is 1. Is it because we are having this in var=1? what does do here?
7 years ago
GOT IT! I was my own mistake! you were right 4 was not the right answer for the modified code.

Thanks for your help.
7 years ago
Ok thanks, I got that part, but I still don't get what does do here?
if we keep changing this numbers to or for example, the answer is still 4. so I just don't understand this part.
7 years ago
it means we are changing the value from 1 to 0?
7 years ago


This was on my exam and I know the answer is 4. Can someone tell me what does do in here? Why the is it 4?
7 years ago
Hi folks,

I am actually keep failing my release test for this program. It keeps saying:

RELEASE 9 error 4 testAnimalStoreAddMenagerie This test generates an exception in your code, but no public or student-written tests cover the line of code that throws the exception. Write more/better test cases and we will reveal more information about why your code fails this test case.

any idea? is there anything wrong with testAnimalStoreAddMenagerie?

Thanks





7 years ago
Hi folks,
I am sure that my code is right, but I am getting this error when I submit my project through our repository server
any idea?


testBasicConstructorsAndGetters java.lang.AssertionError: expected:<2> but was:<0> at org.junit.Assert.fail(Assert.java:88)... java.lang.AssertionError: expected:<2> but was:<0>

at org.junit.Assert.fail(Assert.java:88)

at org.junit.Assert.failNotEquals(Assert.java:834)

at org.junit.Assert.assertEquals(Assert.java:645)

at org.junit.Assert.assertEquals(Assert.java:631)

at p4Testing.PublicTests.testBasicConstructorsAndGetters(PublicTests.java:33)

testConstructorWithOneParam java.lang.AssertionError: expected:<1> but was:<0> at org.junit.Assert.fail(Assert.java:88)... java.lang.AssertionError: expected:<1> but was:<0>

at org.junit.Assert.fail(Assert.java:88)

at org.junit.Assert.failNotEquals(Assert.java:834)

at org.junit.Assert.assertEquals(Assert.java:645)

at org.junit.Assert.assertEquals(Assert.java:631)

at p4Testing.PublicTests.testConstructorWithOneParam(PublicTests.java:48)

PUBLIC 3 error 5 testCopyConstructor java.lang.AssertionError: expected:<2> but was:<0> at org.junit.Assert.fail(Assert.java:88)... java.lang.AssertionError: expected:<2> but was:<0>

at org.junit.Assert.fail(Assert.java:88)

at org.junit.Assert.failNotEquals(Assert.java:834)

at org.junit.Assert.assertEquals(Assert.java:645)

at org.junit.Assert.assertEquals(Assert.java:631)

at p4Testing.PublicTests.testCopyConstructor(PublicTests.java:72)

7 years ago
Hi folks,

How do I insert space between my int and the statement?

My out put it is: A heptagon has7 sides .

what I want is: A heptagon has 7 sides .

7 years ago
Here:D


7 years ago
Thanks to all.
Yes it was just that miss spelling.
7 years ago
Thanks. Submit server is the server we use to submit our projects. It run's your code and it matches your out put with the assignment output .
7 years ago
Hi everyone,

This is my assignment and it seems to be running fine, but when I submit it thorough our submit server, I get this error . what does Terminology mean here?
PUBLIC 1 passed 5 testName PASSED
PUBLIC 2 passed 15 testWebYear PASSED
PUBLIC 3 passed 15 testCrypto PASSED
RELEASE 1 error 15 testTerminology1

Here is my code:
7 years ago
Hi, this is my assignment and it seems to be running fine, but when I submit it thorough our submit server, I get this error
PUBLIC 1 passed 5 testName PASSED
PUBLIC 2 passed 15 testWebYear PASSED
PUBLIC 3 passed 15 testCrypto PASSED
RELEASE 1 error 15 testTerminology1

here is my code:
7 years ago