0% found this document useful (0 votes)
413 views

Lab Mst-1: Write A Program To Display Only The Missing Terms of Fibonacci Series Up To User Specified Limit

The document describes a lab experiment conducted by student Sakshi Kumari of class 217(B) in their 2nd semester. The aim was to write a program to display the missing terms of the Fibonacci series up to a user-specified limit. The program code is included which uses arrays and loops to find and output the missing terms. No errors were encountered during execution. The learning outcomes covered object-oriented programming concepts like decomposition, implementation, and design. The faculty's evaluation criteria allocated marks for worksheet completion, a post-lab quiz, engagement, and total marks.

Uploaded by

Sakshi Rai
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
413 views

Lab Mst-1: Write A Program To Display Only The Missing Terms of Fibonacci Series Up To User Specified Limit

The document describes a lab experiment conducted by student Sakshi Kumari of class 217(B) in their 2nd semester. The aim was to write a program to display the missing terms of the Fibonacci series up to a user-specified limit. The program code is included which uses arrays and loops to find and output the missing terms. No errors were encountered during execution. The learning outcomes covered object-oriented programming concepts like decomposition, implementation, and design. The faculty's evaluation criteria allocated marks for worksheet completion, a post-lab quiz, engagement, and total marks.

Uploaded by

Sakshi Rai
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

LAB MST-1

STUDENT’S NAME- SAKSHI KUMARI


STUDENT’S UID –21BCS9402
CLASS AND GROUP – 217(B)
SEMESTER –2ND

AIM OF THE EXPERIMENT –Write a program to display only the missing


terms of fibonacci series up to user specified limit.

PROGRAM CODE:

#include<iostream>
using namespace std;
int main()
{
int n,c,first=0,second=1,next;
int a[20],i,j=0,count=0;
cout<<"NAME-SAKSHI KUMARI UID-21BCS9402"<<endl;
cout<<"Enter the no. of terms of Fibonacci series=";
cin>>n;
for(c=0;c<n;c++)
{
if(c<=1)
next=c;
else
{
next=first+second;
first=second;
second=next;
}
cout<<next<<endl;
if(next-first>1)
{
for(i=first+1; i<next; i++)
{
SUBJECT NAME-Object Oriented Programming using C++ SUBJECT CODE-21CSH103
a[j]=i;
count++;
j++;
}
}
}
cout<<"Missing numbers of the Fibonacci series are:"<<endl;
for(j=0; j<count; j++)
cout<<a[j]<<endl;
return 0;
}

ERRORS ENCOUNTERED DURING PROGRAM’S EXECUTION


(Kindly jot down the compile time errors encountered)
none

OUTPUT

SUBJECT NAME-Object Oriented Programming using C++ SUBJECT CODE-21CSH103


LEARNING OUTCOMES

 Understand the concepts of object-oriented programming including programming


process and compilation process.

 Apply different techniques to decompose a problem and programmed a solution with its
sub modules.

 Analyze and explain the behavior of simple programs involving the programming
addressed in the course.

 Implement and evaluate the programs using the syntax and semantics of object-oriented
programming.

 Design the solution of real-world problems in order to determine that the program
performs as expected.

EVALUATION COLUMN (To be filled by concerned faculty only)

Sr. No. Parameters Maximum Marks


Marks Obtained
1. Worksheet Completion including writing 10
learning objective/ Outcome
2. Post-Lab Quiz Result 5

3. Student engagement in Simulation/ 5


Performance/ Pre-Lab Questions
4. Total Marks 20

SUBJECT NAME-Object Oriented Programming using C++ SUBJECT CODE-21CSH103

You might also like