Question: Just provide the coding where it says: //PLEASE PUT YOUR WORK HERE //PLEASE END YOUR WORK HERE The questions are provided before the starting of

Just provide the coding where it says:

//PLEASE PUT YOUR WORK HERE //PLEASE END YOUR WORK HERE

The questions are provided before the starting of the codes as well. Don't change the code.

All sub-parts need to be answered. All the codes are provided. Must be in Java. Must compile.

1.A.

You will be given two strings: a noun and an adjective. Based on that input you will output the sentence "noun is adjective".

Write the body of the program called Pod.java

Just provide the coding where it says: //PLEASE PUT YOUR WORK HERE

CODE:

import java.util.*;

/** * The following is the only class of the program and contains all * program code. The program starts running in the main() of this class. */

public class PoD {

/** * Main method that runs when the program is started. */ public static void main(String[] args) { //Instantiate new scanner to read from the console. Scanner in = new Scanner( System.in ); //Declare & initialize variables String noun = in.next(); String adjective = in.next(); //PLEASE START YOUR WORK HERE //PLEASE END YOUR WORK HERE } }

----------------------------------------------------------------------------------------

1.B.

You will be given two strings: a noun and an adjective. Based on that input you will either output the sentence "noun is adjective" or "noun are adjective". You will decide whether to use the word is or are based on the whether or not the noun ends with an "s".

Write the body of the program called Challenge.java

//PLEASE END YOUR WORK HERE The questions are provided before the starting

of the codes as well. Don't change the code. All sub-parts need

CODE:

import java.util.*;

/** * The following is the only class of the program and contains all * program code. The program starts running in the main() of this class. */

public class Challenge {

/** * Main method that runs when the program is started. */ public static void main(String[] args) { //Instantiate new scanner to read from the console. Scanner in = new Scanner( System.in ); //Declare & initialize variables String noun = in.next(); String adjective = in.next();

//PLEASE START YOUR WORK HERE

//PLEASE END YOUR WORK HERE

} }

Input an adjective (adjective). Processing The program prints out the required text, followed by a new- line, and exits Output Based on the noun and adjective that were provided, the output will be: noun is adjective. The text must be terminated by a new-line character, which is added automatically by the System.out.println) function. Examples Sample Input Sample Output This fun This is fun. Math is easy Joey strong Joey is strong

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!