Professional Documents
Culture Documents
SUBMITTED BY:
ASSISTANT PROFESSOR
KL UNIVERSITY
CERTIFICATE
This is to certify that the project based laboratory report entitled “LUCKY
TRANSFORMATION” submitted by GOLLAPUDI VNSSR KOUNDINYA,
HARI SAI NIKHIL KASANABOINA, JANGA VINAYKUMAR REDDY,
KARRI JAGADEESH MANI SIVA KUMAR to the Department of Basic
Engineering Sciences, KL University in partial fulfillment of the requirements for the
completion of a project based Laboratory in “Technical Skills-I(Coding)” course in I B
Tech I Semester, is a bonafide record of the work carried out by him/her under my
supervision during the academic year 2019 – 2020.
<ARSHIYA JULMA>
ACKNOWLEDGEMENTS
I express sincere gratitude to our Coordinator and HOD-BES Dr. D.Haritha for
her leadership and constant motivation provided in successful completion of our
academic semester. I record it as my privilege to deeply thank for providing us the
efficient faculty and facilities to make our ideas into reality.
REG.NO:- NAME:-
190040186 JANGA VINAYKUMAR REDDY
ABSTRACT
1 INTRODUCTION 6
3 AIM 9
4 SYSTEM REQUIREMENTS 10
5 FLOW CHART 11
6 ALGORITHM 12
7 IMPLEMENTATION 13
8 OUTPUT 14
9 CONCLUSION 15
INTRODUCTION
Lucky numbers are the numbers formed with only some particular digits
and no other digit should be intervened. This program deals with the transformation of
the digits of the given lucky number as per the given conditions. It had undergone
through program design , program coding and program testing .This program is to help
PETYA,the boy in the program with his lucky numbers. In this program we used strings
instead of arrays as we have to sort and swap the digits of a number, if we had sort or
swap numbers instead of digits we would have used arrays. In this program we sorted
the digits of the number whenever 4,7 come side by side under given conditions. When
the no of digits in the given number are odd and if 4,7 are side by side we transform
both of them as 4 or else we transform them as 7. This process should be continued k
number of times and the transformed string should be displayed. K is given in the input.
3. Data type rich The data types of the C language include integer type, real type,
character type, array type, pointer type, structure type, union type, etc. It can be used to
implement various complex data structures. The concept of pointer is also introduced to
make the program more efficient.
We can make the Modern Periodic Table in C language by using three or more
header files or many data types such as:
Our main aim of this project is to transform the digits of the given number
based on the given conditions
SYSTEM REQUIREMENTS
• SOFTWARE REQUIREMENTS: The major software
requirements of the project are as follows:
Language : Turbo-C Operating system:
Windows Xp or later.
• HARDWARE REQUIREMENTS:
The hardware requirements that map towards the software are as follows:
Step 8: Stop
DATA FLOW DIAGRAM
IMPLEMENTATION
#include<stdio.h>
int main()
int n,i,k;
scanf("%d",&n);
scanf("%d",&k);
int d[n];
for(i=1;i<=n;i++)
scanf("%d",&d[i]);
while(k--)
for(i=1;i<=n;i++)
if(a[i]==4&&a[i+1]==7)
if(i%2!=0)
d[i]=4;
d[i+1]=4;
break;
else if(i%2==0)
d[i]=7;
d[i+1]=7;
break;
for(i=1;i<=n;i++)
printf("%d",d[i]);
}
OUTPUTS
Screen Shots:
CONCLUSION
We have completed this project by using numbers sorting and transformations. This
program can be further made easy by using c++ or python. For now we have created
a lucky number transformer that transforms digits under given conditions.