GithubHelp home page GithubHelp logo

java-section-4-recap's Introduction

Functions Recap

small series of apps to practice the concepts in Section 4

Detention

Bart needs to write the following paragraph 6 times:

"I will not copy and paste code. I will use Camel Case when writing class names. I will use lower Camel Case when writing function names. I will use lower Camel Case when writing variables names."

I help Bart by writing a function that does the task for him.

  • The purpose is to practice defining functions
  • And practice calling them

Tip

A small app that tips a waiter 15% of the bill

  • Purpose is to practice passing values into functions

Weather

Converts user noon, evening and midnight temperatures from fahrenheit to celsius

  • Purpose is to practice returning values from a function

Weather

A program that where a user can choose to draw 4 different types of animals: Butterfly, Elephant, Bear, or Snake.

  • Purpose is to practice and understand how to apply logic into functions

Area Calculator

A simple calculator that calculates the area of a square, rectangle, triangle, or circle.

  • Purpose is to use built-in functions
  • And apply conditional logic (if-else)

Rock, Paper, Scissors

An interactive app where you can play the game Rock, Paper, Scissors.

  • User can choose either rock, paper or scissors
  • Computer reports its own choice
  • Logic determines who wins the game based on the choices

java-section-4-recap's People

Watchers

 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.