0% found this document useful (0 votes)
7 views1 page

PF Assignment 3

This document outlines Assignment #3 for the Programming Fundamentals course, due on January 21, 2025. It includes six programming tasks in C++, such as generating Fibonacci numbers, reversing a number, finding the smallest of three floating point numbers, and manipulating arrays. The assignment emphasizes originality, stating that copied code will not receive marks.

Uploaded by

rananaveed595
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

PF Assignment 3

This document outlines Assignment #3 for the Programming Fundamentals course, due on January 21, 2025. It includes six programming tasks in C++, such as generating Fibonacci numbers, reversing a number, finding the smallest of three floating point numbers, and manipulating arrays. The assignment emphasizes originality, stating that copied code will not receive marks.

Uploaded by

rananaveed595
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Department of Computer Sciences

ADP&BS(CS) Program, Semester FALL 2024


Course: Programming Fundamentals
INSTRUCTOR: Shaista irum

Date: 17/03/2025 Assignment # 3 Course Code: CS-5112

Note:
Assignment will be collected by Deadline 21-01-2025. Assignment should be in hard form.
The print screen of the program’s output should be attached. Copied Code will be rejected
and no marks will be marked for such assignment.

1. Write a C++ program that enters a number from the user and displays Fibonacci numbers
from 1 to given number using function.

2. Write a program that prompts the user to enter a number and reverse it. Write a function
Reverse( ) to reverse the number. For example, if the user enters 2765, the function should
reverse it so that it becomes 5672. The function should accept the number as an input
parameter and return the reverse number.

3. Write a function that returns the smallest of three floating point numbers.

4. Write a program that gets two numbers, one should be passed by value and the other should
be passed by reference and then check the original variables whether their values have been
changed or not.

5. Write a program that inputs five integers in one-dimensional array and passes the array to
function. The function finds the minimum value in the array and returns to main function
where it is displayed.

6. Write a program that inputs values in a 2-D array of 5 columns and 5 rows. It displays these
values using a function display( ). It passes the array to function times2( ) that doubles the
values stored in all elements of array. The program then again displays the changed values of
the array using display( ) function.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy