Notepad is one of the examples of application software in the computer system. Though its capabilities are limited, it is widely known to be one of the best and strongest text editors, helping most users produce functional output.
Notepad can be used to build many simple applications that every user can make use of. It also, helps with code as well as debugging.
The below steps state how to build and run a calculator in notepad. Ensure to launch Notepad by:
a. Hold down the win key and press the letter R, where R means Run
b. Type in the run dialogue box notepad
c. Press the enter key once
Alternative B:
i. Click on the start button on the taskbar
ii. Click on All Programs
iii. Select and click on Accessories
iv. Point to Notepad and click on it to be launched
Alternative C
1. Type in the search bar located on the taskbar notepad
2. Press the enter key to launch it after it has been selected
To develop a calculator, follow the below steps:
Type:
1. @echo off
2. Press the enter key
3. Type title Batch Calculator by SCIT TECHNOLOGY
4. Color 1F
5. :top
6. echo —————————————————————————————————–
7. echo Welcome to SCIT TECH CALC
8. echo —————————————————————————————————–
9. echo.
10. Set /p sum=
11. Set /a ans=%sum%
12. echo.
13. echo =%ans%
14. echo —————————————————————————————————–
15. pause
16. cls
17. echo Previous Answer: %ans%
18. goto top
19. pause
20. exit
You’ll need to save the aforementioned series of code in the computer system to enable users run it as an application, to do this follow the below steps:
- Click on File from the menu bar
- Move the pointer to Save As and click on it
- Locate where you want to save the file, for example, Desktop, My Document, My New Folder, or any other location.
- Type the filename, with the extension .bat, for example, John.bat, Fred.bat
- After assigning the name to the file, click on save
Congratulations, you have just built a simple calculator using notepad application.
About Author
Discover more from SURFCLOUD TECHNOLOGY
Subscribe to get the latest posts sent to your email.