Posts

Preamble to the Constitution of India:

The Preamble to the Constitution of India is a brief introduction that sets out the guiding principles of the Constitution. It explains the main aims and objectives of the Constitution and the values that it seeks to promote. The Preamble is not a legally enforceable part of the Constitution, but it serves as a preface and a statement of the Constitution's guiding principles. The Preamble to the Constitution of India reads as follows: "We, the people of India, having solemnly resolved to constitute India into a sovereign socialist secular democratic republic and to secure to all its citizens: Justice, social, economic and political; Liberty of thought, expression, belief, faith and worship; Equality of status and of opportunity; And to promote among them all Fraternity assuring the dignity of the individual and the unity and integrity of the Nation; In our constituent assembly this twenty-sixth day of November, 1949, do hereby adopt, enact and give to ourselves this Constituti...

Designing a calculator using HTML and JavaScript

Image
  /*   Set up the HTML structure: Create a basic HTML structure for your calculator, including a container element and elements for the display screen, buttons, and other elements. Style the calculator: Use CSS to style the calculator and give it a visually appealing appearance. You can use a framework like Bootstrap or create your own styles. Add functionality with JavaScript: Use JavaScript to add functionality to the calculator. You can do this by using event listeners to listen for clicks on the buttons, and using JavaScript functions to perform the calculations. Implement the calculator's logic: Write the logic for the calculator's operations, such as addition, subtraction, multiplication, and division. You can use JavaScript's built-in math functions to perform these operations. Test and debug the calculator: Test the calculator to make sure it is working correctly and fix any errors or bugs you encounter.     */ Program: <div id="calculator...

Assembly language program for transfer of data from one block of memory location to any other block of memory location (Overlapping)

Program: MVI C,5 LXI H,2055 LXI D,2059 BACK: MOV A,M STAX D DCX H DCX D DCR C JNZ BACK HLT Result: Input: Memory Location Data value 2051 1 2052 2 2053 3 2054 4 2055 5 2056 2057 2058 2059 Output: Memory Location Data value 2051 1 2052 2 2053 3 2054 4 2055 1    (overlapped data) 2056 2 2057 3 2058 4 2059 5