Posts

Showing posts from December, 2021

How to create Xml for a book store application and display it?

Image
A book store has a collection of books with various categories. It includes fiction,non fiction based books, general books, Technical books. In  this example, the book store has computer science based books. Each book has a title,author(s),category it belongs, publications details and price of the book.The code is given below... XML program for book store application is given below.  <?xml version="1.0" encoding="UTF-8"?> <book_store> <book> <title>The art of computer programming</title> <author> Donald E.Knuth</author> <category> Computers</category> <publications> Addison wesley</publications> <price> 10,060</price> </book> <book> <title>Code </title> <author> Charles Petzold </author> <category> Coding </category> <publications> Microsoft Press</publications> <price> 1500</price> </book> <book> <titl...

SQL interview questions part 1

SQL stands for  S tructured  Q uery  L anguage. It is used in databases to manipulate and retrieve data from database. It mainly used in relational databases. When you attending any software interview, you will get the questions from SQL. Because it is the basic language and easy one too. Let us discuss the interview questions.... Before starting the SQL, you must know about database and RDBMS. A database is a collection of data stored in a system in an organized  way. Using SQL, you can retrieve the data. RDBMS (Relational Database Management system)is a software which is used to create, retrieve ,update and manage the database. The data is stored in the form of tables. Next, SQL interview questions are given below…. 1.What is SQL?     SQL is Structured Query Language which is used to define ,retrieve and manipulate       data from databases.   2.Name some SQL servers.     Some examples a...

how to write python programs for arithmetic operations

 Arithmetic operations Arithmetic operations are the basic operation in any programming language. Even in mathematics, these are the basic things that everybody should know. They are Addition(+)  Subtraction(-) Multiplication(*) Division(/) Modulus(%) Exponent(**) Floor division(//) Program 1 :Addition of three numbers. I am using notepad as a editor to write this python program. I named this file name as "add3.py" The program is a=2 b=3 c=4 print(“the sum of three numbers are”+a+b+c)  The output is shown below. C:\Users\python>py add3.py the sum of three numbers are 9   C:\Users\python> Program 2: Subtraction of two numbers  The program "sub.py" d=10 e=4 print(" The subtraction  value is",d-e) The output is given below C:\Users\python>py sub.py  The subtraction  value is 6 C:\Users\python> Program 3: The multiplication table  Program "mul.py" a=2 for i in range(1,11): print(a,'x',i,'=',a*i) The output is C...

Python -A basic view

Image
Python is a high level programming language which is based on object oriented technology. You can interpret it directly. It is an interactive language in web development applications. Who developed it??? Guido van Rossum was the creator. Advantages: It has lots and lots of advantages to programmers. ·       It is a portable language. ·       It can be compatible with many platforms. ·       It has wide range of functions in its library. ·       It is GUI based programming language which is benefit for web programmers and many more… Let us the journey to python. How to start the python????? ·       First, download the python software from python website.    Install it to your computer.   ·       To Set the path in windows command prompt, type the following Path % Path%; c:\python Where C:\python ...