Module 1 Debugging/Debugging 2-1.png __MACOSX/Module 1 Debugging/._Debugging 2-1.png Module 1 Debugging/Debugging 2-2.png __MACOSX/Module 1 Debugging/._Debugging 2-2.png Module 1 Debugging/Debugging...

1 answer below »
Programming Java


Module 1 Debugging/Debugging 2-1.png __MACOSX/Module 1 Debugging/._Debugging 2-1.png Module 1 Debugging/Debugging 2-2.png __MACOSX/Module 1 Debugging/._Debugging 2-2.png Module 1 Debugging/Debugging 2-3.png __MACOSX/Module 1 Debugging/._Debugging 2-3.png Module 1 Debugging/Debugging 2-4.png __MACOSX/Module 1 Debugging/._Debugging 2-4.png Module 1 Debugging/Debugging 1-1.png __MACOSX/Module 1 Debugging/._Debugging 1-1.png Module 1 Debugging/Debugging 1-3.png __MACOSX/Module 1 Debugging/._Debugging 1-3.png Module 1 Debugging/Debugging 1-2.png __MACOSX/Module 1 Debugging/._Debugging 1-2.png Module 1 Debugging/Debugging 1-4.png __MACOSX/Module 1 Debugging/._Debugging 1-4.png
Answered Same DayApr 28, 2021

Answer To: Module 1 Debugging/Debugging 2-1.png __MACOSX/Module 1 Debugging/._Debugging 2-1.png Module 1...

Mohd answered on May 05 2021
145 Votes
Updated Solution/1-11d Exercises/build.xml

Builds, tests, and runs the project 1-11d Exercises.


Updated Solution/1-11d Exercises/manifest.mf
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
Updated Solution/1-11d Exercises/nbproject/build-impl.xml















































































































































































































Must set src.dir
Must set test.src.dir
Must set build.dir
Must set dist.dir
Must set build.classes.dir
Must set dist.javadoc.dir
Must set build.test.classes.dir
Must set build.test.results.dir
Must set build.classes.excludes
Must set dist.jar




































































































Must set javac.includes
































































































































No tests executed.























































































































































































































































Must set JVM to use for profiling in profiler.info.jvm
Must set profiler agent JVM arguments in profiler.info.jvmargs.agent





























































































































































































































Must select some files in the IDE or set javac.includes













































To run this application from the command line without Ant, try:

java -jar "${dist.jar.resolved}"










































Must select one file in the IDE or set run.class



Must select one file in the IDE or set run.class






















Must select one file in the IDE or set debug.class




Must select one file in the IDE or set debug.class




Must set fix.includes









This target only works when run from inside the NetBeans IDE.








Must select one file in the IDE or set profile.class
This target only works when run from inside the NetBeans IDE.








This target only works when run from inside the NetBeans IDE.












This target only works when run from inside the NetBeans IDE.



































Must select one file in the IDE or set run.class





Must select some files in the IDE or set test.includes




Must select one file in the IDE or set run.class




Must select one file in the IDE or set applet.url






































































Must select some files in the IDE or set javac.includes



















Some tests failed; see details above.








Must select some files in the IDE or set test.includes



Some tests failed; see details above.



Must select some files in the IDE or set test.class
Must select some method in the IDE or set test.method



Some tests failed; see details above.




Must select one file in the IDE or set test.class



Must select one file in the IDE or set test.class
Must select some method in the IDE or set test.method













Must select one file in the IDE or set applet.url








Must select one file in the IDE or set applet.url




















































Updated Solution/1-11d Exercises/nbproject/genfiles.properties
build.xml.data.CRC32=41f2d8af
build.xml.script.CRC32=896c79c1
[email protected]
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=41f2d8af
nbproject/build-impl.xml.script.CRC32=62d9f32b
nbproject/[email protected]
Updated Solution/1-11d Exercises/nbproject/private/private.properties
compile.on.save=true
user.properties.file=C:\\Users\\Farah Ibrahim\\AppData\\Roaming\\NetBeans\\8.2\\build.properties
Updated Solution/1-11d Exercises/nbproject/project.properties
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processor.options=
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
# This directory is removed when the project is cleaned:
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
# Only compile against the classpath explicitly listed here:
build.sysclasspath=ignore
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
# Uncomment to specify the preferred debugger connection transport:
#debug.transport=dt_socket
debug.classpath=\
${run.classpath}
debug.test.classpath=\
${run.test.classpath}
# Files in build.classes.dir which should be excluded from distribution jar
dist.archive.excludes=
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/1-11d_Exercises.jar
dist.javadoc.dir=${dist.dir}/javadoc
excludes=
includes=**
jar.compress=false
javac.classpath=
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
javac.external.vm=true
javac.processorpath=\
${javac.classpath}
javac.source=1.8
javac.target=1.8
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
javac.test.processorpath=\
${javac.test.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
main.class=
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false
platform.active=default_platform
run.classpath=\
${javac.classpath}:\
${build.classes.dir}
# Space-separated list of JVM arguments used when running the project.
# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
# To set system properties for unit tests define test-sys-prop.name=value:
run.jvmargs=
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
source.encoding=UTF-8
src.dir=src
test.src.dir=test
Updated Solution/1-11d Exercises/nbproject/project.xml

org.netbeans.modules.java.j2seproject


1-11d Exercises








Updated Solution/1-11d Exercises/src/BurmaShave.java
Updated Solution/1-11d Exercises/src/BurmaShave.java
import javax.swing.JOptionPane;
public class BurmaShave {

    public static void main(String[] args) {
        JOptionPane.showMessageDialog(null, "Shaving brushes");
        JOptionPane.showMessageDialog(null, "You'll soon see 'em");
        JOptionPane.showMessageDialog(null, "On a shelf");
        JOptionPane.showMessageDialog(null, "In some museum");
        JOptionPane.showMessageDialog(null, "Burma Shave");
    }
}
Updated Solution/1-11d Exercises/src/CarlysMotto.java
Updated Solution/1-11d Exercises/src/CarlysMotto.java
public class CarlysMotto {
    public static void main(String[] args) {
        System.out.println("Carly's makes the food that makes it a party.");
    }
}
Updated Solution/1-11d Exercises/src/CarlysMotto2.java
Updated Solution/1-11d Exercises/src/CarlysMotto2.java
//Ahmed Aldhaheri
//Display Carly's motto surrounded by asterisks 
public class CarlysMotto2 {
    public static void main(String[] args) {
        String value = "Carly's makes the food that makes it a party";
        System.out.println("**************************************************");
        System.out.println("*                                                *");
        System.out.println("*                                                *");
        System.out.println("*  "+value+"  *");
        System.out.println("*                                                *");
        System.out.println("*                                                *");
        System.out.println("**************************************************");

    }

}
Updated Solution/1-11d Exercises/src/Comments.java
Updated Solution/1-11d Exercises/src/Comments.java
public class Comments {
 

    public static void main(String[] args)
    {
        // Comment 1: Prqram omments are nonexecutirry statements you add to afile for documentation
        /* Comment 2: Prqram omments are nonexecutirry statements 
            you add to afile for documentation */

        /** Comment 3:
         * Program comments are nonexecutirry statements 
         * you add to a file for documentation
         */


    }

}
Updated Solution/1-11d Exercises/src/CommentsDialog.java
Updated Solution/1-11d Exercises/src/CommentsDialog.java
public class CommentsDialog {
    public static void main(String[] args)
    {
        javax.swing.JOptionPane.showMessageDialog(null, "Program comments are non-executing statements you add to a file for the " + "purpose of documentation.");
    } 
}
Updated Solution/1-11d Exercises/src/MovieQuoteInfo.java
Updated Solution/1-11d Exercises/src/MovieQuoteInfo.java
public class MovieQuoteInfo {

    public static void main(String[] args)
    {
        System.out.println("Favorite Quote: Some people can’t believe in themselves until someone else believes in them first.");
        System.out.println("Character Name: Sean Maguire");
        System.out.println("Movie Name: Good Will Hunting");
        System.out.println("Year: 1997");
    }
}
Updated Solution/1-11d Exercises/src/RamdomGuess.java
Updated Solution/1-11d Exercises/src/RamdomGuess.java
import java.util.Scanner;
import javax.swing.JOptionPane;
public class RamdomGuess {

    public static void main(String[] args)
         {
            Scanner input = new Scanner(System.in);
 
            int randomNumber = 1 + (int)(Math.random() * 10);
            int counter = 0;
            while(true)
            {
 
                if(counter <= 5)
                {
                    int number = Integer.parseInt(JOptionPane.showInputDialog(null, "Guess a number between 1 and 10"));
                    if(number                        JOptionPane.showMessageDialog(null, "Your guess low");
                    else if(number>randomNumber)
                        JOptionPane.showMessageDialog(null, "Your guess high");
                    else if( number == randomNumber)
                    {
                        JOptionPane.showMessageDialog(null, "Your guess correct");
                        break;
                    }
 
                    counter++;
                }
                else
                    break;
            }
 
            if(counter>=6)
                JOptionPane.showMessageDialog(null, "Number Of Trying end");
 
 
          }
}
Updated Solution/1-11d Exercises/src/SammysMotto.java
Updated Solution/1-11d Exercises/src/SammysMotto.java
public class SammysMotto {

    public static void main(String[] args) 
    {
        System.out.println("Sammy’s makes it fun in the sun.");
    }
}
Updated Solution/1-11d Exercises/src/SammysMotto2.java
Updated Solution/1-11d...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here