From 099c1b8233b751274c66d4b62e6812001e77f6db Mon Sep 17 00:00:00 2001 From: Christopher Bohn <bohn@unl.edu> Date: Thu, 3 Oct 2024 13:30:37 -0500 Subject: [PATCH] Assignments up through Week 7 --- README.md | 93 +-------- bmi/.gitignore | 62 ++++++ bmi/pom.xml | 37 ++++ .../java/edu/unl/cse/soft160/bmi/App.java | 13 ++ .../java/edu/unl/cse/soft160/bmi/AppTest.java | 38 ++++ conditionals_homework/.gitignore | 54 +++++ conditionals_homework/README.md | 3 + .../documentation/solution_design.odt | Bin 0 -> 12459 bytes conditionals_homework/pom.xml | 36 ++++ .../unl/cse/soft160/conditionals/Caucus.java | 17 ++ .../cse/soft160/conditionals/SpeedLimit.java | 13 ++ .../cse/soft160/conditionals/CaucusTest.java | 100 +++++++++ .../soft160/conditionals/SpeedLimitTest.java | 196 ++++++++++++++++++ lemonade-stand/.gitignore | 62 ++++++ lemonade-stand/pom.xml | 37 ++++ .../LemonadeStandSimulator.java | 52 +++++ quadrants/.gitignore | 62 ++++++ quadrants/pom.xml | 37 ++++ .../edu/unl/cse/soft160/quadrants/App.java | 13 ++ .../unl/cse/soft160/quadrants/AppTest.java | 38 ++++ scramble-homework/.gitignore | 54 +++++ scramble-homework/README.md | 4 + .../documentation/solution_design.odt | Bin 0 -> 11441 bytes scramble-homework/pom.xml | 36 ++++ .../cse/soft160/conditionals/Scramble.java | 36 ++++ .../soft160/conditionals/ScrambleTest.java | 126 +++++++++++ small-computational-problems/Problem3.java | 14 ++ small-computational-problems/Problem4.java | 22 ++ small-computational-problems/Problem5.java | 24 +++ unitsquare/doc/.gitkeep | 0 unitsquare/pom.xml | 46 ++++ .../edu/unl/cse/soft160/unitSquares/App.java | 41 ++++ .../unl/cse/soft160/unitSquares/AppTest.java | 38 ++++ 33 files changed, 1314 insertions(+), 90 deletions(-) create mode 100644 bmi/.gitignore create mode 100644 bmi/pom.xml create mode 100644 bmi/src/main/java/edu/unl/cse/soft160/bmi/App.java create mode 100644 bmi/src/test/java/edu/unl/cse/soft160/bmi/AppTest.java create mode 100644 conditionals_homework/.gitignore create mode 100644 conditionals_homework/README.md create mode 100644 conditionals_homework/documentation/solution_design.odt create mode 100644 conditionals_homework/pom.xml create mode 100644 conditionals_homework/src/main/java/edu/unl/cse/soft160/conditionals/Caucus.java create mode 100644 conditionals_homework/src/main/java/edu/unl/cse/soft160/conditionals/SpeedLimit.java create mode 100644 conditionals_homework/src/test/java/edu/unl/cse/soft160/conditionals/CaucusTest.java create mode 100644 conditionals_homework/src/test/java/edu/unl/cse/soft160/conditionals/SpeedLimitTest.java create mode 100644 lemonade-stand/.gitignore create mode 100644 lemonade-stand/pom.xml create mode 100644 lemonade-stand/src/main/java/edu/unl/cse/soft160/lemonade_stand/LemonadeStandSimulator.java create mode 100644 quadrants/.gitignore create mode 100644 quadrants/pom.xml create mode 100644 quadrants/src/main/java/edu/unl/cse/soft160/quadrants/App.java create mode 100644 quadrants/src/test/java/edu/unl/cse/soft160/quadrants/AppTest.java create mode 100644 scramble-homework/.gitignore create mode 100644 scramble-homework/README.md create mode 100644 scramble-homework/documentation/solution_design.odt create mode 100644 scramble-homework/pom.xml create mode 100644 scramble-homework/src/main/java/edu/unl/cse/soft160/conditionals/Scramble.java create mode 100644 scramble-homework/src/test/java/edu/unl/cse/soft160/conditionals/ScrambleTest.java create mode 100644 small-computational-problems/Problem3.java create mode 100644 small-computational-problems/Problem4.java create mode 100644 small-computational-problems/Problem5.java create mode 100644 unitsquare/doc/.gitkeep create mode 100644 unitsquare/pom.xml create mode 100644 unitsquare/src/main/java/edu/unl/cse/soft160/unitSquares/App.java create mode 100644 unitsquare/src/test/java/edu/unl/cse/soft160/unitSquares/AppTest.java diff --git a/README.md b/README.md index 393b49f..f4ae1d9 100644 --- a/README.md +++ b/README.md @@ -1,93 +1,6 @@ # testing-starter +Copies of assignment starter code, including that for future assignments, +to allow instructors and TAs to test assignments before being released to +students. - -## Getting started - -To make it easy for you to get started with GitLab, here's a list of recommended next steps. - -Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)! - -## Add your files - -- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files -- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command: - -``` -cd existing_repo -git remote add origin https://git.unl.edu/soft-core/soft-160/semesters/fall2024/testing-starter.git -git branch -M main -git push -uf origin main -``` - -## Integrate with your tools - -- [ ] [Set up project integrations](https://git.unl.edu/soft-core/soft-160/semesters/fall2024/testing-starter/-/settings/integrations) - -## Collaborate with your team - -- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/) -- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html) -- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically) -- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/) -- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html) - -## Test and Deploy - -Use the built-in continuous integration in GitLab. - -- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html) -- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/) -- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html) -- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/) -- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html) - -*** - -# Editing this README - -When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template. - -## Suggestions for a good README - -Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information. - -## Name -Choose a self-explaining name for your project. - -## Description -Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors. - -## Badges -On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge. - -## Visuals -Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method. - -## Installation -Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection. - -## Usage -Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README. - -## Support -Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc. - -## Roadmap -If you have ideas for releases in the future, it is a good idea to list them in the README. - -## Contributing -State if you are open to contributions and what your requirements are for accepting them. - -For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self. - -You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser. - -## Authors and acknowledgment -Show your appreciation to those who have contributed to the project. - -## License -For open source projects, say how it is licensed. - -## Project status -If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers. diff --git a/bmi/.gitignore b/bmi/.gitignore new file mode 100644 index 0000000..f35f60a --- /dev/null +++ b/bmi/.gitignore @@ -0,0 +1,62 @@ +# Mac file finder metadata +.DS_Store +# Windows file metadata +._* +# Thumbnail image caches +Thumbs.db +ethumbs.db +# MS Office temporary file +~* +# Emacs backup file +*~ + +# Common +[Bb]in/ +[Bb]uild/ +[Oo]bj/ +[Oo]ut/ +[Tt]mp/ +[Xx]86/ +[Ii][Aa]32/ +[Xx]64/ +[Xx]86_64/ +[Xx]86-64/ +[Aa]rm +[Aa]32 +[Tt]32 +[Aa]64 +*.tmp +*.bak +*.bk +*.swp + +# Java files +*.class +javadoc/ + +# Maven +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties + +# JetBrains (IntelliJ IDEA, PyCharm, etc) files +.idea/ +cmake-build-*/ +*.iml +*.iws +*.ipr + +# Eclipse files +.settings/ +.project +.classpath +.buildpath +.loadpath +.factorypath +local.properties diff --git a/bmi/pom.xml b/bmi/pom.xml new file mode 100644 index 0000000..a9c57ee --- /dev/null +++ b/bmi/pom.xml @@ -0,0 +1,37 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>edu.unl.cse.soft160.bmi</groupId> + <artifactId>bmi</artifactId> + <packaging>jar</packaging> + <version>1.0-SNAPSHOT</version> + <name>bmi</name> + <url>http://maven.apache.org</url> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.8.1</version> + <configuration> + <source>8</source> + <target>8</target> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.13</version> + <scope>test</scope> + </dependency> + </dependencies> +</project> + diff --git a/bmi/src/main/java/edu/unl/cse/soft160/bmi/App.java b/bmi/src/main/java/edu/unl/cse/soft160/bmi/App.java new file mode 100644 index 0000000..96e2158 --- /dev/null +++ b/bmi/src/main/java/edu/unl/cse/soft160/bmi/App.java @@ -0,0 +1,13 @@ +package edu.unl.cse.soft160.bmi; + +public class App { + public static void main( String[] args ) { + java.util.Scanner scanner = new java.util.Scanner(System.in); + System.out.print("Enter mass in kilograms: "); + double mass = scanner.nextDouble(); + System.out.print("Enter height in meters: "); + double height = scanner.nextDouble(); + // ... + scanner.close(); + } +} diff --git a/bmi/src/test/java/edu/unl/cse/soft160/bmi/AppTest.java b/bmi/src/test/java/edu/unl/cse/soft160/bmi/AppTest.java new file mode 100644 index 0000000..963ca1f --- /dev/null +++ b/bmi/src/test/java/edu/unl/cse/soft160/bmi/AppTest.java @@ -0,0 +1,38 @@ +package edu.unl.cse.soft160.bmi; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +/** + * Unit test for simple App. + */ +public class AppTest + extends TestCase +{ + /** + * Create the test case + * + * @param testName name of the test case + */ + public AppTest( String testName ) + { + super( testName ); + } + + /** + * @return the suite of tests being tested + */ + public static Test suite() + { + return new TestSuite( AppTest.class ); + } + + /** + * Rigourous Test :-) + */ + public void testApp() + { + assertTrue( true ); + } +} diff --git a/conditionals_homework/.gitignore b/conditionals_homework/.gitignore new file mode 100644 index 0000000..9dbe7d1 --- /dev/null +++ b/conditionals_homework/.gitignore @@ -0,0 +1,54 @@ +# Mac file finder metadata +.DS_Store +# Windows file metadata +._* +# Thumbnail image caches +Thumbs.db +ethumbs.db +# MS Office temporary file +~* +# Emacs backup file +*~ + +# Common +[Bb]in/ +[Bb]uild/ +[Oo]bj/ +[Oo]ut/ +[Tt]mp/ +[Xx]86/ +[Ii][Aa]32/ +[Xx]64/ +[Xx]86_64/ +[Xx]86-64/ +[Aa]rm +[Aa]32 +[Tt]32 +[Aa]64 +*.tmp +*.bak +*.bk +*.swp + +# Java files +*.class +javadoc/ + +# Maven +target/ + +# JetBrains (IntelliJ IDEA, PyCharm, etc) files +.idea/ +cmake-build-*/ +*.iml +*.iws +*.ipr + +# Eclipse files +.settings/ +.project +.classpath +.buildpath +.loadpath +.factorypath +local.properties diff --git a/conditionals_homework/README.md b/conditionals_homework/README.md new file mode 100644 index 0000000..ccba2d3 --- /dev/null +++ b/conditionals_homework/README.md @@ -0,0 +1,3 @@ +# Conditionals Code + +Starter code for "Working with Conditionals" homework assignment \ No newline at end of file diff --git a/conditionals_homework/documentation/solution_design.odt b/conditionals_homework/documentation/solution_design.odt new file mode 100644 index 0000000000000000000000000000000000000000..e5d420f4edb1d113c458c8809208a465143de33b GIT binary patch literal 12459 zcmWIWW@Zs#VBlb2__DwzIPRDck2(Vb0|;|4Ffin1=BAcZ7NjN?6y#(kCzfR9=joT_ zrRe1+7H1ag<rk#prQ|1<=BDPA=#`{al%N{MfCMBM7#N)M^U^ZYON+q96dUQ6<mcxk zB^K$ErYkKcKd~egpDrmZb`|6olosTs=9Q9Y8%PU&H_BkKEipMcH7B(wu_T{VcY?yC zATcjB2ah|k*;r7NpI($&T#VnX*g~ebB(bEFfIfLFe$32GOiwM=cgifuO)MyeI+ufk z1DuYKVxEBql#UYfGSgCvOZ19T(#}pko7Ze0(DL4<HTB#L2Ypu7B8^i!v*sT#ZHr*l z|1?YJ-oC!cVS!6ly_$dJ@j5r-`+ZwxzfF`m(Y<NK!4Q*VP1RE#8Czd!TkY1{x%9Tx ztsC34<!8x$%xYdbUu#!+o|a|&v{qeno}BZW7im<?`fTIBN9o{Ii$V{cV_W(-IOTes zGQU2lk+MAZh%+rbu;lfE36<X!Y`gDTtz58)D{))U-u7(@6B`|RIekvGlr+oi^7B4w zJneI!<-vt-A01EFd%1a$O~ME5zVkQkb?_{E8uwuDhIcW|_iLtRRJ}{CD!qL4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U}Bf<f#0XI58#yDSa+#pB;|^5i0}zYA`3)~`SL54_Z@$Ta4NEh7U%2MZ`J8JR>F zaIgCXjZGpjY!z^TH>xg#3I+!7)C63>7t4ZC(9%}O@>F6?X~tp-V)-v_Q$WjH;Z9-L ziNzG;<-oYjLG{x|Eao7V2jeycv|JbA8g)j@h0v(Wg>jpN>aRpBCV|2jwtN`3IjAn0 ziNze$<;1v6LUqw)EG8i@FUD;S>dY@U6J{7;EH{Q22J4j~ucZYQM~DFTU}9i^mm@_f zX|O~L(}}zS6SUSAp|hQtfgu;V@)lj!Wu#>(sP=WUGB6;o)r9H9wQL1p-x?kU23(6+ zV5Y!ajod#6O%WhWX%lB)Kuj2*>q9QkLA`f`K4k@zzC5}{<kB0}!&+LXr9Zk(<Z=g8 fx+APC)51~K2Y9oxfs_d`2r<lOVPN>C4dMX+k^3(v literal 0 HcmV?d00001 diff --git a/conditionals_homework/pom.xml b/conditionals_homework/pom.xml new file mode 100644 index 0000000..7e013a8 --- /dev/null +++ b/conditionals_homework/pom.xml @@ -0,0 +1,36 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>edu.unl.cse.soft160.conditional_algorithms</groupId> + <artifactId>conditional_algorithms</artifactId> + <packaging>jar</packaging> + <version>1.0-SNAPSHOT</version> + <name>conditional_algorithms</name> + <url>http://maven.apache.org</url> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.8.1</version> + <configuration> + <source>8</source> + <target>8</target> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.13</version> + <scope>test</scope> + </dependency> + </dependencies> +</project> diff --git a/conditionals_homework/src/main/java/edu/unl/cse/soft160/conditionals/Caucus.java b/conditionals_homework/src/main/java/edu/unl/cse/soft160/conditionals/Caucus.java new file mode 100644 index 0000000..2329e9e --- /dev/null +++ b/conditionals_homework/src/main/java/edu/unl/cse/soft160/conditionals/Caucus.java @@ -0,0 +1,17 @@ +package edu.unl.cse.soft160.conditionals; + +import java.util.Scanner; + +public class Caucus { + public static void main(String... arguments) { + Scanner scanner = new Scanner(System.in); + System.out.print("Is today a caucus day (yes/no)? "); + boolean isCaucusDay = scanner.nextLine().matches("[Yy].*"); + System.out.print("Is the precinct report a correctly-formatted electronic report (yes/no)? "); + boolean isCorrectlyFormattedReport = scanner.nextLine().matches("[Yy].*"); + System.out.print("Is the precinct report a telephoned report (yes/no)? "); + boolean isTelephonedReport = scanner.nextLine().matches("[Yy].*"); + // [write code here] + scanner.close(); + } +} diff --git a/conditionals_homework/src/main/java/edu/unl/cse/soft160/conditionals/SpeedLimit.java b/conditionals_homework/src/main/java/edu/unl/cse/soft160/conditionals/SpeedLimit.java new file mode 100644 index 0000000..692f873 --- /dev/null +++ b/conditionals_homework/src/main/java/edu/unl/cse/soft160/conditionals/SpeedLimit.java @@ -0,0 +1,13 @@ +package edu.unl.cse.soft160.conditionals; + +import java.util.Scanner; + +public class SpeedLimit { + public static void main(String... arguments) { + Scanner scanner = new Scanner(System.in); + System.out.print("What is the car's speed (in km/h)? "); + double speed = Double.parseDouble(scanner.nextLine()); + // [write code here] + scanner.close(); + } +} diff --git a/conditionals_homework/src/test/java/edu/unl/cse/soft160/conditionals/CaucusTest.java b/conditionals_homework/src/test/java/edu/unl/cse/soft160/conditionals/CaucusTest.java new file mode 100644 index 0000000..2ec2c0a --- /dev/null +++ b/conditionals_homework/src/test/java/edu/unl/cse/soft160/conditionals/CaucusTest.java @@ -0,0 +1,100 @@ +package edu.unl.cse.soft160.conditionals; + +import org.junit.Test; + +import java.io.InputStream; +import java.io.ByteArrayInputStream; +import java.io.PrintStream; +import java.io.ByteArrayOutputStream; + +import static org.junit.Assert.*; + +public class CaucusTest { + protected static String assemble(String... lines) { + return String.join("\n", lines) + "\n"; + } + + protected static String runMain(String... inputs) { + InputStream in = System.in; + PrintStream out = System.out; + System.setIn(new ByteArrayInputStream(assemble(inputs).getBytes())); + ByteArrayOutputStream collector = new ByteArrayOutputStream(); + System.setOut(new PrintStream(collector)); + Caucus.main(); + System.setIn(in); + System.setOut(out); + return collector.toString(); + } + + @Test + public void testInvalidReportNotOnCaucusDay() { + assertEquals( + assemble("Is today a caucus day (yes/no)? " + + "Is the precinct report a correctly-formatted electronic report (yes/no)? " + + "Is the precinct report a telephoned report (yes/no)? " + "Precinct report rejected"), + runMain("no", "no", "no")); + } + + @Test + public void testTelephoneReportNotOnCaucusDay() { + assertEquals( + assemble("Is today a caucus day (yes/no)? " + + "Is the precinct report a correctly-formatted electronic report (yes/no)? " + + "Is the precinct report a telephoned report (yes/no)? " + "Precinct report rejected"), + runMain("no", "no", "yes")); + } + + @Test + public void testWellFormattedElectronicReportNotOnCaucusDay() { + assertEquals( + assemble("Is today a caucus day (yes/no)? " + + "Is the precinct report a correctly-formatted electronic report (yes/no)? " + + "Is the precinct report a telephoned report (yes/no)? " + "Precinct report rejected"), + runMain("no", "yes", "no")); + } + + @Test + public void testDuplicatedReportNotOnCaucusDay() { + assertEquals( + assemble("Is today a caucus day (yes/no)? " + + "Is the precinct report a correctly-formatted electronic report (yes/no)? " + + "Is the precinct report a telephoned report (yes/no)? " + "Precinct report rejected"), + runMain("no", "yes", "yes")); + } + + @Test + public void testInvalidReportOnCaucusDay() { + assertEquals( + assemble("Is today a caucus day (yes/no)? " + + "Is the precinct report a correctly-formatted electronic report (yes/no)? " + + "Is the precinct report a telephoned report (yes/no)? " + "Precinct report rejected"), + runMain("yes", "no", "no")); + } + + @Test + public void testTelephoneReportOnCaucusDay() { + assertEquals( + assemble("Is today a caucus day (yes/no)? " + + "Is the precinct report a correctly-formatted electronic report (yes/no)? " + + "Is the precinct report a telephoned report (yes/no)? " + "Precinct report accepted"), + runMain("yes", "no", "yes")); + } + + @Test + public void testWellFormattedElectronicReportOnCaucusDay() { + assertEquals( + assemble("Is today a caucus day (yes/no)? " + + "Is the precinct report a correctly-formatted electronic report (yes/no)? " + + "Is the precinct report a telephoned report (yes/no)? " + "Precinct report accepted"), + runMain("yes", "yes", "no")); + } + + @Test + public void testDuplicatedReportOnCaucusDay() { + assertEquals( + assemble("Is today a caucus day (yes/no)? " + + "Is the precinct report a correctly-formatted electronic report (yes/no)? " + + "Is the precinct report a telephoned report (yes/no)? " + "Precinct report accepted"), + runMain("yes", "yes", "yes")); + } +} diff --git a/conditionals_homework/src/test/java/edu/unl/cse/soft160/conditionals/SpeedLimitTest.java b/conditionals_homework/src/test/java/edu/unl/cse/soft160/conditionals/SpeedLimitTest.java new file mode 100644 index 0000000..f4875f4 --- /dev/null +++ b/conditionals_homework/src/test/java/edu/unl/cse/soft160/conditionals/SpeedLimitTest.java @@ -0,0 +1,196 @@ +package edu.unl.cse.soft160.conditionals; + +import org.junit.Test; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.InputStream; +import java.io.PrintStream; + +import static org.junit.Assert.*; + +public class SpeedLimitTest { + protected static String assemble(String... lines) { + return String.join("\n", lines) + "\n"; + } + + protected static String runMain(String... inputs) { + InputStream in = System.in; + PrintStream out = System.out; + System.setIn(new ByteArrayInputStream(assemble(inputs).getBytes())); + ByteArrayOutputStream collector = new ByteArrayOutputStream(); + System.setOut(new PrintStream(collector)); + SpeedLimit.main(); + System.setIn(in); + System.setOut(out); + return collector.toString(); + } + + @Test + public void testStoppedOnResidentialStreet() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Safe"), runMain("0.0", "yes", "no")); + } + + @Test + public void testStoppedOnOtherStreet() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Safe"), runMain("0.0", "no", "no")); + } + + @Test + public void testStoppedInResidentialSchoolZone() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Safe"), runMain("0.0", "yes", "yes")); + } + + @Test + public void testStoppedInOtherSchoolZone() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Safe"), runMain("0.0", "no", "yes")); + } + + @Test + public void testSlowOnResidentialStreet() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Safe"), runMain("25.0", "yes", "no")); + } + + @Test + public void testSlowOnOtherStreet() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Safe"), runMain("25.0", "no", "no")); + } + + @Test + public void testSlowInResidentialSchoolZone() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Safe"), runMain("25.0", "yes", "yes")); + } + + @Test + public void testSlowInOtherSchoolZone() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Safe"), runMain("25.0", "no", "yes")); + } + + @Test + public void testAlmostSlowOnResidentialStreet() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Safe"), runMain("25.1", "yes", "no")); + } + + @Test + public void testAlmostSlowOnOtherStreet() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Safe"), runMain("25.1", "no", "no")); + } + + @Test + public void testAlmostSlowInResidentialSchoolZone() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Speeding"), runMain("25.1", "no", "yes")); + } + + @Test + public void testAlmostSlowInOtherSchoolZone() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Speeding"), runMain("25.1", "no", "yes")); + } + + @Test + public void testModerateOnResidentialStreet() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Safe"), runMain("40.0", "yes", "no")); + } + + @Test + public void testModerateOnOtherStreet() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Safe"), runMain("40.0", "no", "no")); + } + + @Test + public void testModerateInResidentialSchoolZone() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Speeding"), runMain("40.0", "yes", "yes")); + } + + @Test + public void testModerateInOtherSchoolZone() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Speeding"), runMain("40.0", "no", "yes")); + } + + @Test + public void testAlmostModerateOnResidentialStreet() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Speeding"), runMain("40.1", "yes", "no")); + } + + @Test + public void testAlmostModerateOnOtherStreet() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Safe"), runMain("40.1", "no", "no")); + } + + @Test + public void testAlmostModerateInResidentialSchoolZone() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Speeding"), runMain("40.1", "yes", "yes")); + } + + @Test + public void testAlmostModerateInOtherSchoolZone() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Speeding"), runMain("40.1", "no", "yes")); + } + + @Test + public void testFastOnResidentialStreet() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Speeding"), runMain("70.0", "yes", "no")); + } + + @Test + public void testFastOnOtherStreet() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Safe"), runMain("70.0", "no", "no")); + } + + @Test + public void testFastInResidentialSchoolZone() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Speeding"), runMain("70.0", "yes", "yes")); + } + + @Test + public void testFastInOtherSchoolZone() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Speeding"), runMain("70.0", "no", "yes")); + } + + @Test + public void testVertFastOnResidentialStreet() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Speeding"), runMain("70.1", "yes", "no")); + } + + @Test + public void testVertFastOnOtherStreet() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Speeding"), runMain("70.1", "no", "no")); + } + + @Test + public void testVertFastInResidentialSchoolZone() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Speeding"), runMain("70.1", "yes", "yes")); + } + + @Test + public void testVertFastInOtherSchoolZone() { + assertEquals(assemble("What is the car's speed (in km/h)? " + "Is the car on a residential street (yes/no)? " + + "Is the car in a school zone (yes/no)? " + "Speeding"), runMain("70.1", "no", "yes")); + } +} diff --git a/lemonade-stand/.gitignore b/lemonade-stand/.gitignore new file mode 100644 index 0000000..f35f60a --- /dev/null +++ b/lemonade-stand/.gitignore @@ -0,0 +1,62 @@ +# Mac file finder metadata +.DS_Store +# Windows file metadata +._* +# Thumbnail image caches +Thumbs.db +ethumbs.db +# MS Office temporary file +~* +# Emacs backup file +*~ + +# Common +[Bb]in/ +[Bb]uild/ +[Oo]bj/ +[Oo]ut/ +[Tt]mp/ +[Xx]86/ +[Ii][Aa]32/ +[Xx]64/ +[Xx]86_64/ +[Xx]86-64/ +[Aa]rm +[Aa]32 +[Tt]32 +[Aa]64 +*.tmp +*.bak +*.bk +*.swp + +# Java files +*.class +javadoc/ + +# Maven +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties + +# JetBrains (IntelliJ IDEA, PyCharm, etc) files +.idea/ +cmake-build-*/ +*.iml +*.iws +*.ipr + +# Eclipse files +.settings/ +.project +.classpath +.buildpath +.loadpath +.factorypath +local.properties diff --git a/lemonade-stand/pom.xml b/lemonade-stand/pom.xml new file mode 100644 index 0000000..9dda763 --- /dev/null +++ b/lemonade-stand/pom.xml @@ -0,0 +1,37 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>edu.unl.cse.soft160.lemonade_stand</groupId> + <artifactId>lemonade_stand</artifactId> + <packaging>jar</packaging> + <version>1.0-SNAPSHOT</version> + <name>lemonade_stand</name> + <url>http://maven.apache.org</url> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.8.1</version> + <configuration> + <source>8</source> + <target>8</target> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.13</version> + <scope>test</scope> + </dependency> + </dependencies> +</project> + diff --git a/lemonade-stand/src/main/java/edu/unl/cse/soft160/lemonade_stand/LemonadeStandSimulator.java b/lemonade-stand/src/main/java/edu/unl/cse/soft160/lemonade_stand/LemonadeStandSimulator.java new file mode 100644 index 0000000..75bfa36 --- /dev/null +++ b/lemonade-stand/src/main/java/edu/unl/cse/soft160/lemonade_stand/LemonadeStandSimulator.java @@ -0,0 +1,52 @@ +package edu.unl.cse.soft160.lemonade_stand; + +import java.util.Scanner; + +public class LemonadeStandSimulator { + public enum Weather { + SUNNY, CLOUDY, + } + + public static void main(String... arguments) { + Scanner scanner = new Scanner(System.in); + System.out.println("Lemonade Stand Simulator"); + System.out.println(); + // Set up the economy. + final int cost = 5; + final int price = 10; + final int lowDemand = 2; + final int highDemand = 10; + int money = 200; + // Set up the weather. + Weather weather = Weather.SUNNY; + // Simulate a day. + System.out.println("You have " + money + " cents."); + System.out.println("Each glass of lemonade costs " + cost + " cents to make."); + System.out.println("Each glass of lemonade is sold for " + price + " cents."); + System.out.println("Today's forecast is " + weather + "."); + System.out.print("Make how many glasses of lemonade? "); + int glasses = scanner.nextInt(); + if (glasses < 0) { + System.out.println("(Assuming that you meant zero glasses.)"); + glasses = 0; + } else if (glasses > money / cost) { + glasses = money / cost; + System.out.println("(Assuming that you meant " + glasses + " glass(es).)"); + } + int demand; + if (weather == Weather.SUNNY) { + demand = highDemand; + } else { + demand = lowDemand; + } + int sold = Math.min(glasses, demand); + System.out.println(); + System.out.println("You sold " + sold + " glass(es) of lemonade."); + money = money - cost * glasses + price * sold; + System.out.println("You now have " + money + " cents."); + System.out.println(); + // Done simulating a day. + scanner.close(); + System.out.println("You have completed the simulation with " + money + " cent(s)."); + } +} diff --git a/quadrants/.gitignore b/quadrants/.gitignore new file mode 100644 index 0000000..f35f60a --- /dev/null +++ b/quadrants/.gitignore @@ -0,0 +1,62 @@ +# Mac file finder metadata +.DS_Store +# Windows file metadata +._* +# Thumbnail image caches +Thumbs.db +ethumbs.db +# MS Office temporary file +~* +# Emacs backup file +*~ + +# Common +[Bb]in/ +[Bb]uild/ +[Oo]bj/ +[Oo]ut/ +[Tt]mp/ +[Xx]86/ +[Ii][Aa]32/ +[Xx]64/ +[Xx]86_64/ +[Xx]86-64/ +[Aa]rm +[Aa]32 +[Tt]32 +[Aa]64 +*.tmp +*.bak +*.bk +*.swp + +# Java files +*.class +javadoc/ + +# Maven +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties + +# JetBrains (IntelliJ IDEA, PyCharm, etc) files +.idea/ +cmake-build-*/ +*.iml +*.iws +*.ipr + +# Eclipse files +.settings/ +.project +.classpath +.buildpath +.loadpath +.factorypath +local.properties diff --git a/quadrants/pom.xml b/quadrants/pom.xml new file mode 100644 index 0000000..1cd97bc --- /dev/null +++ b/quadrants/pom.xml @@ -0,0 +1,37 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>edu.unl.cse.soft160.quadrants</groupId> + <artifactId>quadrants</artifactId> + <packaging>jar</packaging> + <version>1.0-SNAPSHOT</version> + <name>quadrants</name> + <url>http://maven.apache.org</url> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.8.1</version> + <configuration> + <source>8</source> + <target>8</target> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.13</version> + <scope>test</scope> + </dependency> + </dependencies> +</project> + diff --git a/quadrants/src/main/java/edu/unl/cse/soft160/quadrants/App.java b/quadrants/src/main/java/edu/unl/cse/soft160/quadrants/App.java new file mode 100644 index 0000000..fbb2295 --- /dev/null +++ b/quadrants/src/main/java/edu/unl/cse/soft160/quadrants/App.java @@ -0,0 +1,13 @@ +package edu.unl.cse.soft160.quadrants; + +public class App { + public static void main( String[] args ) { + java.util.Scanner scanner = new java.util.Scanner(System.in); + System.out.print("Enter an x coordinate: "); + double x = scanner.nextDouble(); + System.out.print("Enter a y coordinate: "); + double y = scanner.nextDouble(); + // ... + scanner.close(); + } +} diff --git a/quadrants/src/test/java/edu/unl/cse/soft160/quadrants/AppTest.java b/quadrants/src/test/java/edu/unl/cse/soft160/quadrants/AppTest.java new file mode 100644 index 0000000..d2294e8 --- /dev/null +++ b/quadrants/src/test/java/edu/unl/cse/soft160/quadrants/AppTest.java @@ -0,0 +1,38 @@ +package edu.unl.cse.soft160.quadrants; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +/** + * Unit test for simple App. + */ +public class AppTest + extends TestCase +{ + /** + * Create the test case + * + * @param testName name of the test case + */ + public AppTest( String testName ) + { + super( testName ); + } + + /** + * @return the suite of tests being tested + */ + public static Test suite() + { + return new TestSuite( AppTest.class ); + } + + /** + * Rigourous Test :-) + */ + public void testApp() + { + assertTrue( true ); + } +} diff --git a/scramble-homework/.gitignore b/scramble-homework/.gitignore new file mode 100644 index 0000000..9dbe7d1 --- /dev/null +++ b/scramble-homework/.gitignore @@ -0,0 +1,54 @@ +# Mac file finder metadata +.DS_Store +# Windows file metadata +._* +# Thumbnail image caches +Thumbs.db +ethumbs.db +# MS Office temporary file +~* +# Emacs backup file +*~ + +# Common +[Bb]in/ +[Bb]uild/ +[Oo]bj/ +[Oo]ut/ +[Tt]mp/ +[Xx]86/ +[Ii][Aa]32/ +[Xx]64/ +[Xx]86_64/ +[Xx]86-64/ +[Aa]rm +[Aa]32 +[Tt]32 +[Aa]64 +*.tmp +*.bak +*.bk +*.swp + +# Java files +*.class +javadoc/ + +# Maven +target/ + +# JetBrains (IntelliJ IDEA, PyCharm, etc) files +.idea/ +cmake-build-*/ +*.iml +*.iws +*.ipr + +# Eclipse files +.settings/ +.project +.classpath +.buildpath +.loadpath +.factorypath +local.properties diff --git a/scramble-homework/README.md b/scramble-homework/README.md new file mode 100644 index 0000000..ae22db9 --- /dev/null +++ b/scramble-homework/README.md @@ -0,0 +1,4 @@ +# Scramble Code + +Starter code for "Working with Java Code" homework assignment. + diff --git a/scramble-homework/documentation/solution_design.odt b/scramble-homework/documentation/solution_design.odt new file mode 100644 index 0000000000000000000000000000000000000000..2708bd0d90538765aa2fd8bc6c037e435aad5dd8 GIT binary patch literal 11441 zcmWIWW@Zs#VBlb2Xv#4Ojyq<=qt3v<0Kyy$3=FxMxv3?U1*wSz1v#0?i6xo&dHQ8} zDSG*d#hJx=`30$YDf!8zxv6<2dL^k9C8&lmAORT$1_tN+ytK^p(ju@i#YXyx$;qiX zsYQt;`9=D;b;@JWnVFlIo?5K$lv$FSSWt{dvlJH1CHeU|1&Mj7Ie7G8b8bOVetJ=A zadA>2KIdYyvA86$q?CX@2^=oPZyPpUX*v0cC8?yku^_*ov>-P%uM|(HV6zRR1>r^x z4i0cSLW+3?9#A?;%*#wmEiTb3N=Z9A`D|XZfk4Z9o7U8GHyrd?S&KAI?aZ2gz_cxb zRsYj0p?mxKCWi$sS@mlEmB;JcjPLhtnf*3V=0x|V6$e91k~LLNd1P#Tscp4eZ|Bn6 zR<~|!)0Uql`!TC|>3pqS<#}3`@zYv$&3SUpZ(gKPG3&F9{~o1-S1k%Xc#du9<KUF* zb;|tuq(;i}+#}Ak@W7JS3no;4SFr8AYqfI0Ca%P7L3`V`DNJm1=;ib|)l$+dv&+x> zsPVMVftCjszI}8&VejSUMK%c^wENEAxYxn6>}lMCy&K-eG~ch8no;#GxvKQ?(U13) zrzFfVdguRYw{_+J=l}H1|CfBUeoL84j>Ead>AxmC-||U5)O~$`H#^6c?-`d^85tOw znHd-$=^tD0fwN(1NupjwZcgvyvw3q2L|VVsa=C0`mF7R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Y6ckc$JMje&uootc3l7rJr} zT^I6%H>!OttPBjuOTJ(_aZQLLtenKdz<_Id9A*m4)ySO+(BLG(6d!R02E<S$x<2GW v7u4lI=vya`(g8u&h+KMr%4CGbV`?}`=m2k4Hjpww20?~Y76t}0@YEsz<~QKc literal 0 HcmV?d00001 diff --git a/scramble-homework/pom.xml b/scramble-homework/pom.xml new file mode 100644 index 0000000..272148e --- /dev/null +++ b/scramble-homework/pom.xml @@ -0,0 +1,36 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>edu.unl.cse.soft160.conditionals</groupId> + <artifactId>conditionals</artifactId> + <packaging>jar</packaging> + <version>1.0-SNAPSHOT</version> + <name>conditionals</name> + <url>http://maven.apache.org</url> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.8.1</version> + <configuration> + <source>8</source> + <target>8</target> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.13</version> + <scope>test</scope> + </dependency> + </dependencies> +</project> diff --git a/scramble-homework/src/main/java/edu/unl/cse/soft160/conditionals/Scramble.java b/scramble-homework/src/main/java/edu/unl/cse/soft160/conditionals/Scramble.java new file mode 100644 index 0000000..a13a442 --- /dev/null +++ b/scramble-homework/src/main/java/edu/unl/cse/soft160/conditionals/Scramble.java @@ -0,0 +1,36 @@ +package edu.unl.cse.soft160.conditionals; + +import java.util.Scanner; + +public class Scramble { + public static void main(String... arguments) { + // REARRANGE THE CODE TO SOLVE THE PROBLEM + // DO NOT ADD, REOVE, OR MODIFY ANY OF THE LINES + // BE SURE TO RUN THE SOURCE FORMATTER WHEN YOU'RE DONE + System.out.println("The median is " + thirdValue + "."); + System.out.println("The median is " + thirdValue + "."); + System.out.println("The median is " + secondValue + "."); + System.out.println("The median is " + secondValue + "."); + System.out.println("The median is " + firstValue + "."); + System.out.println("The median is " + firstValue + "."); + System.out.print("Enter third value: "); + System.out.print("Enter second value: "); + System.out.print("Enter first value: "); + scanner.close(); + Scanner scanner = new java.util.Scanner(System.in); + int thirdValue = Integer.parseInt(scanner.nextLine()); + int secondValue = Integer.parseInt(scanner.nextLine()); + int firstValue = Integer.parseInt(scanner.nextLine()); + if (secondValue > thirdValue) { + if (secondValue < thirdValue) { + if (firstValue > secondValue) { + } else if (firstValue > thirdValue) { + } else if (firstValue < thirdValue) { + } else { + } else{ + } else{ + } + } + } + } +} diff --git a/scramble-homework/src/test/java/edu/unl/cse/soft160/conditionals/ScrambleTest.java b/scramble-homework/src/test/java/edu/unl/cse/soft160/conditionals/ScrambleTest.java new file mode 100644 index 0000000..6ec70b5 --- /dev/null +++ b/scramble-homework/src/test/java/edu/unl/cse/soft160/conditionals/ScrambleTest.java @@ -0,0 +1,126 @@ +package edu.unl.cse.soft160.conditionals; + +import org.junit.Test; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.InputStream; +import java.io.PrintStream; + +import static org.junit.Assert.*; + +public class ScrambleTest { + protected static String assemble(String... lines) { + return String.join("\n", lines) + "\n"; + } + + protected static String runMain(String... inputs) { + InputStream in = System.in; + PrintStream out = System.out; + System.setIn(new ByteArrayInputStream(assemble(inputs).getBytes())); + ByteArrayOutputStream collector = new ByteArrayOutputStream(); + System.setOut(new PrintStream(collector)); + Scramble.main(); + System.setIn(in); + System.setOut(out); + return collector.toString(); + } + + @Test + public void testOrder0() { + assertEquals( + assemble("Enter first value: " + "Enter second value: " + "Enter third value: " + "The median is 1."), + runMain("0", "1", "2")); + } + + @Test + public void testOrder1() { + assertEquals( + assemble("Enter first value: " + "Enter second value: " + "Enter third value: " + "The median is 1."), + runMain("0", "2", "1")); + } + + @Test + public void testOrder2() { + assertEquals( + assemble("Enter first value: " + "Enter second value: " + "Enter third value: " + "The median is 1."), + runMain("2", "0", "1")); + } + + @Test + public void testOrder3() { + assertEquals( + assemble("Enter first value: " + "Enter second value: " + "Enter third value: " + "The median is 1."), + runMain("2", "1", "0")); + } + + @Test + public void testOrder4() { + assertEquals( + assemble("Enter first value: " + "Enter second value: " + "Enter third value: " + "The median is 1."), + runMain("1", "2", "0")); + } + + @Test + public void testOrder5() { + assertEquals( + assemble("Enter first value: " + "Enter second value: " + "Enter third value: " + "The median is 1."), + runMain("1", "0", "2")); + } + + @Test + public void testOrder6WithAHighTie() { + assertEquals( + assemble("Enter first value: " + "Enter second value: " + "Enter third value: " + "The median is 1."), + runMain("0", "1", "1")); + } + + @Test + public void testOrder7WithAHighTie() { + assertEquals( + assemble("Enter first value: " + "Enter second value: " + "Enter third value: " + "The median is 1."), + runMain("1", "0", "1")); + } + + @Test + public void testOrder8WithAHighTie() { + assertEquals( + assemble("Enter first value: " + "Enter second value: " + "Enter third value: " + "The median is 1."), + runMain("1", "1", "0")); + } + + @Test + public void testOrder9WithALowTie() { + assertEquals( + assemble("Enter first value: " + "Enter second value: " + "Enter third value: " + "The median is 0."), + runMain("0", "0", "1")); + } + + @Test + public void testOrder10WithALowTie() { + assertEquals( + assemble("Enter first value: " + "Enter second value: " + "Enter third value: " + "The median is 0."), + runMain("1", "0", "0")); + } + + @Test + public void testOrder11WithALowTie() { + assertEquals( + assemble("Enter first value: " + "Enter second value: " + "Enter third value: " + "The median is 0."), + runMain("0", "1", "0")); + } + + @Test + public void testAllTied() { + assertEquals( + assemble("Enter first value: " + "Enter second value: " + "Enter third value: " + "The median is 0."), + runMain("0", "0", "0")); + } + + @Test + public void testNegatives() { + assertEquals( + assemble("Enter first value: " + "Enter second value: " + "Enter third value: " + "The median is -2."), + runMain("-1", "-2", "-3")); + } +} diff --git a/small-computational-problems/Problem3.java b/small-computational-problems/Problem3.java new file mode 100644 index 0000000..5487bac --- /dev/null +++ b/small-computational-problems/Problem3.java @@ -0,0 +1,14 @@ +import java.util.Scanner; + +public class Problem3 { + private static Scanner scanner = new Scanner(System.in); + public static void main(String[] args) { + float payRate; + float hoursWorked; + float grossEarnings; + payRate = scanner.nextFloat(); + hoursWorked = scanner.nextFloat(); + grossEarnings = hoursWorked * payRate; + System.out.print(grossEarnings); + } +} diff --git a/small-computational-problems/Problem4.java b/small-computational-problems/Problem4.java new file mode 100644 index 0000000..e0084ba --- /dev/null +++ b/small-computational-problems/Problem4.java @@ -0,0 +1,22 @@ +import java.util.Scanner; + +public class Problem4 { + private static Scanner scanner = new Scanner(System.in); + public static void main(String[] args) { + // Re-order lines 7-19 to solve the problem + System.out.print("A"); + System.out.print("B"); + System.out.print("C"); + System.out.print("D"); + System.out.print("F"); + float examGrade; + if (examGrade >= 90) { + } else if (examGrade >= 60) { + } else if (examGrade >= 70) { + } else if (examGrade >= 80) { + examGrade = scanner.nextFloat(); + } else { + } + // Re-order lines 7-19 to solve the problem + } +} diff --git a/small-computational-problems/Problem5.java b/small-computational-problems/Problem5.java new file mode 100644 index 0000000..3438c47 --- /dev/null +++ b/small-computational-problems/Problem5.java @@ -0,0 +1,24 @@ +import java.util.Scanner; + +public class Problem5 { + private static Scanner scanner = new Scanner(System.in); + public static void main(String[] args) { + // Re-order lines 7-21 to solve the problem + System.out.print(averageScore); + averageScore = sumOfScores / numberOfStudents; + currentStudent = 0; + currentStudent = currentStudent + 1; + currentStudentScore = scanner.nextFloat(); + float averageScore; + float currentStudentScore; + float sumOfScores; + int currentStudent; + int numberOfStudents; + numberOfStudents = scanner.nextInt(); + sumOfScores = 0; + sumOfScores = sumOfScores + currentStudentScore; + while (currentStudent < numberOfStudents) { + } + // Re-order lines 7-21 to solve the problem + } +} diff --git a/unitsquare/doc/.gitkeep b/unitsquare/doc/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/unitsquare/pom.xml b/unitsquare/pom.xml new file mode 100644 index 0000000..926c98e --- /dev/null +++ b/unitsquare/pom.xml @@ -0,0 +1,46 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>edu.unl.cse.soft160.unitSquares</groupId> + <artifactId>unitSquares</artifactId> + <packaging>jar</packaging> + <version>1.0-SNAPSHOT</version> + <name>unitSquares</name> + <url>http://maven.apache.org</url> + + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.8.1</version> + <configuration> + <source>11</source> + <target>11</target> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>3.3.1</version> + <configuration> + <show>public</show> + <source>11</source> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.13</version> + <scope>test</scope> + </dependency> + </dependencies> +</project> diff --git a/unitsquare/src/main/java/edu/unl/cse/soft160/unitSquares/App.java b/unitsquare/src/main/java/edu/unl/cse/soft160/unitSquares/App.java new file mode 100644 index 0000000..2d350be --- /dev/null +++ b/unitsquare/src/main/java/edu/unl/cse/soft160/unitSquares/App.java @@ -0,0 +1,41 @@ +package edu.unl.cse.soft160.unitSquares; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } + +/* MOVE THESE LINES OF CODE INTO THE `main` METHOD, IN THE CORRECT ORDER */ /* + +double lowerLeftY = Math.max(y0, y1); +scanner.close(); +System.out.print("Enter the x coordinate of the second unit square's lower-left corner: "); +double x1 = scanner.nextDouble(); +double height = Math.max(candidateHeight, 0.0); +double area = width * height; +double upperRightX = referenceX + 1.0; +double candidateWidth = upperRightX - lowerLeftX; +double lowerLeftX = Math.max(x0, x1); +double upperRightY = referenceY + 1.0; +double candidateHeight = upperRightY - lowerLeftY; +double referenceX = Math.min(x0, x1); +Scanner scanner = new Scanner(System.in); +System.out.print("Enter the y coordinate of the second unit square's lower-left corner: "); +double y1 = scanner.nextDouble(); +System.out.println("The area of the squares' intersection is " + area + " square unit(s)."); +System.out.print("Enter the y coordinate of the first unit square's lower-left corner: "); +double y0 = scanner.nextDouble(); +double referenceY = Math.min(y0, y1); +System.out.print("Enter the x coordinate of the first unit square's lower-left corner: "); +double x0 = scanner.nextDouble(); +double width = Math.max(candidateWidth, 0.0); + +*/ + +} diff --git a/unitsquare/src/test/java/edu/unl/cse/soft160/unitSquares/AppTest.java b/unitsquare/src/test/java/edu/unl/cse/soft160/unitSquares/AppTest.java new file mode 100644 index 0000000..cbcce87 --- /dev/null +++ b/unitsquare/src/test/java/edu/unl/cse/soft160/unitSquares/AppTest.java @@ -0,0 +1,38 @@ +package edu.unl.cse.soft160.unitSquares; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +/** + * Unit test for simple App. + */ +public class AppTest + extends TestCase +{ + /** + * Create the test case + * + * @param testName name of the test case + */ + public AppTest( String testName ) + { + super( testName ); + } + + /** + * @return the suite of tests being tested + */ + public static Test suite() + { + return new TestSuite( AppTest.class ); + } + + /** + * Rigourous Test :-) + */ + public void testApp() + { + assertTrue( true ); + } +} -- GitLab