To- Do List

--Originally published at estefilangarica.wordpress.com

  1. Use of comments
  2. C++ Good Style coding conventions
  3. Basic types and their use
  4. Basic output (print)
  5. Basic user input (text based)
  6. Calling functions
  7. Creating functions
  8. Importing and using libraries
  9. Creating and using your own libraries (program with multiple files)
  10. Use of the conditional “if”
  11. Use of “else” with a conditional if
  12. Nesting of conditional statements (ifs inside ifs)
  13. Use of loops with “while” and “do while”
  14. Use of loops with “for”
  15. Nested loops
  16. Use of recursion for repetitive algorithms
  17. When to use what type of repetition in a program
  18. Creation and use of Arrays/Vectors in C++
  19. Creation and use of strings
  20. Validated user input (ensure correct/expected data entry)
  21. Reading and writing of text files
  22. Matrixes and Vectors
  23. Data analysis with tools (to be determined which tool, most likely SciLab)
  24. Visualization of data with tools

Factorial Calculator

--Originally published at estefilangarica.wordpress.com

Sixth Activity

The assignment Ken gave us was the following:

Create a program that asks the user for a non-negative integer (let’s call that number n) and display for them the value of n! (n factorial).

After showing them the answer, ask them if they would like to try another number (with a simple y/n response) and either ask again (for y) or quit the program and wish them a nice day (if they answered n).


On To Functions

--Originally published at estefilangarica.wordpress.com

Fifth Activity

The assignment Ken gave us was the following:

You will go back and do WSQ01 – Fun with Numbers again.

But this time, write a function for each calculation. Each function should define two parameters (in this example of type int) and return the correct value as an integer as well.

You main program needs to ask the user for the input and then call each function to calculate the answer for each of the parts.


Quiz 4. Minimum and Squares

--Originally published at estefilangarica.wordpress.com

The instructions of the quiz where:

Create a program with two functions:

  • int minimumThree(int x, int y, int z){ }  // returns the value that is smallest of x, y and z
  • int sumSquares(int x, int y, int z) {}  // returns the value of the sum of squares of x, y, z

You should make a main routine that asks the user for three numbers and then calls your functions to which should *RETURN* the value and you print in the main program.


Hello World!

--Originally published at estefilangarica.wordpress.com

 

Compiling my first program was challenging because I didn’t know how to do it, so I asked Ken and he helped me. When I was ready to run I couldn’t because there was an error, I forgot to use a semicolon after “return 0”. After correcting the error everything worked as it was supposed to. What I really liked is that they tell you where is the error and what is missing.

screen-shot-2017-01-18-at-1-05-37-pm

Code:

screen-shot-2017-01-17-at-11-01-45-am