Please click on ads

Please click on ads

Wednesday, 6 November 2024

Write a Python Program to find the square root of a number by Newton’s Method.

 Object: Write a Python Program to find the square root of a number by 

Newton’s Method 

Newton’s Method

1. Define a function named newtonSqrt(). 

2. Initialize approx. as 0.5*n and better as 0.5*(approx. +n/approx.) 

3. Use a while loop with a condition better!=approx. to perform the following,

i. Set approx.=better

ii. Better=0.5*(approx.+n/approx.) 

4. Print the value of approx.


Source Code:

defnewton_method(number, number_iters = 500):

 a = float(number) # number to get square root of

fori in range(number_iters): # iteration number

number = 0.5 * (number + a / number) # update

 # x_(n+1) = 0.5 * (x_n +a / x_n)

return number

printnewton_method(9)

# Output: 3

printnewton_method(2)

# Output: 1.41421356237




Saturday, 27 January 2024

advance diploma in computer application accounting and publishing

Here are some key details about an Advanced Diploma in Computer Application Accounting and Publishing: - Scope: This diploma program focuses on developing skills in accounting, bookkeeping, financial reporting, and publishing using computer applications. Students learn accounting and finance software as well as desktop publishing tools. - Duration: Most Advanced Diploma programs are 1-2 years full-time or 2-3 years part-time. - Courses: Typical courses include financial accounting, managerial accounting, taxation, bookkeeping, auditing, computerized accounting systems, desktop publishing, graphic design, editing, and project management. - Skills Gained: Students learn accounting principles, bookkeeping practices, financial reporting standards, and how to use accounting and publishing software like QuickBooks, MS Excel, Adobe InDesign, Photoshop etc. - Career Options: Graduates can work as accounting technicians, bookkeepers, accounting assistants, accounts payable/receivable clerks, publishing assistants, desktop publishers, freelance editors etc. - Progression: The diploma provides an alternative pathway to a Bachelor's in Accounting, Finance, Business or Publishing. Some credits may be transferred towards a degree program. - Recognition: Diplomas are nationally recognized qualifications for entry-level roles. Professional accounting bodies may require additional exams for certification. So in summary, it provides technical skills needed for accounting and publishing support functions using computer applications.

Thursday, 31 August 2023

python projects for beginner

 Certainly! Here are some beginner-friendly Python project ideas that can help you learn and practice programming concepts:


1. **To-Do List Application:** Create a simple console-based to-do list manager. Users should be able to add tasks, mark them as complete, and remove tasks.


2. **Guess the Number Game:** Develop a game where the computer selects a random number and the player has to guess it. Provide hints such as "too high" or "too low" to guide the player.


3. **Calculator:** Build a basic calculator that can perform arithmetic operations like addition, subtraction, multiplication, and division based on user input.


4. **Simple Alarm Clock:** Create a program that allows users to set an alarm time and then notifies them with a sound or message when the time arrives.


5. **Currency Converter:** Build a program that converts between different currencies using exchange rates that you can input or fetch from an API.


6. **Weather App:** Develop a weather application that uses a weather API to provide current weather conditions and forecasts for a given location.


7. **Tic-Tac-Toe Game:** Implement a two-player console-based Tic-Tac-Toe game.


8. **Basic Text Editor:** Create a simple text editor with features like opening, editing, and saving text files.


9. **Hangman Game:** Build a console-based Hangman game where players guess letters to complete a hidden word.


10. **Random Quotes Generator:** Create a program that displays random inspirational or funny quotes every time it's run.


11. **BMI Calculator:** Build a program that calculates a person's Body Mass Index (BMI) based on their height and weight, and provides a simple interpretation of the result.


12. **Dice Rolling Simulator:** Develop a program that simulates rolling dice. Allow users to choose the number of dice and sides on each die.


13. **Palindrome Checker:** Write a program that checks if a given word or phrase is a palindrome (reads the same forwards and backwards).


14. **Simple Web Scraper:** Create a program that uses libraries like BeautifulSoup to scrape data from a website and display relevant information.


15. **Personal Diary:** Build a basic diary application where users can write and save entries for different dates.


Remember that the goal of these projects is to help you learn and practice coding concepts, so don't worry if they seem simple. As you complete these projects, you'll gain more confidence and skills to tackle more complex ideas. Feel free to customize and expand upon these projects as you become more comfortable with programming in Python.

Wednesday, 23 August 2023

Activate Windows 10 For Free

 ðŸ”°Activate Windows 10 For Free🔰



1. open up notepad


2. Paste this: 


@echo off

title Windows 10 ALL version activator&cls&echo ************************************ &echo Supported products:&echo - Windows 10 Home&echo - Windows 10 Professional&echo - Windows 10 Enterprise, Enterprise LTSB&echo - Windows 10 Education&echo.&echo.&echo ************************************ &echo Windows 10 activation...

cscript //nologo c:\windows\system32\slmgr.vbs /ipk TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 >nul

cscript //nologo c:\windows\system32\slmgr.vbs /ipk 3KHY7-WNT83-DGQKR-F7HPR-844BM >nul

cscript //nologo c:\windows\system32\slmgr.vbs /ipk 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH >nul

cscript //nologo c:\windows\system32\slmgr.vbs /ipk PVMJN-6DFY6-9CCP6-7BKTT-D3WVR >nul

cscript //nologo c:\windows\system32\slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX >nul

cscript //nologo c:\windows\system32\slmgr.vbs /ipk MH37W-N47XK-V7XM9-C7227-GCQG9 >nul

cscript //nologo c:\windows\system32\slmgr.vbs /ipk NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 >nul

cscript //nologo c:\windows\system32\slmgr.vbs /ipk NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 >nul

cscript //nologo c:\windows\system32\slmgr.vbs /ipk 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ >nul

cscript //nologo c:\windows\system32\slmgr.vbs /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43 >nul

cscript //nologo c:\windows\system32\slmgr.vbs /ipk DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4 >nul

cscript //nologo c:\windows\system32\slmgr.vbs /ipk WNMTR-4C88C-JK8YV-HQ7T2-76DF9 >nul

cscript //nologo c:\windows\system32\slmgr.vbs /ipk 2F77B-TNFGY-69QQF-B8YKP-D69TJ >nul

echo ************************************ &echo.&echo.&set i=1

:server

if %i%==1 set KMS_Sev=kms.chinancce.com

if %i%==2 set KMS_Sev=NextLevel.uk.to

if %i%==3 set KMS_Sev=GuangPeng.uk.to

if %i%==4 set KMS_Sev=AlwaysSmile.uk.to

if %i%==5 set KMS_Sev=kms.chinancce.com 

if %i%==6 set KMS_Sev=kms.shuax.com

if %i%==7 exit

cscript //nologo c:\windows\system32\slmgr.vbs /skms %KMS_Sev% >nul

cscript //nologo c:\windows\system32\slmgr.vbs /ato | find /i "successfully" && (echo.& ************************************ & echo. & choice /n /c YN /m "Do you want to restart your PC now [Y,N]?" & if errorlevel 2 exit) || (echo The connection to the server failed! Trying to connect to another one... & echo Please wait... & echo. & echo. & set /a i+=1 & goto server)

shutdown.exe /r /t 00


3. Save as a .bat and run

Sunday, 20 August 2023

Website information gathering in Termux

 ðŸ”°Website information gathering in Termux 🔰



             

◾BASIC SCAN


         • DNS Lookup

         • IP Address

         • Web Server Detection 

         • CMS Detection

         • Geo-IP Lookup

         • robots.txt Scanner

         • Nmap Port Scan


        

🔰 Install withTermux 🔰


• apt install git


• git clone https://github.com/Tuhinshubhra/RED_HAWK.git


• ls


• cd RED_HAWK


• ls


• chmod +x rhawk.php


• ls


• apt install php


• ls


• php rhawk.php


◾Enter The Website You Want To Scan :                               www.***.com


◾ENTER : 1 For HTTP OR Enter 2 For HTTPS:  [ Your Side http: {enter 1}   Your Side https: {enter 2} ]