A0

Labels

How to develop logic?

 Logic Development

Have you heard programmer is nothing without logic? If yes then you should definitely read this article to which can help you in development of logics.

Before some practices we should understand what is logic? can you answer this question? you should answer if you don't know then don't worry I will answer you. "The ability to solve any problem". If you know better answer then you can comment below this will also increase my understand related to logics. So what ever, now I should come to point that how to develop logic?

logic development dowatse


How to develop

 Here please try to answer these questions.

1) How can you add 2 odd numbers to get even answer?

Answer:

Yes I know answer is too simple and definitely you had answered this question but I should also contribute my answer which is add 1+1 =2(odd +odd=even) . This is called logics and by solving these kinds of problems you can enhance you logics. Now try to solve question two.

2) Now try to solve by adding 3 odd numbers to get even answer?

Answer:
This is called logic now may be you are confuse here and may be your answer will be this is not possible but here I did not limit you, you can use any of the method to solve this question.

Hint: you can also use decimal numbers.

May be now you can solve this question. If not then don't worry I will tell you so the answer is 
5 + 3.9 + 1.1 =10 (odd + odd + odd= even).


Now, you had learnt the solution of another problem and do you know the meaning of it. Meaning of it, is you had develop your logic by solve these complex problems. Now you have to add this logic into programming (these are the sets of instructions which a machine follows to perform any task). If I will tell you to define that question 1 into the set of instructions. you can use any language to define instructions and at the same time I will also solve this question and answer is below

1) initialize three variables one for first number, second for second number and third for answer 
2) Now assign the first two variables with number
3) Now, add the first two variables and store the answer into third variable
4) Now you can display the answer.

I will solve this question in this way you can also use your own way to define instructions also you don't need to use the line of initialize or assigning because you don't know the meaning of it because now you are beginners. We will learn this in the next blogs.


Tips to improve Logic

1) Solve critical problems
2) try to solve same problem with different ways
3) Play logical games such as Castle Crash or Candy crash etc
4) Critical Programming practices is one of the best way to improve logics.


There are tons of others ways which can improve your logics but these are the only one's which are on my mind which I had shared.

Stay connected for more these kinds of articles.



 



Routers and Hyper terminal configuration

 

Q1: Introduction to Router and establishing a console session Using HyperTerminal.

Tasks:
 
1.       Router Introduction
2.       Devices Connectivity
3.       Router Ports and internal Memories details
4.       Hyper Terminal Configurations

 

Routers:

                Router is a network device used to make the connection between two or more different networks and also work in network layer. Also the purpose of router is to forward the data packets and select the best path from routing table. There is lot of the companies which creates router but Cisco is on top. There are three level hierarchy of Cisco table first is access layer routers which are cheapest and for small organizations, second is Distribution layer table which is costly then Access layer routers and more advance then Access layer routers and third last one is Core layer routers which is known as backbone routers because these are the best routers and used by global ISP’s.

 

Device Connectivity:

 

Routers connectivity


There are two routers which are connected together by using wire and these both of them have joined two peer to peer networks.  In this way router connects the networks.

 


Router Ports:

                      There are three kinds of ports on router

 

1)      LAN

2)      WAN

3)      Administrator

 

 

LAN:

        This is the port where Ethernet cables connect also there are Ethernet ports, fast Ethernet ports and Gig Ethernet ports in LAN. These all are connect through RJ45.

 

WAN:

          The port which connects WAN is called WAN port. This has lot of the serial ports and every serial port has two categories one is 26 pins and other is of 60 pins.

 

Administrator:

                       It has two kinds of ports one is local administrator (Consol) and second is remote administrator (Auxiliary).

 

Local Administrator:

                              This is also known as Console port and this is used for initial configuration, password recovery and local administration also it only caries the command. Furthermore, one side of console or rollover cable has RJ45 and other side has 9 pins com port.

 

Remote Administrator:

                            Remote Administrator port also known as Auxiliary port in this port console or roll over cable uses. Moreover, one end of this cable has RJ45 and other side has DB-25.

 

 

 

Memories Details:

                        It has four types of memories e.g Flash Memory, ROM, NVRAM and RAM.

 

ROM:

           Rom is a memory which helps to load IOS and also helps the router in starting and maintaining. It contains a program written in bootstrap which helps the router to load the IOS.

 

RAM:

         It helps to manage temporary configurations, routing table etc. Also while booting IOS loads in the RAM from flash.

 

Flash Memory:

             Flash Memory is the permanent memory which keeps the IOS. This system will not erase when router will reset.

NVRAM:

         This is also a kind of memory which erases nothing when router restarts or turns off.  It also configures mean ip addresses, passwords and routing table. Furthermore, it holds the configuration between routers and switches.

Hyper Terminal Configuration:

                                    Hyper terminal is a program used to send or receive the files between your computer and a remote computer over a modem.  This is a program like CMD and we can configure hyper terminal using different commands.  Hyper terminal is available in every window’s version onward from 2000. We can configure different devices using hyper terminal configuration eg if we want to configure router then we can will join the router with a computer by using a pc by using console wire and after this we configure the router by using hyper terminal in this way.

 

Learn C++

 

Learn C++

We are starting the introduction of c ++ but before starting this we should talk about why we should learn c ++ as a first language. Mostly student ask this question, they thinks why c ++ and why not python because python is the most emerging language also easy to understand in the beginning but this is really an huge language we should not take start with it firstly we should develop some logic and we should understand how really programming works then we should shift to python. So whatever our question was why c ++? So answer for this question is c ++ is too old language also this language really tells the definition of the programming because in modern languages we don't need to initialize the variable or these kinds of things because scientists are trying to make the languages more simple to use therefore they are introducing the different libraries for the ease of the programmers therefore beginners can feel little bit difficulty to handle this because they cannot understand in more depth that how this program is really works. Therefore, c ++ providing the complete syntax for the programming. This was the first point that why we should learn the c ++ as a first language. Now the second point is c ++ is very powerful and very fast language because this is more close to the processor because c ++ directly access the Memory and this is the only one language which can access the Hardware directly this is the reason we use c ++ to develop game engines. If any person can get grip on this language then he can also earn a big amount of money by developing games or game engines. Mostly people thinks c++ is on the ending stage but reality is, It is an evergreen language because this is the fastest high level language. We should not underestimate this language. Furthermore, A good thing is this mostly big organizations ask the questions related to c++. After learning this language you will be able to develop management systems, Emended systems, heavy games etc. 

learn c++ dowaste


 Furthermore, c++ has two types of programming one is procedural oriented which is the programming with the help of functions and second is object oriented programming which we access by using classes and objects with functions. We can also use data structures in this language. Now you can imagine how big is this language. Also we cannot learn this complete language in our entire life because this is about 40 to 50 years old language and in 40 to 50 years the growth in this language is too high. Most of the programmers take start from c++ but now it's on up to you what do you want to select c++ or any other language. Here is the big thing which I am thinking right now which is some students who want to go in web developing so If you are reading this then this article will be not for you sorry!

Because in the beginning you should definitely go with html then css and then JavaScript etc. I am suggesting c++ to them who want to become software engineer or any kind of developer. If you want to go android development then you should learn java after learning c ++ but you can also learn java first because there is not too much difference in both the language first difference is of syntax and second is java is most efficient for android development and c++ for game development. Now we should talk about the most important part of the article which is topics to learn in c++.

1) Flow Diagrams

2) Variable and initialization

3) If-Else conditions

4) Loops

5) Arrays

6) Functions

7) Recursion

8) File handling

9) Pointers

There are lot of other topics to learn in c++ but these are the main topics to learn procedural oriented programming for c++. So After learning this you can also learn the object oriented part for c++. I will write the whole article on opp so stay connected with dowaste.

Sample Feasibility Report

 

Sample Feasibility Report


(there is the sample feasibility report)

(do not copy any of this content or idea because all rights are reserved)

Summary:

                        So In this feasibility report I will explain everything which is need in any feasibility report. This report will explain the product with Industry, organization and financial feasibilities. Also this report will tell you how this product going to help those people who want to exchange their product with any product or money.

feasibility dowaste


Product:

                  So, we are going to provide the platform where you can exchange your product. For example if you have Samsung Galaxy j5 Mobile and your want to get the mobile with the new model also you are ready to pay something with your mobile then you can place a ad and if anyone on this platform is interested to buy your mobile then he can contact with you. In this way you can buy a mobile with a new model. May be now you are thinking why a person will get the old model phone with some amount of money instead of a new model then the answer is it is a good deal instead of selling the whole phone. Now I am going to explain this in detail, so if any the person who has new model want some money and therefore he is ready to sell his phone and he is thinking after solving the problem I will buy a cheap phone. But he got a good deal here he got the enough money from here which can solve your problem with the old model phone. Not only this can you also sell your product with money also because there are three ways to buy a product which is product to product, product to product with money and product to money. You can choose any of them.

Also a good thing in our platform which is that, after placing the ad it will review by our team. In the beginning we will use our team to review the product but after the growth of our platform we will place an program at the backend of our website which will review the product like a YouTube which review the video after uploading to check that is there any copyright part or not. In the same we will review the product to reduce the spam.

How this Product is different:

                                                             The thing which makes it different than any other platform it is the product exchange program. First of all yes this is also an e commerce website but different than any other platform because other platforms sell product at the place of money but we are also offering the customers to buy a product at the place of product or product with money.

Surveys:

                  The basic purpose to conduct the surveys is to get the review about the product that is it useful or not. In the same way we get the reviews from some people that is our product is useful then the answer of them were yes. Our reviews are also around yes. We are also founding our product useful because this is a unique online platform. We are the first one who is starting this. Also there are lot of the people who are searching this kind of platform especially people related to middle class families.

 

Industry or Target Market feasibility:

                                                   Here we will answer some questions related to the earning source and target market or people. So, firstly we should talk about the earning source and answer is here. Earning opportunities for this business are too much such as we can place ads here in this website from any ad agency such as Google ad sense, Surfe.be etc also we can earn by affiliated programs e.g we can place the products from affiliated etc. Our main source of income will be from the customers who will use our platform to exchange the product. We will charge them a little amount to use our platform but this we will do after a time when we reach to our desired audience. Firstly we will offer our platform in free of cost.

 Now, we should talk about the target market that which kind of audience we want. According to our views middle class people will going to use this platform more as compared to other people because mostly they sell their product if they need money urgently. But overall this will be worldwide service because everyone can access this service but the only thing to deal with this traffic is a big management which need time to build up. Therefore we will start this from a small scale which we will talk in the Management section of Organizational feasibility.

Organizational Feasibility:

                                            Here in the organizational feasibility we will talk about the resources and Management of our Business. Firstly we should talk about the Management system for our website. So because this is actually the website therefore we will face less management related problem as compared to any physical business problems because in online we will not have any kind of fear related to the stealing of products therefore we don’t need any kind of cameras and people to handle cameras, we don’t have fear related to the security guard for our store or website, we don’t need people to handle the customers so therefore the online business needs less management as compared to the physical business. Now coming to point that from where we will start our services. Before explaining this I will explain how our store will work so for example a person place an product our one of the team member will check the product that is it a fake customer or not. Now this question is arising how we will confirm it that is this real customer, answer for it is we will track the location and design the questions while placing the product in this way that we can caught a fake customer. E.g If any customer is belongs to Johar town, Lahore and placing the order while placing an order then we could ask them the question related to the nearest place etc. We will also include this privacy that this is necessary to place an order from home because we are tracking the location after this we will be able to identify the real one with fake one, now here is the question related to privacy concerns but we will not show this location to that buyer. The main purpose to get the location to stop fake customers also If you want to exchange the product from home then we can also provide you this service by using your location.
There are also other solutions related to privacy issues which we will implement in our website.

Now we will talk about the resources which are needed in our store. First of all this is an online platform which only need a domain, a website with hosting and few team members to manage this website.  Except of them the most important thing is the customers which we need. And to get the customers we will need marketing for our website which we will also use.  These are only the resources which we need.


Financial Feasibility:

                               Now we should estimate our financial report. Here now we will estimate the beginning start up cash so starting with a domain and hosting which is about 30 dollars per year. After this we need a website, as we are student of computer science therefore we don’t need any money to develop a website because we know how to make a website using word press. After this we need customers to place the products which are most important thing. So to complete this requirement we have many solutions such as we can promote our website, second way is this we can buy some products to place them to our website also we can say our relatives, friends and family to place products on our website. Our complete focus and money will spend on to get the customers from the internet.

So overall start up cost is about 30 dollars and the rest cost will spend on the marketing which we cannot include in the startup cash because spending money on marketing is like to put the water in the Ossian. So this is the financial report to start this business. 



 

Operators and Precedence in Oracle SQL

 

Operators

We can also use the operators while writing the queries eg +, -, *, / and ^. By using these operators we can display output in more accurate way for example if the salary for the employee is 500 per month and we want to display this salary for an year then by using the operators we can easily display the output. We can solve this query by multiplying the monthly salary with 12 months. After calculating output will be 500*12 =6000. 

Do you solve this?

2*3/5+1 

Maybe some people who did not know about the precedence of the operators they cannot solve this question . Therefore, I can help those people who do not know about the precedence of the operators.


Precedence of Operator:

                             *,/ has the same precedence and +,- has the same precedence which works from left to right. If we talk about the complete precedence then this will be like braces then power then divide and Multiply (works from left to right), plus and minus (works from left to right) .

So by following this precedence we can solve ever equation in Oracle SQL. Now we should solve the above equation which is 2*3/5+1.

Here firstly we will solve multiply part and solve it equation will be like 6/5+1 now we will solve division after this equation will 1.2+1 and after adding answer will be 2.2. I can also provide the screen shot for this question on SQL Plus. So the answer is

2*3/5+1
Here may be you are thinking what is dual don't worry dual is a dummy table which we uses in Oracle SQL for the answer. We can use this table when we are not dealing with the physical table in database. SO this was for today and stay connected with dowaste for more concepts related to Oracle SQL.


Select Statement and Distinct Keyword

 


Select Statement:

So this is the first blog related to oracle SQL. Today lecture will about the select statement which is one of the important topic in Oracle SQL. It is used to retrieve(show) the data. For example there is employee table in the database and by using select statement we can show the whole data which is present in the table. So here is the query related to select statement.

e.g

select * from emp;

Here * is use as whole. If I will translate this query in simple words  then the meaning of this query will be select or show the whole data from employee table. If I will use this query than output will be this kind.

select * from emp;


In this way we can use the select statement to show the output from database.

Distinct Statement:

Distinct is the keyword which will become statement when we use select with it. We can use distinct keyword only with select statement. Now here question is arising why we use distinct keyword?

Answer for this question is, if there is any duplicate name or value etc in the table then we use this keyword. By using this keyword we can remove the duplicate names or any value from the table. Here I will also provide you the example to use this.

If I will use

select distinct ename from emp;

If I will translate this query in simple words then this query is saying that select the ename values without duplication and the output for this query will be this kind.

select distinct ename from emp;

In this way we can use select statement and distinct keywords. This is enough for today If you need more about oracle sql then visit the SQL section from manu.

Peer to peer Network with different sharing's

 

 Building and testing a Peer-to-Peer network

Tasks:

 

1.    Introduction (IP Assigning)

2.    Data Sharing

3.    Internet Sharing

4.    Resource Sharing

 

 

 

Introduction (IP Assigning):


Peer to peer connection is the directly connection between two or more pc’s. Here there is no server because every pc is itself acting like a server. Now I will create an example of peer to peer network and tell you how to assign IP to them.


Peer to peer connection


So this is peer to peer network and now to assign IP to them we will click on any computer to assign it an IP after clicking on it click the Desktop button from Manu after this click on IP configuration and now you can assign any IP in IPv4  section and after assigning the IP hit the Enter.  In the same way you can assign IP to every computer.

 

Data Sharing:

You need to do some steps to share the data

1)      Connect two or more pc’s with the Ethernet cable

2)      Assign the IP addresses to them

3)      Disable the Window firewall

4)      Enable network sharing

5)      Verify the connectivity by ping command

6)      Now you can share the data

 

Internet Sharing:

To share the internet you should follow these steps

1)      Connect the client with host using Ethernet cable

2)      Go to the view network connections

3)      Now enable the internet sharing and  turn the sharing option to Ethernet

4)      Now close this window and come back to view network connection window

5)      Here you should assign the IP address in Ethernet option

6)      Now go to client computer and go to the same view inter sharing

7)      Here find the Ethernet option and assign here the same IP address as given to the host.

8)      Now you can surf internet.

 

Resource Sharing:

To share resources between peer to peer connection we need to follow the following steps

1)      Connect the pc’s with Ethernet cable

2)      Turn off the firewall

3)      Configure IP address

4)      Now make the Home group

5)      Now change the setting by go to the properties of your drive and change the sharing setting

6)      Now you can share the resources

Switch Based Network and Connection testing, Internet sharing, RDC

 

Q1: Building and testing a Switch based Network.

 

1.     Introduction (devices Connectivity, IP Assigning)

2.     Connection Testing

3.     Internet Sharing

4.     Remote Desktop Connections

5.     Use Hub, switch, Routers to connect network.

 

Introduction:

                          Switch is a network device and uses to connect different types of devices such as computers, servers, printers etc. So basically this little bit different than hub because it do not broadcast the data like a hub therefore this device is more secure and more intelligent device than hub but more expensive. Switch can store MAC and IP addresses and by using them it will send the message directly to the specific device.

 

IP Assigning:

                         To assign IP address to switch we should need to go the CLI setting inside the switch we can enter by clicking on the switch and after this you can see the CLI option above in Manu. After clicking on the CLI we need to enter the commands to assign the ip address to the switch. So, the commands are the following

1)      First of all enter the ”enable”

2)      After this to check your VLAN IP address enter the “show ip interface brief”

3)      If there will be no IP assign to VLAN then enter “configure terminal”

4)      Now enter “interface VLAN 1”

5)      Now enter any IP address with subnet like this” ip address 192.168.1.9 255.255.255.0”

6)      After this enter ”no shutdown”

7)      Now you added the IP address successfully so therefore to check it firstly press ctrl +z

8)      After this enter again “show IP interface brief”



set ip address of switch on cisco


            Output will be like this as you can see you had successfully assigned the IP address to the switch.

 

Connection Testing:

                                          We can test the connection by send the ping to other network if the network ping back the message then networking is working properly otherwise there is a problem inside the network.

 

Internet Sharing:

                                To share the internet there are need of some network devices, switch to join the network, internet service provider and servers. Firstly the request from a network will go to switch and then by passing through switch it go to the internet service provider and after ISP request will go to the server and then server will respond back to the network. In this way surfing on internet works.

Remote Desktop Connections:

                                     Remote desktop connections allow us to use the other’s pc by using software made by Microsoft. The main purpose for remote desktop connection is to solve software related problems from home using an internet connection. Now some hackers also use this software to hack the other’s pc.

 

Use Hub, switch, Routers to connect network:

Using Switch:


switch connection


Using Hub:

connection using Hub

Using Router:


Connection using Router



IP Addressing with class and ranges and types

 

Q1: Introduction to IP Addressing (IPV4)


Q2: IP Classes and their Ranges with example


Q3: Public and Private IP address with example

 

Networking

 

 

IP Addressing:

                                IPv4 address is the 1st type of IP address which is an unique address generated by the router to identify the network. It is 32 bit long address with four 8 bit fields. Bad thing about this ipv4 is this that it can only generate about 4 billion unique addresses which would be less in future so, therefore to fulfill this requirement ipv6 were introduced which is 64 bit long address. Also IP address has two parts one is network and other is host.

 

IP Classes and their Ranges:

Class

1st Octave

Network Host

Subnet

Hosts per Network

A

1-----------126

N.H.H.H

255.0.0.0

2^24------2^32

B

128--------191

N.N.H.H

255.255.0.0

2^16------2^23

C

192--------233

N.H.H.H

255.255.255.0

2^0-------2^15

D

224--------239

   RESERVED   

        FOR

MULTICASTING

E

240--------254

EXPERIMENTAL

    USED FOR

RESEARCH

 

For example IP address for class A is 1.1.1.1 as the same way IP address for class C is 198.168.1.1. In this way this IP addresses uses but class D and E are only reserved for the Research and multicasting.

Public and private IP addresses:

                                                                IP address is the globally unique IP address provided by ISP to our network also there is a private IP address which is locally unique IP address furthermore we cannot access the internet by using private IP address also there are some ranges from class A, B and C which is only reserved for private IP addresses and the range is here

Class

Private IP address

A

10.0.0.0------------------10.255.255.255

B

172.16.0.0---------------172.31.255.255

C

192.168.0.0--------------192.168.255.255

Now the whole story is here that our pc contains private IP addresses and our internet service provider contains public IP addresses so if we want to access the goggle then request from our local network send to ISP and then ISP provides us a public IP address to access the Google so in this way we access the internet.