AIReport (17) - 11
AIReport (17) - 11
Submission
My Files
My Files
University
Document Details
Submission ID
trn:oid:::17268:95906171 34 Pages
Download Date
File Name
Course_Report_yazdan_Rizvi.pdf
File Size
692.9 KB
The percentage indicates the combined amount of likely AI-generated text as It is essential to understand the limitations of AI detection before making decisions
well as likely AI-generated text that was also likely AI-paraphrased. about a student’s work. We encourage you to learn more about Turnitin’s AI detection
capabilities before using the tool.
Detection Groups
0 AI-generated only 0%
Likely AI-generated text from a large-language model.
Disclaimer
Our AI writing assessment is designed to help educators identify text that might be prepared by a generative AI tool. Our AI writing assessment may not always be accurate (it may misidentify
writing that is likely AI generated as AI generated and AI paraphrased or likely AI generated and AI paraphrased writing as only AI generated) so it should not be used as the sole basis for
adverse actions against a student. It takes further scrutiny and human judgment in conjunction with an organization's application of its specific academic policies to determine whether any
academic misconduct has occurred.
False positives (incorrectly flagging human-written text as AI-generated) are a possibility in AI models.
AI detection scores under 20%, which we do not surface in new reports, have a higher likelihood of false positives. To reduce the
likelihood of misinterpretation, no score or highlights are attributed and are indicated with an asterisk in the report (*%).
The AI writing percentage should not be the sole basis to determine whether misconduct has occurred. The reviewer/instructor
should use the percentage as a means to start a formative conversation with their student and/or use it to examine the submitted
assignment in accordance with their school's policies.
Non-qualifying text, such as bullet points, annotated bibliographies, etc., will not be processed and can create disparity between the submission highlights and the
percentage shown.
Yazdan Abbas
Fintech, section B
April,2025
Abstract
This report covers basic programming principles for novices, such as flowcharts, data types,
and input/output operations.The report covers several operators like Arithmetic, Incremen-
t/Decrement, Relational, logical, type casting, and Bitwise along with control structures like
conditional statements and loops. in order to support the modular coding techniques, report
includes discussion on functions, there default parameters, function overloading concepts etc.
Lastly, it discusses Arrays, Detailing on their initialization and Specific representation in pro-
gram. These subjects present a solid foundation that allows anyone to understand and apply
i
Page 4 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 5 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Plagiarism Declaration
With the exception of any statement to the contrary, all the material presented in this report is
the result of my own efforts. In addition, no parts of this report are copied from other sources.
I understand that any evidence of plagiarism and/or the use of unacknowledged third party
Signed Image
ii
Page 5 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 6 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Acknowledgements
I want to express my gratitude to my instructor, For all of their help and guidance and feedback
throughout this assignment. I also appreciate the support of my classmates, For their assistance,
iii
Page 6 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 7 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Contents
1 Introduction 1
1.2 Flowcharts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Basic FlowChart 4
3 Data Types 6
3.0.2 Input/Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4 Operators 9
5 Bitwise operators 12
6 Conditional/Selection Structures 14
iv
Page 7 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 8 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
CONTENTS CONTENTS
6.0.3 if...else if . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
7 Loops 17
8 Functions 20
9 Arrays 22
References 24
v
Page 8 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 9 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
List of Figures
3.1 Data-Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
vi
Page 9 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 10 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
List of Tables
vii
Page 10 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 11 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Listings
3.1 A simple C++ program that prints ”Hello, World!” to the screen . . . . . . . . . 7
5.2 Bitwise OR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
6.3 Nested if . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
6.4 if...else if . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
viii
Page 11 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 12 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
LISTINGS LISTINGS
ix
Page 12 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 13 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 1
Introduction
execute or as say run to perform specific tasks or solve problems. The instructions are termed as
code, are written in different languages such as C, C++, Python, Java, etc. programming is an
art of transforming human ideas and creativity into a set instructions which are interpreted by
machines. The goal of programming is to develop a software which can automate tasks, manage
data, security, processing of information to computing the information, from simple calculations
is the series of instructions or commands that tells the computer what to do in order to achieve
classification or regression, from simple home works to running websites, programming is the
heart of computer.
Below is the simple process of programming, Fisrt we have to find the problem,then we do the
rest of the steps trying to get a optimum solution for that problem in terms of both time and
• Problem identification
1
Page 13 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 14 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
1.2. Flowcharts Chapter 1. Introduction
• Coding
• Deployment
1.2 Flowcharts
Flowcharts are the visual representations of process / algorithm. Flowchart is an effective way
of demonstrating the overview of the algorithm which is being used as a solution to certain
problem at hand in a program. It uses arrows, lines, shapes like circle, rectangles, and dia-
2
Page 14 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 15 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 1. Introduction 1.2. Flowcharts
• Flowcharts are standard visual language which is being understand by anyone specially
• For a standard documentation of operations, flowcharts make it easier to train the new
• Flowcharts increases the visualization of the problem, which results in data-driven choices.
3
Page 15 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 16 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 2
Basic FlowChart
For the start one should know about the placcemnet and basic flow symbols, using the basic
symbols you can create and visualize any programming process. Here are some basic symbols
Now let’s see how you can solve and visualize a big problem with these basic symbols.
4
Page 16 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 17 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 2. Basic FlowChart
5
Page 17 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 18 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 3
Data Types
In programing, data type refers to the kind of value a variable have, the standard data type
are Boolean, byte, short, int, long, float, double, and char in programing each for specific data
variable.
The present day data types, basic values of specific properties, independent of all the other
6
Page 18 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 19 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 3. Data Types
3.0.2 Input/Output
For most programs to communicate with the outside world, input/output (I/O) activities are
INPUT
The data user enters and provides by external systems to program is called ”input”. It can
come from various sources, such as the keyboard, a file, or network resources.
OUTPUT
The data that is sent back to user by the program to external system is called ”output”, It is
displayed on the screen, can be written into a file, or sent over a network.
Listing 3.1: A simple C++ program that prints ”Hello, World!” to the screen
1 # include < iostream > // Library to include input - output functions
2 using namespace std ;
3
4 int main () {
5 cout << " Hello , ␣ World ! " << endl ; // Output to the screen
6 return 0; // Exit program
7 }
7
Page 19 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 20 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 3. Data Types
8
Page 20 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 21 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 4
Operators
Operators are the construct of programing language that gives the functionalities which is not
For basic mathematical performed on values and variables we use Arithmetic Operators.
To increase or decrease the value of a variable by one increment (++) and decrement (–)
9
Page 21 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 22 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 4. Operators
Pre-increment/decrement (++x, –x): Value of variable is updated initially, and the expres-
Post-increment/decrement (x++, x–): the expression then uses the initial value of the
When we have to compare 2 values or expression Ralational Operators are used, the return
Boolean expressions can be combined or invert using Logical operators. They evaluate logical
Logical AND: if both conditions are true, it returns true. Example: (a > 0 ∧ b > 0)
Logical OR: if at least one condition is true, it returns true. Example: (a > 0 ∨ b > 0)
10
Page 22 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 23 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 4. Operators
In programming, specific types in being held by the variables, such as integers, floating-point
numbers, strings, and more. Computer interpretation and manipulation of the information is
determined by these data types. So Type casting becomes necessary when you want to perform
operations or assignments involving different data types. The method of converting one data
type into another is called Type casting.There is different syntax in different languages.
11
Page 23 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 24 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 5
Bitwise operators
Bitwise operators are one of the most important operators in programming.Bitwise operators
manipulate the individual bits of integers. They are AND, OR, XOR, NOT, left and right
shifts.
12
Page 24 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 25 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 5. Bitwise operators
13
Page 25 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 26 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 6
Conditional/Selection Structures
is true.
In if, if....else , the else statement is executed when if statement is not true.
When 1 if is nested inside the another if statement, let’s see the example.
14
Page 26 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 27 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 6. Conditional/Selection Structures
1 if ( r > 0) {
2 if ( r == 10) {
3 cout << " r ␣ is ␣ equal ␣ to ␣ 10 " << endl ;
4 }
5 }
6.0.3 if...else if
When we have to check Multiple possibilities in sequence then we apply the chain of if ... else
if.
A multi-way branch statement whcih is used for a particular checking one condition against
multiple possibilities.
15
Page 27 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 28 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 6. Conditional/Selection Structures
shorthand for if...else which based on condition returns one of two values.
16
Page 28 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 29 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 7
Loops
Loops are the most basic yet powerful concepts in programming. A loop in a computer program
is an instruction that repeats until a specified condition is reached. The loop asks a question,
condition for it is true,so that’s why while loop is suitable for both sentinel-controlled and
condition-controlled loops. We mostly apply the condition on the input taken by the user.
When it comes to iterations for loop is used, it iterates till the condition is true, and terminates
as soon as the condition gets false.post and pre increment and decrement is used in the for loop
as:
17
Page 29 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 30 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 7. Loops
the do-while loop is executed at least once and then the condition is checked , as:
When it comes to mutidimential data , nested for loop is used. when we do multi dimensional
• continue skips the current iteration and proceeds to the next iteration.
18
Page 30 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 31 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 7. Loops
19
Page 31 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 32 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 8
Functions
Functions are ”self contained” part of program , which is executed to complete a specific task.
Functions usually ”take in” data, process it, and ”return” a result.fucntions are important as
they make program ”optimal” as you do not have to write the logic again and again , Once a
function is written, it get called and take in data and make the time space efficient.
Functions have a return type, a name, and parameters, and are get called in the main program.
Function overloading, means when multiple functions can have the same name with different
parameters:
20
Page 32 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 33 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 8. Functions
9 int main () {
10 int num1 = add (12 , 10) ;
11 double num2 = add (7.8 , 9.6) ;
12 cout << " Int : ␣ " << num1 << " \ n " ;
13 cout << " Double : ␣ " << num2 ;
14 return 0;
15 }
Functions can have default parameters values, which are used if no argument is passed. One can
use a default parameter value, by using the equals sign (=) and is often known as an ”optional
parameter.
5 int main () {
6 myFun ( " Sweden " ) ;
7 myFun ( " India " ) ;
8 myFun () ;
9 myFun ( " USA " ) ;
10 return 0;
11 }
21
Page 33 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 34 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 9
Arrays
An array is a data structure which is collection of elemeents can be values or variables and each
22
Page 34 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 35 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 9. Arrays
23
Page 35 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Page 36 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171
Chapter 9. Arrays
Referencing
programming_methodologies_flowchart_elements.htm
php
• Functions 8,https://users.cs.utah.edu/~germain/PPS/Topics/functions.html
htm
• Loops 7,https://www.thoughtco.com/definition-of-loop-958105
• Function 8,https://users.cs.utah.edu/~germain/PPS/Topics/functions.html
asp
• Arrays 9,
https://press.rebus.community/programmingfundamentals/chapter/arrays-and-lists/
24
Page 36 of 36 - AI Writing Submission Submission ID trn:oid:::17268:95906171