Professional Documents
Culture Documents
Assignment document must contain a title page showing Assignment-3, your name and
registration number.
Name of the Assignment document file should be your Registration Number. E.g.
FA22BDS001.docx
Assignment document must contain the snapshot of flowchart and the output
Plagiarism: You are encouraged to use recommended book, articles and internet sources to
complete this work, BUT Plagiarism is not allowed. If found plagiarized, zero marks will be
awarded in the assignment.
COMSATS University Islamabad
Department of Computer Science
Introduction to ICT (CSC101) – BDS-1A
Class Assignment – 3(CLO-4)
______
Question-1 A string is a palindrome if it reads the same forward and backward. The words
“mom,” “dad,” and “noon,” for instance, are all palindromes. Construct a flowchart that prompts
the user to enter a string and reports whether the string is a palindrome.
Construct a flowchart for the Maclaurin series using a function that takes two integers x and N
and returns the summation value in the end.
Question-4 Suppose you want to develop a program for a first grader to practice subtraction.
Construct a flowchart that randomly generates two single-digit integers, number1 and number2
and ask the student to subtract and enter the answer. After the student enters the answer, the
program displays a message indicating whether it is correct or not. Also If number2 > number1,
the program uses should swap the two numbers. The process should be repeated five times and
score is to be displayed in the end counting the correct answers.
COMSATS University Islamabad
Department of Computer Science
Introduction to ICT (CSC101) – BDS-1A
Class Assignment – 3(CLO-4)