Welcome Message
Part of the Fundamentals section of Coddy's C++ journey — lesson 38 of 74.
Did you know that creating a simple calculator in C++ can be a great way to practice what you've learned about variables, operators, and basic input/output?
In this project, you'll create a basic calculator app that performs arithmetic operations like addition, subtraction, multiplication, and division. It's a practical way to apply your C++ skills and build a useful tool.
By the end of this project, you'll have a working calculator that can perform basic math operations! Let's get started!
Challenge
BeginnerEvery good program starts with a welcome message. Output to the screen the following string:
Calculator AppAdd endl to the print.
Cheat sheet
To output text in C++, use cout with the insertion operator <<:
cout << "Calculator App" << endl;The endl adds a newline and flushes the output buffer.
Try it yourself
#include <iostream>
int main() {
return 0;
}This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Fundamentals
4Operators Part 1
Arithmetic OperatorsModulo OperatorIncrement/DecrementPost Increment/DecrementArithmetic ShortcutsComparison OperatorsString Comparison3Variables Part 2
Type DeclarationNaming ConventionsRecap - Initialize VariablesType Casting Part 1Type Casting Part 26Decision Making
If StatementIf - ElseSwitch StatementConditional OperatorRecap - If ElseNested If - Else