-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpseudocode-and-flowchart.html
More file actions
401 lines (365 loc) · 20.4 KB
/
pseudocode-and-flowchart.html
File metadata and controls
401 lines (365 loc) · 20.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Pseudocode & Flowchart || Code Explorer</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<!-- SEO -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description"
content="Unlock coding mastery with Code Explorer. Online courses, expert instructors, and real projects. Elevate your programming skills today!">
<meta name="keywords"
content="Code Explorer, coding courses, programming, online learning, coding projects, Pabitra Banerjee">
<meta name="author" content="Pabitra Banerjee">
<meta name="robots" content="index, follow">
<meta name="og:title" content="Code Explorer">
<meta name="og:description"
content="Elevate your programming skills with Code Explorer. Online courses, expert instructors, and real projects.">
<meta name="og:image" content="https://explorecode.live/img/code-xplore-logo.png">
<meta name="og:url" content="https://explorecode.live">
<meta name="og:site_name" content="Code Explorer">
<!-- Favicon -->
<link href="https://explorecode.live/img/ce.png" rel="icon">
<!-- Google Web Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600&family=Nunito:wght@600;700;800&display=swap"
rel="stylesheet">
<!-- Icon Font Stylesheet -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css" rel="stylesheet">
<!-- Libraries Stylesheet -->
<link href="../../lib/animate/animate.min.css" rel="stylesheet">
<link href="../../lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
<!-- Customized Bootstrap Stylesheet -->
<link href="../../css/bootstrap.min.css" rel="stylesheet">
<!-- Template Stylesheet -->
<link href="../../css/style.css" rel="stylesheet">
<link rel="stylesheet" href="../../css/security.css">
<style>
.highlight-code {
background-color: #f0f8ff;
padding: 15px;
border-radius: 8px;
overflow-x: auto;
}
.language-pseudocode {
font-family: 'Courier New', monospace;
font-size: 14px;
color: #008080;
white-space: pre-wrap;
}
</style>
</head>
<body>
<!-- Spinner Start -->
<div id="spinner"
class="show bg-white position-fixed translate-middle w-100 vh-100 top-50 start-50 d-flex align-items-center justify-content-center">
<div class="spinner-border text-primary" style="width: 3rem; height: 3rem;" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
<!-- Spinner End -->
<!-- Navbar Start -->
<nav class="navbar navbar-expand-lg bg-white navbar-light shadow sticky-top p-0">
<a href="https://explorecode.live" class="navbar-brand d-flex align-items-center px-4 px-lg-5">
<img src="../../img/code-xplorer.png" alt="" style="height: 70%;">
</a>
<button type="button" class="navbar-toggler me-4" data-bs-toggle="collapse" data-bs-target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<div class="navbar-nav ms-auto p-4 p-lg-0">
<a href="https://explorecode.live" class="nav-item nav-link">Home</a>
<a href="../../about" class="nav-item nav-link">About</a>
<a href="../../agi-research" class="nav-item nav-link">AGI Research</a>
<a href="../../Code-Explorer.apk" class="nav-item nav-link">Download APP</a>
<div class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown">Pages</a>
<div class="dropdown-menu fade-down m-0">
<a href="../../team" class="dropdown-item">Our Team</a>
<a href="../../courses" class="dropdown-item active">Courses</a>
<a href="../../testimonial" class="dropdown-item">Testimonial</a>
<a href="../../404" class="dropdown-item">404 Page</a>
</div>
</div>
<a href="../../contact" class="nav-item nav-link">Contact</a>
<div class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown">User</a>
<div class="dropdown-menu fade-down m-0">
<span id="userName" class="dropdown-item" style="display: none;"></span>
<a href="../../login" id="loginLink" class="dropdown-item">Login</a>
<a href="../../register" id="registerLink" class="dropdown-item">Register</a>
<button id="logoutBtn" style="display: none;" class="dropdown-item">Logout</button>
</div>
</div>
</div>
<a href="https://devlinecommunity.wixsite.com/dev-line-community"
class="btn btn-primary py-4 px-lg-5 d-none d-lg-block">Join Now<i
class="fa fa-arrow-right ms-3"></i></a>
</div>
</nav>
<!-- Navbar End -->
<!-- Script to dynamically update the navbar based on user authentication -->
<script type="module">
// Function to check if the user is logged in
function isUserLoggedIn() {
// Implement your logic to check if the user is logged in
// For example, check if the user is stored in localStorage
return localStorage.getItem('user-info') !== null;
}
// Function to update the navbar based on user authentication
function updateNavbar() {
const userName = document.getElementById('userName');
const loginLink = document.getElementById('loginLink');
const registerLink = document.getElementById('registerLink');
const logoutBtn = document.getElementById('logoutBtn');
if (isUserLoggedIn()) {
const userInfo = JSON.parse(localStorage.getItem('user-info'));
userName.textContent = `Welcome, ${userInfo.firstName}!`;
userName.style.display = 'inline-block';
loginLink.style.display = 'none';
registerLink.style.display = 'none';
logoutBtn.style.display = 'inline-block';
} else {
userName.style.display = 'none';
loginLink.style.display = 'inline-block';
registerLink.style.display = 'inline-block';
logoutBtn.style.display = 'none';
}
}
// Function to handle logout
function handleLogout() {
// Implement logout logic
// For example, remove user data from localStorage
localStorage.removeItem('user-info');
localStorage.removeItem('user-creds');
// Redirect to the register page
window.location.href = '../../register';
}
// Call this function when the page loads to initialize the navbar
updateNavbar();
// Add click event listener for the logout button
document.getElementById('logoutBtn').addEventListener('click', handleLogout);
</script>
<!-- Header Start -->
<div class="container-fluid bg-primary back mb-5 page-header img-fluid">
<div class="container back">
<div class="row justify-content-center">
<div class="col-lg-10 text-center">
<h1 class="display-3 text-white animated slideInDown">Pseudocode & Flowchart</h1>
<nav aria-label="breadcrumb">
<ol class="breadcrumb justify-content-center">
<li class="breadcrumb-item"><a class="text-white" href="https://explorecode.live">Home</a>
</li>
<li class="breadcrumb-item text-white active" aria-current="page"><a class="text-white"
href="../../cpp-programming">C++ Programming & DSA</a></li>
<li class="breadcrumb-item"><a class="text-white"
href="../../cpp-programming/Introduction-to-CPP-Programming">Introduction To C++
Programming</a>
</li>
<li class="breadcrumb-item text-white active" aria-current="page"><a class="text-white"
href="../../cpp-programming/Introduction-to-CPP-Programming/pseudocode-and-flowchart">Pseudocode
& Flowchart</a></li>
</ol>
</nav>
</div>
</div>
</div>
</div>
<!-- Header End -->
<!-- Content Start -->
<section class="section">
<div class="container">
<div class="text-center mb-5 mt-3">
<h1 class="fw-bold">Understanding Pseudocode and Flowcharts</h1>
<p class="text-muted">Demystifying the tools used in programming planning and design.</p>
</div>
<div class="text-justify">
<p>Before diving into actual coding, developers often use pseudocode and flowcharts as essential tools
for planning and designing algorithms. These tools provide a visual representation and a structured
description of the logic behind a program.</p>
<h2 class="fw-bold mt-4">Pseudocode</h2>
<p>Pseudocode is a high-level description of a computer program or algorithm that uses a mixture of
natural language and basic programming constructs. It provides a way for developers to outline the
steps of an algorithm without getting into the specifics of a particular programming language. The
goal is clarity and understanding rather than strict syntax.</p>
<p>Here's an example of pseudocode for a simple algorithm to find the maximum of two numbers:</p>
<div class="highlight-code">
<pre>
<code class="language-pseudocode">
Procedure FindMaxNumber(num1, num2)
If num1 > num2 Then
MaxNumber = num1
Else
MaxNumber = num2
End If
Return MaxNumber
End Procedure
</code>
</pre>
</div>
<h2 class="fw-bold mt-4">Flowcharts</h2>
<p>Flowcharts are graphical representations of a process, displaying the steps and decision points in a
systematic way. Different shapes represent different elements, such as rectangles for processes,
diamonds for decisions, and arrows for the flow of control. Flowcharts provide a visual guide that
helps developers understand the flow of a program's logic.</p>
<div class="text-center mt-4">
<img src="../../img/pseduocode-1.png" alt="Pseudocode and Flowchart Example"
class="img-fluid rounded">
</div>
<p>As shown in the example above, the flowchart visually represents the same algorithm we described
earlier in pseudocode. Each shape and arrow correspond to a specific action or decision point,
making it easier to comprehend the logic flow of the program.</p>
</div>
<!-- Buttons Start -->
<div class="text-center mt-4">
<a href="../Introduction-to-CPP-Programming/what-is-programming" class="btn btn-primary btn-lg me-3">Go
Back</a>
<a href="#" class="btn btn-outline-primary btn-lg">Next</a>
</div>
<!-- Buttons End -->
</div>
</section>
<!-- Content End -->
<!-- Footer Start -->
<div class="container-fluid bg-dark text-light footer pt-5 mt-5 wow fadeIn" data-wow-delay="0.1s">
<div class="container py-5">
<div class="row g-5">
<div class="col-lg-3 col-md-6">
<h4 class="text-white mb-3">Quick Link</h4>
<a style="color: #fc9506;" class="btn btn-link" href="../../about">About Us</a>
<a style="color: #fc9506;" class="btn btn-link" href="../../contact">Contact Us</a>
<a style="color: #fc9506;" class="btn btn-link" href="../../privacy-policy">Privacy Policy</a>
<a style="color: #fc9506;" class="btn btn-link" href="../../terms">Terms & Condition</a>
<a style="color: #fc9506;" class="btn btn-link" href="../../faq">FAQs & Help</a>
<a style="color: #fc9506;" class="btn btn-link" href="../../team">Our Team</a>
</div>
<div class="col-lg-3 col-md-6">
<h4 class="text-white mb-3">Contact</h4>
<a style="color: white;" href="#">
<p class="mb-2"><i class="fa fa-map-marker-alt me-3"
style="color: white !important;"></i>Manbazar, Purulia</p>
</a>
<a style="color: #fc9506;" href="tel:+91-9064485906">
<p class="mb-2"><i class="fa fa-phone-alt me-3"
style="color: white !important;"></i>+91-9064485906</p>
</a>
<a style="color: #fc9506;" href="mailto:support@explorecode.live">
<p class="mb-2"><i class="fa fa-envelope me-3"
style="color: white !important;"></i>support@explorecode.live</p>
</a>
<a style="color: #fc9506;" href="https://wa.me/+919064485906">
<p class="mb-2"><i class="fab fa-whatsapp me-3"
style="color: white !important;"></i>+91-9064485906</p>
</a>
<div class="d-flex pt-2">
<a class="btn btn-outline-light btn-social" href="https://github.com/Team-Code-Explorer"><i
class="fab fa-github"></i></a>
<a class="btn btn-outline-light btn-social" href="https://twitter.com/ExploreCodeWiki"><i
class="fab fa-twitter"></i></a>
<a class="btn btn-outline-light btn-social" href="https://www.facebook.com/ExploreCodeWorld"><i
class="fab fa-facebook-f"></i></a>
<a class="btn btn-outline-light btn-social" href="https://www.youtube.com/@Explore-Code"><i
class="fab fa-youtube"></i></a>
<a class="btn btn-outline-light btn-social"
href="https://www.linkedin.com/company/explore-code"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
<div class="col-lg-3 col-md-6">
<h4 class="text-white mb-3">Technologies</h4>
<div class="row g-2 pt-2">
<div class="col-4">
<img class="img-fluid bg-light p-1" src="../../img/cpp.png" alt="C++"
style="border-radius: 10px;">
</div>
<div class="col-4">
<img class="img-fluid bg-light p-1" src="../../img/python.png" alt="Python"
style="border-radius: 10px;">
</div>
<div class="col-4">
<img class="img-fluid bg-light p-1" src="../../img/javascript.png" alt="JavaScript"
style="border-radius: 10px;">
</div>
<div class="col-4">
<img class="img-fluid bg-light p-1" src="../../img/react.png" alt="React.js"
style="border-radius: 10px;">
</div>
<div class="col-4">
<img class="img-fluid bg-light p-1" src="../../img/mongodb.png" alt="MongoDB"
style="border-radius: 10px;">
</div>
<div class="col-4">
<img class="img-fluid bg-light p-1" src="../../img/git.png" alt="Git Bash"
style="border-radius: 10px;">
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<h4 class="text-white mb-3">Newsletter</h4>
<p>Subscribe to our newsletter to get latest updates.</p>
<br />
<br />
<div class="position-relative mx-auto" style="max-width: 400px;">
<input class="form-control border-0 w-100 py-3 ps-4 pe-5" type="text" placeholder="Your Email"
id="newsLetter">
<button type="button"
class="btn btn-primary py-2 position-absolute top-0 end-0 mt-2 me-2">SignUp</button>
</div>
</div>
</div>
</div>
<div class="container">
<div class="copyright">
<div class="row">
<div class="col-md-6 text-center text-md-start mb-3 mb-md-0">
© 2023 :: <a class="border-bottom" href="https://explorecode.live">Code Explorer</a>, All
Right Reserved.
<!--/*** This template is free as long as you keep the footer author’s credit link/attribution link/backlink. If you'd like to use the template without the footer author’s credit link/attribution link/backlink, you can purchase the Credit Removal License from "https://htmlcodex.com/credit-removal". Thank you for your support. ***/-->
Designed By <a class="border-bottom" href="https://pabitrabanerjee.me">Pabitra
Banerjee</a><br><br>
Distributed By <a class="border-bottom" href="https://mbwebbers.tech">MB WEBBER'S</a>
</div>
<div class="col-md-6 text-center text-md-end">
<div class="footer-menu">
<a href="https://explorecode.live">Home</a>
<a href="../../contact">Contact</a>
<a href="../../help">Help</a>
<a href="../../faq">FQAs</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer End -->
<!-- Back to Top -->
<a href="#" class="btn btn-lg btn-primary btn-lg-square back-to-top"><i class="bi bi-arrow-up"></i></a>
<!-- JavaScript Libraries -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="../../lib/wow/wow.min.js"></script>
<script src="../../lib/easing/easing.min.js"></script>
<script src="../../lib/waypoints/waypoints.min.js"></script>
<script src="../../lib/owlcarousel/owl.carousel.min.js"></script>
<!-- Template Javascript -->
<script src="../../js/main.js"></script>
<script src="../../js/security.js"></script>
<script src="../../js/newsletter.js" type="module"></script>
<!--Start of Tawk.to Script-->
<script type="text/javascript">
var Tawk_API = Tawk_API || {}, Tawk_LoadStart = new Date();
(function () {
var s1 = document.createElement("script"), s0 = document.getElementsByTagName("script")[0];
s1.async = true;
s1.src = 'https://embed.tawk.to/6575f59b07843602b80046d0/1hhaceqq1';
s1.charset = 'UTF-8';
s1.setAttribute('crossorigin', '*');
s0.parentNode.insertBefore(s1, s0);
})();
</script>
<!--End of Tawk.to Script-->
</body>
</html>