diff --git a/Adventure-game.py b/Adventure-game.py new file mode 100644 index 0000000..b9443bc --- /dev/null +++ b/Adventure-game.py @@ -0,0 +1,174 @@ +import time +import sys + +answer_left=["left","Left","LEFT"] +answer_right=["right","Right","RIGHT"] +answer_forward=["forward","Forward","FORWARD"] +answer_backward=["backward","Backward","BACKWARD"] + +#Correct Answer : Right -> Left -> Forward -> Right + +def intro(): +print("You are in ROOM 1 now.") +print("What do you see in Room 1?") + room1= input(" ") +print("Alright, You are in Room1 and you saw ",room1) +print("Enter the direction in which you want to continue :") +print("Left,Right,Forward") +time.sleep(1) +choice = input (">>>") + direction1=choice +while (choice): +if choice in answer_left or choice in answer_forward: + direction1=choice +print("You are in Room 1 and now you want to move ",direction1) +print("Walls present, can't move further in this direction ") +print("Re enter choice") +print("Left,Right,Forward") +time.sleep(1) +choice = input (">>>") +elif choice in answer_right: + direction1=choice +print("------------------------------------------------------------------------------------------------------") +print("Doors found. You opened the door and moved into ROOM 2") +print("So after starting the game in ROOM 1, you moved ",direction1," to go to room 2.") +print("What do you see in Room 2?") + room2= input(" ") +print("Alright, You are in Room2 and you saw ",room2) +print("Enter direction you want to continue") +print("Left,Right,Forward,Backward") +time.sleep(1) +choice = input (">>>") + direction2=choice +while (choice): +if choice in answer_right or choice in answer_forward : + direction2=choice +print("After starting in Room 1 you moved ",direction1," to go to room 2. Now you want to move ") +print(direction2," to go to Room 3") +print("Walls present, can't move further in this direction ") +print("Re enter choice") +print("Left,Right,Forward,Backward") +time.sleep(1) +choice = input (">>>") +elif choice in answer_backward: + direction2=choice +print("Oops we went back to Room 1 again by moving ",direction2,". Lets go back and try again.") +print("Re enter choice") +print("Left,Right,Forward,Backward") +time.sleep(1) +choice = input (">>>") +elif choice in answer_left: + direction2=choice +print("------------------------------------------------------------------------------------------------------") +print("Doors found. You opened the door and moved into ROOM 3") +print("So after starting the game in ROOM 1, you moved ",direction1," to go to room 2 and then you moved .") +print(direction2," to go to Room 3.") +print("What do you see in Room 3?") + room3= input(" ") +print("Alright, You are in Room3 and you saw ",room3) +print("Enter direction you want to continue") +print("Left,Right,Forward,Backward") +time.sleep(1) +choice = input (">>>") + direction3=choice +while (choice): + direction3=choice +if choice in answer_left or choice in answer_right: + direction3=choice +print("After starting in room 1 you moved ",direction1," to go to room 2.") +print("Then you moved ",direction2," to go to Room 3. Now you want to move ",direction3) +print("Walls present, can't move further in this direction ") +print("Re enter choice") +print("Left,Right,Forward,Backward") +time.sleep(1) +choice = input (">>>") +elif choice in answer_backward: + direction3=choice +print("Oops we went back to Room 2 again by moving ",direction3," Lets go back and try again.") +print("Re enter choice") +print("Left,Right,Forward,Backward") +time.sleep(1) +choice = input (">>>") +elif choice in answer_forward: + direction3=choice +print("------------------------------------------------------------------------------------------------------") +print("Doors found. You opened the door and moved into ROOM 4") +print("So after starting the game in ROOM 1, you moved ",direction1," to go to room 2 and then you moved ") +print(direction2," to go to Room 3 and then you moved ",direction3," to go to Room 4") +print("What do you see?") + room4= input(" ") +print("Alright, You are in Room4 and you saw ",room4) +print("Enter direction you want to continue") +print("1. Enter 1 to go left") +print("2. Enter 2 to go right") +print("3. Enter 3 to move forward") +print("4. Enter 4 to move backwards") +time.sleep(1) +choice = input (">>>") + direction4=choice +while (choice != "2"): +if choice =="1" or choice == "3": + direction4=choice +print("So after starting the game in ROOM 1, you moved ",direction1," to go to room 2 and then you moved ") +print(direction2," to go to Room 3 and then you moved ",direction3," to go to Room 4. Now you want to move ") +print(direction4," to go out of the house. ") +print("Walls present, can't move further in this direction ") +print("Re enter choice") +print("1. Enter 1 to go left") +print("2. Enter 2 to go right") +print("3. Enter 3 to move forward") +print("4. Enter 4 to move backwards") +time.sleep(1) +choice = input (">>>") + +elif choice =="4": + direction4=choice +print("Oops we went back to Room 3 again by moving ",direction4,".Lets go back and try again.") +print("Re enter choice") +print("1. Enter 1 to go left") +print("2. Enter 2 to go right") +print("3. Enter 3 to move forward") +print("4. Enter 4 to move backwards") +time.sleep(1) +choice = input (">>>") + +else: +print("Wrong Choice. Please re enter.") +print("1. Enter 1 to go left") +print("2. Enter 2 to go right") +print("3. Enter 3 to move forward") +print("4. Enter 4 to move backwards") +time.sleep(1) +choice = input (">>>") + direction4=choice +if choice == "2": + direction4=choice +print("------------------------------------------------------------------------------------------------------") +print("Congratulations! You reached the exit.") +print("After starting the game in ROOM 1, you moved ",direction1," to go to ROOM 2, then moved ",direction2) +print(" to go to ROOM 3, then moved ",direction3," to go to ROOM 4 and finally moved right to go outside the house.") +print("You saw ",room1," in Room 1") +print("You saw ",room2," in Room 2") +print("You saw ",room3," in Room 3") +print("You saw ",room4," in Room 4") +print("GAME OVER.") +sys.exit() +else: +print("Wrong choice. Please re enter.") +print("Left,Right,Forward,Backward") +time.sleep(1) +choice = input (">>>") + direction3= choice +else: +print("Wrong choice. Please re enter.") +print("Left,Right,Forward,Backward") +time.sleep(1) +choice = input (">>>") + direction2=choice +else: +print("Wrong choice. Please re enter.") +print("Left,Right,Forward") +time.sleep(1) +choice = input (">>>") + direction2=choice +intro() \ No newline at end of file diff --git a/Banking Management System/Bank Management System C/bank management system.c b/Banking Management System/Bank Management System C/bank management system.c new file mode 100644 index 0000000..6e86c54 --- /dev/null +++ b/Banking Management System/Bank Management System C/bank management system.c @@ -0,0 +1,769 @@ +#include +#include +#include +#include +int i,j; +int main_exit; +void menu(); +int atm(); +void close(); +struct date{ + int month,day,year; + + }; +struct { + + char name[60]; + int acc_no,age; + char address[60]; + char citizenship[15]; + double phone; + char acc_type[10]; + float amt; + struct date dob; + struct date deposit; + struct date withdraw; + + }add,upd,check,rem,transaction; + +float interest(float t,float amount,int rate) +{ + float SI; + SI=(rate*t*amount)/100.0; + return (SI); + +} +void fordelay(int j) +{ int i,k; + for(i=0;i Yes\n"); + printf("< 2 > No\n"); + scanf("%d", &choose); + system("CLS"); + + + + if (choose == 2) { + again = false; + menuExit(); + + }else{ + mainMenu(); + } + +} + + + return 0; + +}//main code + + + +//Functions + +void mainMenu() { + + printf("\n\n\t\t==========Welcome to ATM Feature==========\n\n"); + printf("\n\t\t----Please choose one of the options below----\n"); + printf("\n\t\t< 1 > Check Balance\n"); + printf("\n\t\t< 2 > Deposit\n"); + printf("\n\t\t< 3 > Withdraw\n"); + printf("\n\t\t< 4 > Exit\n\n"); + +}//Main Menu + +void checkBalance(float balance) { + printf("You Choose to See your Balance\n"); + printf("****Your Available Balance is: $%.2f\n\n", balance); + +}//Check Balance + +float moneyDeposit(float balance) { + float deposit; + printf("You choose to Deposit a money\n"); + printf("$$$$Your Balance is: $%.2f\n\n", balance); + printf("****Enter your amount to Deposit\n"); + scanf("%f", &deposit); + + + balance += deposit; + + printf("****Your New Balance is: $%.2f\n\n", balance); + return balance; + + +}//money deposit + +float moneyWithdraw(float balance) { + float withdraw; + bool back = true; + + printf("You choose to Withdraw a money\n"); + printf("$$$$Your Balance is: $%.2f\n\n", balance); + + while (back) { + printf("Enter your amount to withdraw:\n"); + scanf("%f", &withdraw); + + + if (withdraw < balance) { + back = false; + balance -= withdraw; + printf("$$$$Your withdrawing money is: $%.2f\n", withdraw); + printf("****Your New Balance is: $%.2f\n\n", balance); + + } + + else { + + printf("+++You don't have enough money+++\n"); + printf("Please contact to your Bank Customer Services\n"); + printf("****Your Balance is: $%.2f\n\n", balance); + + } + } + return balance; + + +}//money withdraw + +void menuExit() { + printf("--------------Take your receipt!!!------------------\n"); + printf("-----Thank you for using ATM Banking Machine!!!-----\n"); + printf("----- Brought To by code-projects.org -----\n"); + + +}//exit menu + +void errorMessage() {; + printf("+++!!!You selected invalid number!!!+++\n"); +} + diff --git a/Banking Management System/Bank Management System C/bank management system.exe b/Banking Management System/Bank Management System C/bank management system.exe new file mode 100644 index 0000000..d42a8af Binary files /dev/null and b/Banking Management System/Bank Management System C/bank management system.exe differ diff --git a/Banking Management System/Bank Management System C/record.dat b/Banking Management System/Bank Management System C/record.dat new file mode 100644 index 0000000..8235c65 --- /dev/null +++ b/Banking Management System/Bank Management System C/record.dat @@ -0,0 +1,3 @@ +3636 mark 1/11/1998 20 esp 36369696 9875454545.000000 Saving 50444.000000 5/13/2018 +12345 brendan 1/1/1996 22 esppy 026685 7465552120.000000 Saving 11500.000000 5/13/2018 +690525346 Aritro 3/7/1999 20 kankinara 123456789 7044331339.000000 3 300.000000 5/13/2018 diff --git a/Banking Management System/Rule.txt b/Banking Management System/Rule.txt new file mode 100644 index 0000000..a7c273e --- /dev/null +++ b/Banking Management System/Rule.txt @@ -0,0 +1,6 @@ +BANK MANAGEMENT SYSTEM + +PASSWORD - admin + +ATM ACC PIN NUMBER - 1999 + diff --git a/JavaScript Dragon Game/bg.png b/JavaScript Dragon Game/bg.png new file mode 100644 index 0000000..75e46ba Binary files /dev/null and b/JavaScript Dragon Game/bg.png differ diff --git a/JavaScript Dragon Game/dino.png b/JavaScript Dragon Game/dino.png new file mode 100644 index 0000000..fb9a2cf Binary files /dev/null and b/JavaScript Dragon Game/dino.png differ diff --git a/JavaScript Dragon Game/dragon.png b/JavaScript Dragon Game/dragon.png new file mode 100644 index 0000000..a759f6c Binary files /dev/null and b/JavaScript Dragon Game/dragon.png differ diff --git a/JavaScript Dragon Game/gameover.mp3 b/JavaScript Dragon Game/gameover.mp3 new file mode 100644 index 0000000..12084bf Binary files /dev/null and b/JavaScript Dragon Game/gameover.mp3 differ diff --git a/JavaScript Dragon Game/index.html b/JavaScript Dragon Game/index.html new file mode 100644 index 0000000..2813512 --- /dev/null +++ b/JavaScript Dragon Game/index.html @@ -0,0 +1,20 @@ + + + + + + iDragon - JavaScript Game + + + + + +
+
Welcome to iDragon Adventures
+ +
+
Your Score: 0
+
+
+ + \ No newline at end of file diff --git a/JavaScript Dragon Game/music.mp3 b/JavaScript Dragon Game/music.mp3 new file mode 100644 index 0000000..1718456 Binary files /dev/null and b/JavaScript Dragon Game/music.mp3 differ diff --git a/JavaScript Dragon Game/script.js b/JavaScript Dragon Game/script.js new file mode 100644 index 0000000..3cc4899 --- /dev/null +++ b/JavaScript Dragon Game/script.js @@ -0,0 +1,73 @@ +score = 0; +cross = true; + +audio = new Audio('music.mp3'); +audiogo = new Audio('gameover.mp3'); +setTimeout(() => { + audio.play() +}, 1000); +document.onkeydown = function (e) { + console.log("Key code is: ", e.keyCode) + if (e.keyCode == 38) { + dino = document.querySelector('.dino'); + dino.classList.add('animateDino'); + setTimeout(() => { + dino.classList.remove('animateDino') + }, 700); + } + if (e.keyCode == 39) { + dino = document.querySelector('.dino'); + dinoX = parseInt(window.getComputedStyle(dino, null).getPropertyValue('left')); + dino.style.left = dinoX + 112 + "px"; + } + if (e.keyCode == 37) { + dino = document.querySelector('.dino'); + dinoX = parseInt(window.getComputedStyle(dino, null).getPropertyValue('left')); + dino.style.left = (dinoX - 112) + "px"; + } +} + +setInterval(() => { + dino = document.querySelector('.dino'); + gameOver = document.querySelector('.gameOver'); + obstacle = document.querySelector('.obstacle'); + + dx = parseInt(window.getComputedStyle(dino, null).getPropertyValue('left')); + dy = parseInt(window.getComputedStyle(dino, null).getPropertyValue('top')); + + ox = parseInt(window.getComputedStyle(obstacle, null).getPropertyValue('left')); + oy = parseInt(window.getComputedStyle(obstacle, null).getPropertyValue('top')); + + offsetX = Math.abs(dx - ox); + offsetY = Math.abs(dy - oy); + // console.log(offsetX, offsetY) + if (offsetX < 73 && offsetY < 52) { + gameOver.innerHTML = "Game Over - Reload to Play Again" + obstacle.classList.remove('obstacleAni') + audiogo.play(); + setTimeout(() => { + audiogo.pause(); + audio.pause(); + }, 1000); + } + else if (offsetX < 145 && cross) { + score += 1; + updateScore(score); + cross = false; + setTimeout(() => { + cross = true; + }, 1000); + setTimeout(() => { + aniDur = parseFloat(window.getComputedStyle(obstacle, null).getPropertyValue('animation-duration')); + newDur = aniDur - 0.1; + obstacle.style.animationDuration = newDur + 's'; + console.log('New animation duration: ', newDur) + }, 500); + + } + +}, 10); + +function updateScore(score) { + scoreCont.innerHTML = "Your Score: " + score +} \ No newline at end of file diff --git a/JavaScript Dragon Game/style.css b/JavaScript Dragon Game/style.css new file mode 100644 index 0000000..be28a81 --- /dev/null +++ b/JavaScript Dragon Game/style.css @@ -0,0 +1,86 @@ +*{ + margin: 0; + padding:0; +} +body{ + background-color: red; + overflow: hidden; +} +.gameContainer{ + background-image: url(bg.png); + background-repeat: no-repeat; + background-size: 100vw 100vh; + width: 100%; + height: 100vh; +} + +.dino{ + background-image: url(dino.png); + background-repeat: no-repeat; + background-size: cover; + width: 233px; + height: 114px; + position: absolute; + bottom:0; + left: 52px; +} + +.obstacle{ + width: 166px; + height: 113px; + background-image: url(dragon.png); + background-size: cover; + position: absolute; + bottom: 0; + left: 44vw; +} + +.animateDino{ + animation: dino 0.6s linear; +} + +.obstacleAni{ + animation: obstacleAni 5s linear infinite; +} + +.gameOver{ + position: relative; + top:63px; + font-size: 53px; + text-align: center; + font-family: 'Ubuntu', sans-serif; +} + +#scoreCont{ + font-size: 25px; + color: #54212f; + font-weight: bold; + position: absolute; + right: 45px; + top: 31px; + border: 2px solid black; + padding: 10px; + font-family: 'Ubuntu', sans-serif; + border-radius: 10px; +} + +@keyframes dino{ + 0%{ + bottom: 0; + } + 50%{ + bottom: 422px; + } + 100%{ + bottom: 0; + } +} + +@keyframes obstacleAni{ + 0%{ + left: 100vw; + } + 100%{ + left: -10vw; + } +} \ No newline at end of file diff --git a/Python projects/Audio Visualization Tool/README.md b/Python projects/Audio Visualization Tool/README.md new file mode 100644 index 0000000..0f19722 --- /dev/null +++ b/Python projects/Audio Visualization Tool/README.md @@ -0,0 +1,62 @@ +
+

+ + Logo + + +

Audio-Visualization-Tool

+ +

+ Python Application | 10 lines of code + Video Explanation 馃Л +
+
+

+

+ +You can create a real-time audio visualization tool using `Python`. In this project we will use a GUI(Graphical User Interface) tool named `tkinter` to create a window to plot grapth / audio visualizer plots. +``` +What the program does? + +- It uses your default mic to take voice as input +- Creates a window and show plot for measuring frame rate +- Takes Binary data > convert to integers > make up np array > offset it by 127 and 128 +- Finlly update the girure canvas and show the final graph +``` +### Requirements + +* Python +* Python Libraries: `pyaudio` `os` `struct` `numpy` `matplotlib.pyplot` `time` `tkinter` + +### Contributing + +Any kind of contributions to `qxresearch-event-1/audio-visualization-tool` are welcome. While creating an issue(for this project) use `Audio-Visualization-Tool` Label. + +1. [Fork](https://github.com/qxresearch/qxresearch-event-1/fork) the Project +2. Commit your Changes +3. Open a [Pull Request](https://github.com/qxresearch/qxresearch-event-1/pulls) + +### Video Tutorial + +* **YouTube :** [Audio Visualization Tool](https://youtu.be/0_wde7Db48E) + +### Become Official Member @qxresearch + +* Join Mozilla Group [@qxresearch](https://community.mozilla.org/en/groups/qx-research/) +* Join Telegram Group [@qxresearch](https://t.me/qxresearch) +* email me your GitHub id (**subject**: GitHub id @qxresearch) + + +

+ +

+
+
+ View Demo + 路 + Report Bug + 路 + Request Feature +
+
+

+

diff --git a/Python projects/Audio Visualization Tool/source-code.py b/Python projects/Audio Visualization Tool/source-code.py new file mode 100644 index 0000000..762f707 --- /dev/null +++ b/Python projects/Audio Visualization Tool/source-code.py @@ -0,0 +1,98 @@ + +""" +Notebook for streaming data from a microphone in realtime + +audio is captured using pyaudio +then converted from binary data to ints using struct +then displayed using matplotlib + +if you don't have pyaudio, then run + +>>> pip install pyaudio + +note: with 2048 samples per chunk, I'm getting 20FPS +""" + +import pyaudio +import os +import struct +import numpy as np +import matplotlib.pyplot as plt +import time +from tkinter import TclError + +# use this backend to display in separate Tk window +56 + +# constants +CHUNK = 1024 * 2 # samples per frame +FORMAT = pyaudio.paInt16 # audio format (bytes per sample?) +CHANNELS = 1 # single channel for microphone +RATE = 44100 # samples per second + +# create matplotlib figure and axes +fig, ax = plt.subplots(1, figsize=(15, 7)) + +# pyaudio class instance +p = pyaudio.PyAudio() + +# stream object to get data from microphone +stream = p.open( + format=FORMAT, + channels=CHANNELS, + rate=RATE, + input=True, + output=True, + frames_per_buffer=CHUNK +) + +# variable for plotting +x = np.arange(0, 2 * CHUNK, 2) + +# create a line object with random data +line, = ax.plot(x, np.random.rand(CHUNK), '-', lw=2) + +# basic formatting for the axes +ax.set_title('AUDIO WAVEFORM') +ax.set_xlabel('samples') +ax.set_ylabel('volume') +ax.set_ylim(0, 255) +ax.set_xlim(0, 2 * CHUNK) +plt.setp(ax, xticks=[0, CHUNK, 2 * CHUNK], yticks=[0, 128, 255]) + +# show the plot +plt.show(block=False) + +print('stream started') + +# for measuring frame rate +frame_count = 0 +start_time = time.time() + +while True: + + # binary data + data = stream.read(CHUNK) + + # convert data to integers, make np array, then offset it by 127 + data_int = struct.unpack(str(2 * CHUNK) + 'B', data) + + # create np array and offset by 128 + data_np = np.array(data_int, dtype='b')[::2] + 128 + + line.set_ydata(data_np) + + # update figure canvas + try: + fig.canvas.draw() + fig.canvas.flush_events() + frame_count += 1 + + except TclError: + + # calculate average frame rate + frame_rate = frame_count / (time.time() - start_time) + + print('stream stopped') + print('average frame rate = {:.0f} FPS'.format(frame_rate)) + break diff --git a/Python projects/Birthday Reminder/README.md b/Python projects/Birthday Reminder/README.md new file mode 100644 index 0000000..1ea6ca6 --- /dev/null +++ b/Python projects/Birthday Reminder/README.md @@ -0,0 +1,61 @@ +
+

+ + Logo + + +

Birthday Reminder

+ +

+ Python Application | 10 lines of code + Video Explanation 馃Л +
+
+

+

+ +You can create a normal birthday reminder program using `python`. You need to set the date and time of the birthday and reminder and you'll get an reminder of your or your friend's birthday notification. But I feel that this program is useless because you've to keep this code runnig... we can create a notification to make this code cooler and ready to public use. Well, develop and add features to this code mr. `Developer` `Researcher` + ``` +What the program does? + +- User will select birthday +- User will select time of the reminder +- In that day | time program will wish her/him a happy birthday 鉂わ笍 +``` +### Requirements + +* Python +* Python Libraries: `datetime` + +### Contributing + +Any kind of contributions to `qxresearch-event-1/birthday-reminder` are welcome. While creating an issue(for this project) use `Birthday-Reminder` Label. + +1. [Fork](https://github.com/qxresearch/qxresearch-event-1/fork) the Project +2. Commit your Changes +3. Open a [Pull Request](https://github.com/qxresearch/qxresearch-event-1/pulls) + +### Video Tutorial + +* **YouTube :** [Birthday Reminder](https://youtu.be/qHloV2ZCo4s) + +### Become Official Member @qxresearch + +* Join Mozilla Group [@qxresearch](https://community.mozilla.org/en/groups/qx-research/) +* Join Telegram Group [@qxresearch](https://t.me/qxresearch) +* email me your GitHub id (**subject**: GitHub id @qxresearch) + + +

+ +

+
+
+ View Demo + 路 + Report Bug + 路 + Request Feature +
+
+

+

diff --git a/Python projects/Birthday Reminder/source-code.py b/Python projects/Birthday Reminder/source-code.py new file mode 100644 index 0000000..c5f338f --- /dev/null +++ b/Python projects/Birthday Reminder/source-code.py @@ -0,0 +1,28 @@ +import datetime +current_date = datetime.date.today().strftime('%Y-%m-%d') +current_date_lst = current_date.split('-') +bday_log = [ + ('Ayushi', ('1999', '10', '19')), + ('Yash', ('1999', '04', '21')), +] +add = input('To add birthday type y:').strip().lower() + +if add[:1] == 'y': + new = input('Add birthday in format yyyy-mm-dd:') + # print(new_lst) + name = input('Whose bday?') + date = new.split( '-' ) + + + bday_log.append((name, tuple(date))) + +for birthday in bday_log: + # current_dat[1] == birthday[1][1] this will check if current month is same as birth month and current date is same as + # birth date as per preadded log + + + if current_date_lst[1] == birthday[1][1] and current_date_lst[2] == birthday[1][2]: + age = int(current_date_lst[0]) - int(birthday[1][0]) + ordinal_suffix = {1: 'st', 2: 'nd', 3: 'rd', 11: 'th', 12: 'th', 13: 'th'}.get(age % 10 if not 10 < age <= 13 else age % 14, 'th') + print(f" It's {birthday[0]}'s {age}{ordinal_suffix} Birthday") + diff --git a/Python projects/Extract mp3 from mp4/README.md b/Python projects/Extract mp3 from mp4/README.md new file mode 100644 index 0000000..354cc8a --- /dev/null +++ b/Python projects/Extract mp3 from mp4/README.md @@ -0,0 +1,61 @@ +
+

+ + Logo + + +

Extract mp3 From mp4

+ +

+ Python Application | 10 lines of code + Video Explanation 馃Л +
+
+

+

+ +You can extract audio(``mp3``) from a video(`mp4`) file using `Python` in 5 lines of code. Your need to have the source-code in the same location of the video file, the program will generate a new mp3 file in that location. weeee 馃帀 +``` +What the program does? + +- video will be taken as input +- moviepy will detach audio from the video +- New audio file with .mp3 extention will be created in the same location of source-code +``` +### Requirements + +* Python +* Python Libraries: `moviepy` + +### Contributing + +Any kind of contributions to `qxresearch-event-1/extract-mp3-from-mp4` are welcome. While creating an issue(for this project) use `Extract-mp3-From-mp4` Label. + +1. [Fork](https://github.com/qxresearch/qxresearch-event-1/fork) the Project +2. Commit your Changes +3. Open a [Pull Request](https://github.com/qxresearch/qxresearch-event-1/pulls) + +### Video Tutorial + +* YouTube : [Extract mp3 from mp4](https://youtu.be/Wu4hR_pRn6k) + +### Become Official Member @qxresearch + +* Join Mozilla Group [@qxresearch](https://community.mozilla.org/en/groups/qx-research/) +* Join Telegram Group [@qxresearch](https://t.me/qxresearch) +* email me your GitHub id (**subject**: GitHub id @qxresearch) + + +

+ +

+
+
+ View Demo + 路 + Report Bug + 路 + Request Feature +
+
+

+

diff --git a/Python projects/Extract mp3 from mp4/source-code.py b/Python projects/Extract mp3 from mp4/source-code.py new file mode 100644 index 0000000..de637a5 --- /dev/null +++ b/Python projects/Extract mp3 from mp4/source-code.py @@ -0,0 +1,4 @@ +import moviepy +video = moviepy.editor.VideoFilePath("") +audio=video.audio +audio.write_audiofile('1.mp3') diff --git a/Python projects/Link Shortener/README.md b/Python projects/Link Shortener/README.md new file mode 100644 index 0000000..2093433 --- /dev/null +++ b/Python projects/Link Shortener/README.md @@ -0,0 +1,61 @@ +
+

+ + Logo + + +

Link Shortener

+ +

+ Python Application | 10 lines of code + Video Explanation 馃Л +
+
+

+

+ +You can create a `Python` program which can be used to shorten a big links. We'll use a shortening web serviec named `tinyurl`. You need to give your link in the terminal and you'll get the shorten link in the print-screen. + ``` +What the program does? + +- You've to give your big link in the terminal +- Program will use tinyurk server for shortening the link without using any browser +- Shortened link will pass by print() function +``` +### Requirements + +* Python +* Python Libraries: `pyshorteners` + +### Contributing + +Any kind of contributions to `qxresearch-event-1/link-shortener` are welcome. While creating an issue(for this project) use `Link-Shortener` Label. + +1. [Fork](https://github.com/qxresearch/qxresearch-event-1/fork) the Project +2. Commit your Changes +3. Open a [Pull Request](https://github.com/qxresearch/qxresearch-event-1/pulls) + +### Video Tutorial + +* **YouTube : ** [Link Shortener](https://youtu.be/JOx_c7ehwKI) + +### Become Official Member @qxresearch + +* Join Mozilla Group [@qxresearch](https://community.mozilla.org/en/groups/qx-research/) +* Join Telegram Group [@qxresearch](https://t.me/qxresearch) +* email me your GitHub id (**subject**: GitHub id @qxresearch) + + +

+ +

+
+
+ View Demo + 路 + Report Bug + 路 + Request Feature +
+
+

+

diff --git a/Python projects/Link Shortener/source-code.py b/Python projects/Link Shortener/source-code.py new file mode 100644 index 0000000..bface80 --- /dev/null +++ b/Python projects/Link Shortener/source-code.py @@ -0,0 +1,8 @@ +import pyshorteners + +link = input("enter the link:") #variable +shortener = pyshorteners.Shortener() #class object + +x = shortener.tinyurl.short(link) #shorting the link + +print(x) diff --git a/Python projects/Merge Multiple PDF/README.md b/Python projects/Merge Multiple PDF/README.md new file mode 100644 index 0000000..494f829 --- /dev/null +++ b/Python projects/Merge Multiple PDF/README.md @@ -0,0 +1,61 @@ +
+

+ + Logo + + +

Merge-Multiple-PDF

+ +

+ Python Application | 10 lines of code + Video Explanation 馃Л +
+
+

+

+ +You can merge multiple PDF files into on PDF using `Python` in 10 lines of code. You need to have your source-code in the same location of your PDF files. If you run the code all single pdf files will be deleted and a new big pdf file will be created. +``` +What the program does? + +- Prgram finds all files with extention .pdf in the source code folder +- Create a new pdf with all pdf files +- Delete all pdf which are used in the program +``` +### Requirements + +* Python +* Python Libraries: `PyPDF2` `os` + +### Contributing + +Any kind of contributions to `qxresearch-event-1/merge-multiple-pdf` are welcome. While creating an issue(for this project) use `Merge-Multiple-PDF` Label. + +1. [Fork](https://github.com/qxresearch/qxresearch-event-1/fork) the Project +2. Commit your Changes +3. Open a [Pull Request](https://github.com/qxresearch/qxresearch-event-1/pulls) + +### Video Tutorial + +* **YouTube :** [Merge Multiple PDF](https://youtu.be/Tp1nz2hzsiY) + +### Become Official Member @qxresearch + +* Join Mozilla Group [@qxresearch](https://community.mozilla.org/en/groups/qx-research/) +* Join Telegram Group [@qxresearch](https://t.me/qxresearch) +* email me your GitHub id (**subject**: GitHub id @qxresearch) + + +

+ +

+
+
+ View Demo + 路 + Report Bug + 路 + Request Feature +
+
+

+

diff --git a/Python projects/Merge Multiple PDF/source-code.py b/Python projects/Merge Multiple PDF/source-code.py new file mode 100644 index 0000000..65f57bd --- /dev/null +++ b/Python projects/Merge Multiple PDF/source-code.py @@ -0,0 +1,15 @@ +from PyPDF2 import PdfFileMerger +import os +#var = os.getcwd() For extracting from enother folder +merger = PdfFileMerger() +for items in os.listdir(): + if items.endswith('.pdf') + merger.append(items) +merger.write("Final_pdf.pdf") +merger = PdfFileMerger() +fin = file(originalFile, 'rb') +merger.append(PdfFileReader(fin)) +fin.close() +os.remove(originalFile) +merger.close() + diff --git a/Python projects/Password Protech PDF/README.md b/Python projects/Password Protech PDF/README.md new file mode 100644 index 0000000..00afb54 --- /dev/null +++ b/Python projects/Password Protech PDF/README.md @@ -0,0 +1,62 @@ +
+

+ + Logo + + +

Password-Protect-PDF

+ +

+ Python Application | 10 lines of code + Video Explanation 馃Л +
+
+

+

+ +You can protect your PDF file with a custom password using `Python` in 10 lines of code. You need to have your source-code in the same location of your PDF file. In the program you'll give your source-pdf-name | Password | Output-pdf-name. +``` +What the program does? + +- A copy of original pdf is created +- Protect it with a password +- Original file is deleted +``` +### Requirements + +* Python +* Python Libraries: `PyPDF2` + +### Contributing + +Any kind of contributions to `qxresearch-event-1/password-protect-pdf` are welcome. While creating an issue(for this project) use `Password-Protect-PDF` Label. + +1. [Fork](https://github.com/qxresearch/qxresearch-event-1/fork) the Project +2. Commit your Changes +3. Open a [Pull Request](https://github.com/qxresearch/qxresearch-event-1/pulls) + + +### Video Tutorial + +* **YouTube :** [**Password Protect PDF**](https://youtu.be/Cxi3R3A7yMQ) + +### Become Official Member @qxresearch + +* Join Mozilla Group [@qxresearch](https://community.mozilla.org/en/groups/qx-research/) +* Join Telegram Group [@qxresearch](https://t.me/qxresearch) +* email me your GitHub id (**subject**: GitHub id @qxresearch) + + +

+ +

+
+
+ View Demo + 路 + Report Bug + 路 + Request Feature +
+
+

+

diff --git a/Python projects/Password Protech PDF/source-code.py b/Python projects/Password Protech PDF/source-code.py new file mode 100644 index 0000000..c51cbcf --- /dev/null +++ b/Python projects/Password Protech PDF/source-code.py @@ -0,0 +1,11 @@ +from PyPDF2 import PdfFileWriter, PdfFileReader +import getpass +pdfwriter=PdfFileWriter() +pdf=PdfFileReader("1.pdf") +for page_num in range(pdf.numPages): + pdfwriter.addPage(pdf.getPage(page_num)) +passw=getpass.getpass(prompt='Enter Password: ') +pdfwriter.encrypt(passw) +with open('ho.pdf','wb') as f: + pdfwriter.write(f) + f.close() diff --git a/Python projects/Random Password Generator/README.md b/Python projects/Random Password Generator/README.md new file mode 100644 index 0000000..614b31d --- /dev/null +++ b/Python projects/Random Password Generator/README.md @@ -0,0 +1,62 @@ +
+

+ + Logo + + +

Random-Password-Generator

+ +

+ Python Application | 10 lines of code + Video Explanation 馃Л +
+
+

+

+ +You can create your personal random password generator tool using `Python`. In this project we will use a GUI(Graphical User Interface) tool named `tkinter` to create a window to get a cool software like feel into it. +``` +What the program does? + +- You need to select some parameters: ascii_letters | Punctuation | digits | alpha | symbol | number +- A random password will be generated using random() function +- A new window and button will be created +- As you click the button, a password will be generated and display on the screen +``` +### Requirements + +* Python +* Python Libraries: `random` `tkinter` `string` + +### Contributing + +Any kind of contributions to `qxresearch-event-1/windows-notification` are welcome. While creating an issue(for this project) use `Random-Password-Generator` Label. + +1. [Fork](https://github.com/qxresearch/qxresearch-event-1/fork) the Project +2. Commit your Changes +3. Open a [Pull Request](https://github.com/qxresearch/qxresearch-event-1/pulls) + +### Video Tutorial + +* YouTube : [Random Password Generator](https://youtu.be/lihcQHcrMD8) + +### Become Official Member @qxresearch + +* Join Mozilla Group [@qxresearch](https://community.mozilla.org/en/groups/qx-research/) +* Join Telegram Group [@qxresearch](https://t.me/qxresearch) +* email me your GitHub id (**subject**: GitHub id @qxresearch) + + +

+ +

+
+
+ View Demo + 路 + Report Bug + 路 + Request Feature +
+
+

+

diff --git a/Python projects/Random Password Generator/source-code.py b/Python projects/Random Password Generator/source-code.py new file mode 100644 index 0000000..761f670 --- /dev/null +++ b/Python projects/Random Password Generator/source-code.py @@ -0,0 +1,25 @@ +import random +from tkinter import * +import string +from tkinter.font import Font + +def generate_password(): + password=[] + for i in range(2): + alpha=random.choice(string.ascii_letters) + symbol=random.choice(string.punctuation) + numbers=random.choice(string.digits) + password.append(alpha) + password.append(symbol) + password.append(numbers) + y="".join(str(x)for x in password) + lbl.config(text=y) + +root=Tk() +root.geometry("250x200") +btn=Button(root,text="Generate Password",command=generate_password) +btn.place(relx=0.5, rely=0.2, anchor=N) +myFont = Font(family="Times New Roman", size=12) +lbl=Label(root,font=myFont) +lbl.place(relx=0.5, rely=0.5, anchor=CENTER) +root.mainloop() diff --git a/Python projects/Terminal Tricks/README.md b/Python projects/Terminal Tricks/README.md new file mode 100644 index 0000000..8eb15f8 --- /dev/null +++ b/Python projects/Terminal Tricks/README.md @@ -0,0 +1,68 @@ +
+

+ + Logo + + +

Terminal Tricks

+ +

+ Python Application | 10 lines of code + Video Explanation 馃Л +
+
+

+

+ +You can play tricks with terminal using `python` program. You'll get 2 codes one will change the text color in terminal and second one will help you to write anything using alphabet | Number | Symbolic structure. + ``` +What the program does? + +- You've to choose the color +- You've to select: alphabet | Number | Symbol style +- This is what qxresearch(alphabetic) looks like: + h + h + qqq x x rrr eee ss eee aa rrr ccc hhh + q q x r e e s e e a a r c h h + qqq x x r ee ss ee aaa r ccc h h + q + qq +``` +### Requirements + +* Python +* Python Libraries: `pyfiglet` `colorama` + +### Contributing + +Any kind of contributions to `qxresearch-event-1/terminal-tricks` are welcome. While creating an issue(for this project) use `Terminal-Tricks` Label. + +1. [Fork](https://github.com/qxresearch/qxresearch-event-1/fork) the Project +2. Commit your Changes +3. Open a [Pull Request](https://github.com/qxresearch/qxresearch-event-1/pulls) + +### Video Tutorial + +* **YouTube : ** [Terminal Tricks](https://youtu.be/sykK0IVAb84) + +### Become Official Member @qxresearch + +* Join Mozilla Group [@qxresearch](https://community.mozilla.org/en/groups/qx-research/) +* Join Telegram Group [@qxresearch](https://t.me/qxresearch) +* email me your GitHub id (**subject**: GitHub id @qxresearch) + + +

+ +

+
+
+ View Demo + 路 + Report Bug + 路 + Request Feature +
+
+

+

diff --git a/Python projects/Terminal Tricks/source-code-color.py b/Python projects/Terminal Tricks/source-code-color.py new file mode 100644 index 0000000..6088f44 --- /dev/null +++ b/Python projects/Terminal Tricks/source-code-color.py @@ -0,0 +1,18 @@ +from colorama import init +init() +from colorama import Fore , Back , Style # Fore- font color | Back- Background + +print(Fore.GREEN,"hello qxresearcher") + +print(Back.RED,"hello qxresearcher") + +#to get back to boring B&W: print(Styoe.RESET_ALL) + +``` +All Variaton on Colors: + +Fore: BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE RESET +Back: BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE RESET +Style: DIM NORMAL BRIGHT RESET_ALL + +``` diff --git a/Python projects/Terminal Tricks/source-code-funky.py b/Python projects/Terminal Tricks/source-code-funky.py new file mode 100644 index 0000000..a289d40 --- /dev/null +++ b/Python projects/Terminal Tricks/source-code-funky.py @@ -0,0 +1,16 @@ +import pyfiglet +word = pyfiglet.figlet_format("qxresearch",font="alphabet") +print(word) + +``` +Output: + h + h + qqq x x rrr eee ss eee aa rrr ccc hhh +q q x r e e s e e a a r c h h + qqq x x r ee ss ee aaa r ccc h h + q + qq + + +``` diff --git a/Python projects/Voice Recorder/README.md b/Python projects/Voice Recorder/README.md new file mode 100644 index 0000000..e7c4793 --- /dev/null +++ b/Python projects/Voice Recorder/README.md @@ -0,0 +1,64 @@ +
+

+ + Logo + + +

Voice-Recorder

+ +

+ Python Application | 10 lines of code + Video Explanation 馃Л +
+
+

+

+ +This is a simple voice recorder program, written in `Python` by `@qxresearch org.` User have to set the time-limit and run the program. After that specific time the program will stop and a file will be created with `.wav` extention in the same location of source-code. + +``` +What the program does? + +- Your default mic starts recording +- The recording is saved in the same locatoin of source-code +- After custorm time the program exits +``` + +### Requirements + +* Python[ >= python3.1] +* Python Libraries: `sounddevice` `scipy` +* provide your required `time` in `second` for record during the compilation + +### Contributing + +Any kind of contributions to `qxresearch-event-1/voice-recorder` are welcome. While creating an issue(for this project) use `Voice-Recorder` Label. + +1. [Fork](https://github.com/qxresearch/qxresearch-event-1/fork) the Project +2. Commit your Changes +3. Open a [Pull Request](https://github.com/qxresearch/qxresearch-event-1/pulls) + +### Video Tutorial + +* **YouTube :** [Voice Recorder](https://youtu.be/eTtPUk01cGc) + +### Become Official Member @qxresearch + +* Join Mozilla Group [@qxresearch](https://community.mozilla.org/en/groups/qx-research/) +* Join Telegram Group [@qxresearch](https://t.me/qxresearch) +* email me your GitHub id (**subject**: GitHub id @qxresearch) + + +

+ +

+
+
+ View Demo + 路 + Report Bug + 路 + Request Feature +
+
+

+

diff --git a/Python projects/Voice Recorder/source-code.py b/Python projects/Voice Recorder/source-code.py new file mode 100644 index 0000000..41dda38 --- /dev/null +++ b/Python projects/Voice Recorder/source-code.py @@ -0,0 +1,9 @@ +import sounddevice +from scipy.io.wavfile import write +fs=44100 #sample_rate +second=int(input("Enter the time duration in second: ")) #enter your required time.. +print("Recording....\n") +record_voice=sounddevice.rec(int(second * fs),samplerate=fs,channels=2) +sounddevice.wait() +print("Finished...\nPlease Check it...") +write("out.wav",fs,record_voice) \ No newline at end of file diff --git a/Python projects/Windows Notification/README.md b/Python projects/Windows Notification/README.md new file mode 100644 index 0000000..7eee894 --- /dev/null +++ b/Python projects/Windows Notification/README.md @@ -0,0 +1,61 @@ +
+

+ + Logo + + +

Windows-Notification

+ +

+ Python Application | 10 lines of code + Video Explanation 馃Л +
+
+

+

+ +You can create a custom windows notificatoin and timer notification using `Python` in 10 lines of code. You can create custom name | custom label | custon notification icon | set time limit and you've your custom notificatoin for your app. 馃帀 +``` +What the program does? + +- You give custon heading | sub heading | icon | duration +- You set a notification time or hourly reminder +- Output displays an actual notification on your computer rather than on terminal screen +``` +### Requirements + +* Python +* Python Libraries: `win10toast` `time` + +### Contributing + +Any kind of contributions to `qxresearch-event-1/windows-notification` are welcome. While creating an issue(for this project) use `Windows-Notification` Label. + +1. [Fork](https://github.com/qxresearch/qxresearch-event-1/fork) the Project +2. Commit your Changes +3. Open a [Pull Request](https://github.com/qxresearch/qxresearch-event-1/pulls) + +### Video Tutorial + +* YouTube : [Windows Notificatoin](https://youtu.be/ReUE47SgIuY) + +### Become Official Member @qxresearch + +* Join Mozilla Group [@qxresearch](https://community.mozilla.org/en/groups/qx-research/) +* Join Telegram Group [@qxresearch](https://t.me/qxresearch) +* email me your GitHub id (**subject**: GitHub id @qxresearch) + + +

+ +

+
+
+ View Demo + 路 + Report Bug + 路 + Request Feature +
+
+

+

diff --git a/Python projects/Windows Notification/jokes-desktop-notifier.py b/Python projects/Windows Notification/jokes-desktop-notifier.py new file mode 100644 index 0000000..44ab202 --- /dev/null +++ b/Python projects/Windows Notification/jokes-desktop-notifier.py @@ -0,0 +1,8 @@ +import pyjokes +import time +from win10toast import ToastNotifier + +while 1: + notify = ToastNotifier() + notify.show_toast("Time to laugh!", pyjokes.get_joke(), duration = 20) + time.sleep(1800) diff --git a/Python projects/Windows Notification/source-code-custom.py b/Python projects/Windows Notification/source-code-custom.py new file mode 100644 index 0000000..aba92c2 --- /dev/null +++ b/Python projects/Windows Notification/source-code-custom.py @@ -0,0 +1,3 @@ +import win10toast +toaster = win10toast.ToastNotifier() +toaster.show_toast("python","success ! This is working!", duration=10) diff --git a/Python projects/Windows Notification/source-code-timer.py b/Python projects/Windows Notification/source-code-timer.py new file mode 100644 index 0000000..7182777 --- /dev/null +++ b/Python projects/Windows Notification/source-code-timer.py @@ -0,0 +1,11 @@ +from win10toast import ToastNotifier +import time +while True: + current_time = time.strftime("%H:%M:%S") + if current_time=="00.36.00": + print(current_time) + break + else: + pass +hr=ToastNotifier() +hr.show_toast("alarm","this is the message") diff --git a/jarvis2.py b/jarvis2.py new file mode 100644 index 0000000..ec31ca0 --- /dev/null +++ b/jarvis2.py @@ -0,0 +1,167 @@ +import pyttsx3 #pip install pyttsx3 +import speech_recognition as sr #pip install speechRecognition +import datetime +import wikipedia #pip install wikipedia +import webbrowser +import os +import smtplib +import pyautogui +import psutil + +engine = pyttsx3.init('sapi5') +voices = engine.getProperty('voices') +# print(voices[1].id) +engine.setProperty('voice', voices[0].id) + + +def speak(audio): + engine.say(audio) + engine.runAndWait() + + +def wishMe(): + hour = int(datetime.datetime.now().hour) + if hour>=0 and hour<12: + speak("Good Morning sir!") + + elif hour>=12 and hour<18: + speak("Good Afternoon sir!") + + else: + speak("Good Evening sir!") + + speak("Hello I am Jarvis. speed one terabite, cpu 12ssr4. Please tell me how may I help you") + +def takeCommand(): + #It takes microphone input from the user and returns string output + + r = sr.Recognizer() + with sr.Microphone() as source: + print("Listening...") + r.pause_threshold = 1 + audio = r.listen(source) + + try: + print("Recognizing...") + query = r.recognize_google(audio, language='en-in') + print(f"User said: {query}\n") + + except Exception as e: + # print(e) + print("Say that again please...") + return "None" + return query + +def sendEmail(to, content): + server = smtplib.SMTP('smtp.gmail.com', 587) + server.ehlo() + server.starttls() + server.login('youremail@gmail.com', 'your-password') + server.sendmail('youremail@gmail.com', to, content) + server.close() + +def screenshot(): + img = pyautogui.screenshot() + img.save("C:\\Users\\Aritro chakraborty\\Desktop\\ss.png") + +def cpu(): + usage = str(psutil.cpu_percent()) + speak('cpu is usage at' + usage +"GB") +def battery(): + battery = psutil.sensors_battery() + speak("Battery is percentage is") + speak(battery.percent) + +if __name__ == "__main__": + wishMe() + while True: + # if 1: + query = takeCommand().lower() + + # Logic for executing tasks based on query + if 'wikipedia' in query: + speak('Searching Wikipedia...') + query = query.replace("wikipedia", "") + results = wikipedia.summary(query, sentences=2) + speak("According to Wikipedia") + print(results) + speak(results) + + elif 'open youtube' in query: + webbrowser.open("youtube.com") + + # elif 'open google' in query: + # speak('what should i search..!') + # edge ='C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe %s' + # search = takeCommand().lower() + # webbrowser.get(edge).open_new_tab(search+'.com') + + elif 'open google' in query: + webbrowser.open("google.com") + + elif 'open stack overflow' in query: + webbrowser.open("stack overflow.com") + + elif 'remember that' in query: + speak("What shpuld i remember ? ") + data = takeCommand() + speak("you said me to remember that"+data) + remember = open('data.txt','w') + remember.write(data) + remember.close() + + elif 'do you know anything' in query: + remember = open('data.txt','r') + speak("you said me to remember that" +remember.read()) + + elif 'play music' in query: + music_dir = 'D:\\Favorite Songs2' + songs = os.listdir(music_dir) + print(songs) + os.startfile(os.path.join(music_dir, songs[0])) + + elif "cpu" in query: + cpu() + + elif "battery" in query: + battery() + + elif 'time' in query: + strTime = datetime.datetime.now().strftime("%H:%M:%S") + speak(f"Sir, the time is {strTime}") + + elif 'thank you' in query: + speak("it's my pleasure sir..") + + elif 'screenshot' in query: + speak("taking ..") + screenshot() + speak("it's done sir ! please check it in desktop..") + + elif 'open code' in query: + codePath = 'C:\\Users\\Aritro chakraborty\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe' + os.startfile(codePath) + + elif 'date' in query: + year = int(datetime.datetime.now().year) + month = int(datetime.datetime.now().month) + date = int(datetime.datetime.now().day) + speak("Today is") + speak(date) + speak(month) + speak(year) + + elif 'offline' in query: + speak("going to offline.. i was happy to help you..") + quit() + + elif 'email' in query: + try: + speak("What should I say?") + content = takeCommand() + to = "harryyourEmail@gmail.com" + sendEmail(to, content) + speak("Email has been sent!") + except Exception as e: + print(e) + speak("i am extremly Sorry sir. I am not able to send this email") diff --git a/nth-fibonacci-number-in-C++/fibonacci.cpp b/nth-fibonacci-number-in-C++/fibonacci.cpp new file mode 100644 index 0000000..fbddf6a --- /dev/null +++ b/nth-fibonacci-number-in-C++/fibonacci.cpp @@ -0,0 +1,19 @@ +#include +using namespace std; + +int Fib(int n) +{ + if(n<=1) + return n; + return Fib(n-1)+Fib(n-2); /*recusively add the numbers*/ +} + +int main() +{ + int n; /*position of the element starting from 0...n*/ + cout<<"Enter the number :"; + cin>>n; + cout<<"Number at "<