GithubHelp home page GithubHelp logo

raul46 / lab-10-isdecreasing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stratfordhs-apcs/lab-10-isdecreasing

0.0 0.0 0.0 5 KB

Determine if an array's contents are constantly decreasing or not.

Java 100.00%

lab-10-isdecreasing's Introduction

Lab 10 - isDecreasing

Lab Goal:

This lab was designed to teach you more about processing arrays and algorithms.

Lab Description:

Write a program that will go through an array to see if the numbers are decreasing. You must combine variables, ifs, and a loop to create a working method. There will always be at least one item in the array. Each prior number has to be greater than the following number for the array to be considered going down.

Sample Data Sample Output
[-99,1,2,3,4,5,6,7,8,9,10,12345] false
[10,9,8,7,6,5,4,3,2,1,-99] true
[10,20,30,40,50,-11818,40,30,20,10] false
[32767] true
[255,255] false
[9,10,-88,100,-555,1000] false
[10,10,10,11,456] false
[-111,1,2,3,9,11,20,30] false
[9,8,7,6,5,4,3,2,0,-2,-989] true
[12,15,18,21,23,1000] false
[250,19,17,15,13,11,10,9,6,3,2,1,-455] true
[9,10,-8,10000,-5000,1000] false

Testing

If you want to run the tests yourself before committing and pushing to GitHub you can do the following steps.

  1. In the REPL window press Ctrl-Shift-S to open the shell window.
  2. In the shell window type "mvn test" to run the tests.

lab-10-isdecreasing's People

Contributors

daveavis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.