CP Assignment 01
CP Assignment 01
Lahore Campus
SST/CS Department
Course Name: Programmning Fundamentals Course Code: # Credit 3(2+1)
Hours:
Course Instructor/s: Ms. Samra Kanwal Program Name BS(CS)
Semester : 1st Batch : Fall 2024
Friday, November 29, 2024 at
Submission Maximum 10
23:59
Deadline: Marks:
Instructions:
Understanding the problems is a part of the assignments.
Your assignment should be submitted in PDF format.
There is a ZERO tolerance policy for plagiarism. Assignments found with copy-pasted
material or copied from fellows will be marked as ZERO.
Submit your assignments on your LMS portal within the given time frame. Emailed
assignments will not be accepted.
Question:
Write down the algorithm / Pseudocode of the following problems. Also, draw the
detailed Flowchart diagrams.
Problem 1:
Write a program that stores the integers 62 and 99 in variables, and stores the sum of
these two in a variable named total. Display the total on the screen.
Problem 2:
Write a program to multiply two numbers and then print the resultant number on
the screen.
Problem 3:
Write a program to determine the square of a number and print the result on the screen.
Problem 4:
Write a program to find the area of a circle and display the result on the screen. (In
the following two ways)
a) By Variable initialization
b) By taking the radius from the user