In The Name of Allah, The Most Gracious and Merciful.
ASSIGNMENT # 3 (FALL – 2023)
Course Title: Programming Fundamentals
Course Code: IT-105
Class & Section: BS-IT 23B
Submitted by: Yusra Arshad
Roll No: 23011556-121
Submitted to: Ms. Turrnum Shehzadi
Submission date: 9th January 2024
Department: Information Technology (IT)
Program -1:
Write a program to swap two values and also find the sum of values.
Program-2:
Write the code of a calculator in C++.
Program-3:
Write a program to calculate the power of a number.
Program-4:
Create a program to find the nth Fibonacci number.
Program-5:
Implement a program to convert decimal to binary.
Program-6:
Implement a program to find the factorial of a number using recursion.
Program-7:
Write a program to find the sum of digits of a number.
Program-8:
Create a program to check if a number is an Armstrong number.
Program-9:
Write a menu driven program which has the following options:
• Factorial of a number
• Prime or not
• Odd or even
• Exit
Once a menu item is selected the appropriate action should be taken.