C++ - Lesson #23 - Largest and Smallest Number Demo

Опубликовано: 17 Август 2026
на канале: CODE HAMMER BOOTCAMP - POUNDING THROUGH THE CODE!!
880
9

In this video I demonstrate the Largest and Smallest Number Demo video. I demonstrate reading through a program description and determining what variables will be used and which functions will be called. This program allows the user to enter a list of numbers and a sentinel value -99 to quit. Once the user is finished entering numbers the program displays the largest and smallest numbers in the list. There is a setlargestsmallestnumber() function where a number is passed to it and it determines the largest and smallest number. There are also two accessor functions getlargestnumber() and getsmallestnumber() that returns the largest and smallest numbers back into the main() function.

My name is Mike Seely and I teach computer science courses at the high school and college level in Colorado. These videos are appropriate for Introduction to Programming, AP Computer Science A, and AP Computer Science Principles classes. I understand that these videos are not of professional quality, but these are the videos I created for my students while we were all locked up during COVID. My videos are of me demonstrating entire programs and/or worksheets or practice quizzes that I would teach in class. My hope is they have a structured flow to them so they could support your learning in a programming course. I hope these videos help everyone learn a fairly difficult subject :)

PS - I apologize if the closed caption doesn't align with what I am saying. I ran the video through a Google translator and the closed caption is what Google came up with not me.

variables, methods, input, output, functions, primitive data types, int, double, char, boolean, ==, .equals(), print(), println(), sequence, selection, iteration, for loop, while loop, do while loop, nested loops, if, else, if else, nested if statements, {, }, (), abstraction, strings, arrays, 2D arrays, recursion, inheritance, interface, UML, flowchart, And, Or, Not, &&, ||, !, Truth Tables, logic, logic gates, binary, number systems, testing, debugging, writing, programming, Java, C++, Python, Netbeans, IDLE, Visual Studio, constants, final, polymorphism, sorting and searching algorithms, arithmetic expressions, combined operators, +, -, *, /, +=, -=, *=, /=, %, modulus, compiler, comments, //, /*, keywords, reserved words,