Posts

Showing posts from January 31, 2021

KBC USING C++ LANGUAGE

 CPP CODE: #include<iostream.h> #include<stdlib.h> #include<conio.h> #include<stdio.h> #include<graphics.h> #include<process.h> #include<dos.h> #include<stdlib.h> #include<string.h> main() { char ans; char a[25],b[23]; abc: clrscr(); textcolor(56); textbackground(67); cout<<" Enter your Password : "; gets(a); if(strcmp(a,"learn2code")==0) { clrscr(); cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; cout<<"Loading please wait..."<<endl; for(int x=0; x<80; x++) { cout<<char(221); delay(90); } cout<<"\nCompleted"; delay(2000); clrscr(); textcolor(104); textbackground(90); cout<<"\n\n\n\n\n\n\n\t\t\t\t WELCOME TO KBC"; cout<<"\n\t\t\t\t (learn 2 code) "; delay(2000); clrscr(); textcolor(26); textbackground(78); cout<<"\n Q1. Python was developed by"; cout<<"\n A. Guido van Rossum "; cout<...

DISPLAYING BATTERY PERCENTAGE OF LAPTOP USING PYTHON

Image
CODE:  import psutil from plyer import notification import time battery = psutil.sensors_battery() while(True):     percent = battery.percent     notification.notify(title="BATTERY PERCENTAGE",message=str(percent)+"% BATTERY REMAINING",timeout=100)     time.sleep(60*60) OUTPUT:     

HOTEL MANAGEMENT USING PYTHON

Image
PYTHON CODE: import os from subprocess import call import sys try:     from Tkinter import * except ImportError:     from tkinter import * try:     import ttk     py3 = False except ImportError:     import tkinter.ttk as ttk     py3 = True def click_checkinn():     call(["python", "checkin_gui_and_program.py"]) def click_list():     call(["python", "listgui.py"]) def click_checkout():     call(["python", "checkoutgui.py"]) def click_getinfo():     call(["python","getinfoui.py"]) class HOTEL_MANAGEMENT:     def __init__(self):         root = Tk()         '''This class configures and populates the toplevel window.            top is the toplevel containing window.'''         _bgcolor = '#d9d9d9'  # X11 color: 'gray85'         _fgcolor = '#000000'  # X11 color: 'bl...

Followers

Contact form

Name

Email *

Message *