Programming

This program prints words within the quotations. “#include <iostream> has to be implemented into every program. “using namespace” makes it so you don’t have to add std at the beginning of every line, indentation separates each line of code to make is easier to read.
The green text within the coding is used to make notes and are not executable lines of code, this is also really helpful when testing which lines of codes work if you get an error in your code.

This code is a simulation meant to imitate a character being hit/dying in a game, StartLives represents your starting lives ad your remaining lives.

This line is meant to show a character taking damage or dying and the line below outputs your remaining lives.

The job of this program was learning how to implement number types into code, the output from this program is the area.

The program above is a while loop which determines if the temperature is cold or warm where as you’re given the chance to input the temperature and depending on the value you’ll get either of the 2 responses.

Arrays: e.g int foo [5] = [0, 1, 2, 3, 4]

Reflection:


Follow My Blog

Get new content delivered directly to your inbox.

Design a site like this with WordPress.com
Get started