Application Programs
Small C++ application programs that combine loops, switch, functions, and parsing: a menu-driven calculator, a scientific calculator, and a date string parser.
3 programs · open one, then the next
Start with Menu Driven Program- 01Menu Driven ProgramBeginnerBuild a menu-driven calculator in C++ with a do-while loop, a displayMenu function, and switch. Learn why do-while fits menus and how choice 5 exits.Open example →cpp#include <iostream> using namespace std; void displayMenu() {
- 02Scientific CalculatorIntermediateBuild a menu-based scientific calculator in C++ with pow, sqrt, sin, cos, tan, and log. Covers degrees to radians, domain checks, and output formatting.Open example →cpp#include <iostream> #include <cmath> #include <iomanip> using namespace std;
- 03Convert String to DateIntermediateParse a date string like "25/12/2024" into day, month, and year in C++ with getline on '/' and stoi, then with sscanf. Covers validation and malformed input.Open example →cpp#include <iostream> #include <string> #include <sstream> #include <ctime>