PLEASE READ BEFORE ANSWERING: I have posted this a few times already, with the s
ID: 3576731 • Letter: P
Question
PLEASE READ BEFORE ANSWERING: I have posted this a few times already, with the specification it passes in the following, linked compiler (which I will provide below). Each answer I have gotten fails to pass. The two "Actual" fields return as "java.lang.IllegalArgumentException" and two "Expected" fields return as null. This code MUST pass in this EXACT compiler and no other:
http://codecheck.it/codecheck/files?repo=jfe1cc&problem=ch09/c09_exp_9_102
AGAIN NOTE: Do not post results from ANY other compiler, and do NOT post before you are CERTAIN it passes in the EXACT compiler (which is the ONLY compiler which I need results form). Unless you have code that passes in this specific compiler, DO NOT REPLY TO THIS POST. And PLEASE post a SCREENSHOT of the PASSING OUTPUT from this specified compiler as evidence.
Also, PLEASE take note of the following:
-Post the PASSING CODE (not output) as text, not as an image.
-Avoid making alterations to the original code unless necessary.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Form a subclass Quarter from the class Coin. A quarter has a state theme.
(image included in link above)
The getDescription method should yield a string such as
Complete the following code:
The following classes are used to check your work:
Explanation / Answer
public class Quarter extends Coin
{
private String State;
/**
Constructs a quarter.
@param aValue the monetary value of the quarter.
@param aName the name of the quarter
*/
public Quarter(String aState)
{
State=aState;
}
public String getDescription()
{
return "state="state;
}
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.