
Recap Week
Presentation
•
Computers
•
University
•
Hard
nurul iman
FREE Resource
4 Slides • 0 Questions
1
Let's recap with C++ coding
2
Based on coding shown, what header that should be use?
int main() {
double x = 4.5;
double squareRoot = sqrt(x);
double cosineValue = cos(x);
cout << "Square root of " << x << " is " << squareRoot << endl;
cout << "Cosine of " << x << " is " << cosineValue << endl;
char ch = 'A';
bool isUpper = isupper(ch);
bool isDigit = isdigit(ch);
cout << ch << " is uppercase? " << boolalpha << isUpper << endl;
cout << ch << " is a digit? " << boolalpha << isDigit << endl;
return 0;
}
3
Create a C++ coding that create a menu using function
4
// Function to display the menu options
void displayMenu() {
cout << "=== Menu ===" << endl;
cout << "1. Option 1" << endl;
cout << "2. Option 2" << endl;
cout << "3. Option 3" << endl;
cout << "4. Quit" << endl;
cout << "=============" << endl;
}
Function
int main() {
int choice;
do {
displayMenu();
cout << "Enter your choice (1-4): ";
cin >> choice;
switch (choice) {
case 1: cout << "You selected Option 1." << endl; break;
case 2: cout << "You selected Option 2." << endl; break;
case 3: cout << "You selected Option 3." << endl; break;
case 4: cout << "Quitting the program." << endl; break;
default: cout << "Invalid choice. Please try again." << endl; break;
}
cout << endl;
} while (choice != 4); return 0; }
Main Function
Example code:
Let's recap with C++ coding
Show answer
Auto Play
Slide 1 / 4
SLIDE
Similar Resources on Wayground
5 questions
How to Use QUIZIZZ
Presentation
•
University
7 questions
Nature
Presentation
•
University
7 questions
COLECISTITIS
Presentation
•
KG
3 questions
MATH 4 Week 3 Quiz
Presentation
•
KG
6 questions
Introducción al HTML
Presentation
•
Professional Development
6 questions
MARKETING MIX
Presentation
•
KG - University
6 questions
Filosofía del derecho
Presentation
•
University
7 questions
Magician's Nephew 1-7
Presentation
•
University
Popular Resources on Wayground
6 questions
Secondary Safety Quiz
Presentation
•
9th - 12th Grade
10 questions
Afterschool Activities & Sports
Quiz
•
6th - 8th Grade
19 questions
ROAR Week 2026
Quiz
•
9th - 12th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
15 questions
Cool Tool:Chromebook
Quiz
•
6th - 8th Grade
22 questions
would you rather
Quiz
•
3rd - 11th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
Discover more resources for Computers
12 questions
Academic Integrity
Presentation
•
University
20 questions
IR Writing 201
Quiz
•
University
20 questions
Disney Trivia
Quiz
•
University
40 questions
Famous Logos
Quiz
•
7th Grade - University
4 questions
Benefits of Saving
Quiz
•
5th Grade - University
25 questions
USCB Policies and Procedures
Quiz
•
University
18 questions
Parent Functions
Quiz
•
9th Grade - University
20 questions
Empirical Rule Homwwork
Quiz
•
10th Grade - University