GithubHelp home page GithubHelp logo

iteration-statements-exercise's Introduction

Getting Started Video: Click here

Constraints:

Use as many descriptive names as possible. I do not want to see myInt1 - 100!

For training purposes, most if not all the data for these methods can come from user input.

Each one of these methods should be called from Main() and declared in the Program class.

Be as creative as you want, the goal is to have working methods but if you want to make them look nice, go for it. As in Num 6 w/ age and voting method, you can say “You may vote” or “Looks like you're too young this time!” based on their age.

This project should work in a manner where if someone forks/clones this from GitHub, they can just press the play button and have every method run in sequence, so all interface dialogue should be in place already. When finished, push this to GitHub!

LukeWarm Section:

  • Write a method that will print to the console all numbers 1000 through -1000
  • Write a method that will print to the console numbers 3 through 999 by 3 each time
  • Write a method to accept two integers as parameterss and check whether they are equal or not
  • Write a method to check whether a given number is even or odd
  • Write a method to check whether a given number is positive or negative
  • Write a method to read the age of a candidate and determine whether they can vote.

Hint: Use Parse or the safer TryParse() for an extra challenge

Parse()
TryParse()

Heatin Up Section:

  • Write a method to check if an integer (from the user) is in the range -10 to 10
  • Write a method to display the multiplication table (from 1 to 12) of a given integer

Use the answer branch of this repository for reference: Github repo

iteration-statements-exercise's People

Contributors

jshudd avatar mvdoyle avatar schwenk-a avatar

Watchers

 avatar  avatar  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.