# Philipp Siedler

## mean using a vector

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Exercise 3 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Exercise 3 #include "std_lib_facilities.h" int main() { vector<double> distances; double distance; cout <<…

## median using a vector

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Exercise 2 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Exercise 2 #include "std_lib_facilities.h" int main() { vector<double> temps; double temp; cout <<…

## keeping track of numbers 1.2

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Drill 11 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Drill 11 #include "std_lib_facilities.h" int main() { cout << "Enter a double followed…

## keeping track of numbers 1.1

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Drill 10 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Drill 10 #include "std_lib_facilities.h" int main() { cout << "Enter a double followed…

## keeping track of numbers 1.0

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Drill 9 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Drill 9 #include "std_lib_facilities.h" int main() { cout << "Enter a double followed…

## smallest, largest rejecting wrong units

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Drill 8 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Drill 8 #include "std_lib_facilities.h" int main() { cout << "Enter a double value…

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Drill 7 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Drill 7 #include "std_lib_facilities.h" int main() { cout << "Enter a double value…

## smallest, largest so far is …

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Drill 6 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Drill 6 #include "std_lib_facilities.h" int main() { cout << "type in doubles to…

## almost equal numbers

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Drill 5 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Drill 5 #include "std_lib_facilities.h" int main() { cout << "type in two doubles…

## smaller, larger, equal to … [doubles]

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Drill 4 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Drill 4 #include "std_lib_facilities.h" int main() { cout << "type in two doubles…