C# : Looping ( Coding Examples on Problem Solving)
Coding Examples on Problem solving
Programming Languages,Problem Solving,Development,C#
Lectures -15
Resources -15
Duration -49 mins
30-days Money-Back Guarantee
Get your team access to 10000+ top Tutorials Point courses anytime, anywhere.
Course Description
THIS COURSE has been designed to meet the requirements for understanding the looping in c# and to make decision-making based on the problem description. AND understand THE various types of Inheritance types that exist between child and parent classes.
Looping in a programming language is a way to execute a statement or a set of statements multiple times depending on the result of the condition to be evaluated to execute statements. The result condition should be true to execute statements within loops
Loops are mainly divided into two categories:
Entry-Controlled Loops: The loops in which the condition to be tested is present in the beginning of loop body are known as Entry Controlled Loops. while loop and for loop are entry-controlled loops.
1. while loop The test condition is given at the beginning of the loop and all statements are executed till the given boolean condition satisfies when the condition becomes false, the control will be out from the while loop.
2. for loop - for loop has similar functionality as the while loop but with different syntax. for loops are preferred when the number of times loop statements are to be executed is known beforehand. The loop variable initialization, condition to be tested, and increment/decrement of the loop variable is done in one line in for loop thereby providing a shorter, easy to debug structure of looping.
Exit Controlled Loops: The loops in which the testing condition is present at the end of loop body are termed as Exit Controlled Loops. do-while is an exit controlled loop.
Note: In Exit Controlled Loops, loop body will be evaluated for at-least one time as the testing condition is present at the end of loop body.
1. do-while loop
do while loop is similar to while loop with the only difference that it checks the condition after executing the statements, i.e it will execute the loop body one time for sure because it checks the condition after executing the statements.
Infinite Loops:
The loops in which the test condition does not evaluate false ever tend to execute statements forever until an external force is used to end it and thus they are known as infinite loops.
Nested Loops:
When loops are present inside the other loops, it is known as nested loops.
Inheritance is an important pillar of OOP(Object Oriented Programming). It is the mechanism in C# by which one class is allowed to inherit the features(fields and methods) of another class.
Important terminology:
Super Class: The class whose features are inherited is known as super class(or a base class or a parent class).
Sub Class: The class that inherits the other class is known as subclass(or a derived class, extended class, or child class). The subclass can add its own fields and methods in addition to the superclass fields and methods.
Reusability: Inheritance supports the concept of “reusability”, i.e. when we want to create a new class and there is already a class that includes some of the code that we want, we can derive our new class from the existing class. By doing this, we are reusing the fields and methods of the existing class.
Goals
- Students who want careers in software development
- Students who want careers in analytics and data sciences
- Students at final years of the Btech and post graduate programs.
Prerequisites
- Understanding of any procedural-oriented language like C..ETC
Curriculum
Check out the detailed breakdown of what’s inside the course
Problem solving
15 Lectures
- Largest of three 03:08 03:08
- Check for Armstrong Number 02:17 02:17
- Display Amstrong Numbers between 1 and 1000 02:26 02:26
- Binary to Decimal Conversion 05:18 05:18
- Count Occurance of Letters 03:52 03:52
- Check occurance of Leap Year 02:02 02:02
- Multiplication Table between limits 02:44 02:44
- Check for Paliandrome Integer.. 03:04 03:04
- Integer palinadromes between limits 03:39 03:39
- Perfect squares between two limits 02:35 02:35
- Permuation and Combination 04:39 04:39
- Prime Numbers between two Limit 02:32 02:32
- Check for String paliandrome 04:23 04:23
- Sum of sqaures of first N..NATURAL numbers 03:23 03:23
- Triangle Problem 03:02 03:02
Instructor Details
SUPRIO DUTTA
IT Professional with 8+ Experience in software training and more than 10+ years at undergraduate and graduate level mathematics.
Mentoring Dotnet framework and its interrelated Corporate level Education .,MICROSOFT Visual studio DotNet,Microsoft sql server, my sql oracle server,objected oriented programing langauge like c++ and Java..and Azure.
knowledge offered is with Advanced topics in the desktop applications and consumed projects are mainly comprising of Enterprise based applications,client relationship management and E-Commerce.
offered training for Bank exams for more than 2+ years at Brillinace college ,Trivandrum,Kerala for candidates appearing for various Bank exmas and various other competitive exmas for subjects reasoning,numericals, Gk and English..
Course Certificate
Use your certificate to make a career change or to advance in your current career.
Our students work
with the Best
Related Video Courses
View MoreAnnual Membership
Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses
Subscribe nowOnline Certifications
Master prominent technologies at full length and become a valued certified professional.
Explore Now