Decimal to Binary Conversion in C++

Sunidhi Bansal
Updated on 18-Oct-2019 08:13:18

294 Views

Given with a decimal number as an input, the task is to convert the given decimal number into a binary number.Decimal number in computers is represented with base 10 and binary number is represented with base 2 as it has only two binary digits 0 and 1 whereas decimal numbers can be any numeric digit starting from 0 – 9.To convert a decimal number into a binary number follow the given steps −Firstly divide the given number with the base value of conversion number e.g. dividing 42 by 2 because we need to convert 42 into a binary numbers which ... Read More

Upgrade Your Computer for Free to Windows 10

Lakshmi Srinivas
Updated on 18-Oct-2019 08:09:08

157 Views

People who have been using windows operating system usually encounter persistent messages to upgrade to Windows 10. The good news is that, upgrading to Windows 10 is now free. But in case of Apple, it allows its users to upgrade to newest operating system for free at any point. If users delay, they might land themselves in trouble as Windows is taking a very different approach.All those who have not upgraded their system to Windows 10 by June 29, 2016, they need to spend about $119. And those who consider, the cost of upgradation is more than they can handle. ... Read More

Binary to Decimal Conversion in C++

Sunidhi Bansal
Updated on 18-Oct-2019 08:08:55

369 Views

Given with a binary number as an input, the task is to convert the given binary number into a decimal number.Decimal number in computers is represented with base 10 and binary number is represented with base 2 as it has only two binary digits 0 and 1 whereas decimal numbers can be any numeric digit starting from 0 – 9.To convert a binary number into a decimal number we will extract digits starting from right to left through a remainder and then multiply it with the power of 2 starting from 0 and will be increased by 1 till the ... Read More

Knowing How Much Traffic a Website Gets

Lakshmi Srinivas
Updated on 18-Oct-2019 08:04:51

204 Views

When your website enters fierce competition of the online market, you require to know how much traffic it is drawing and how is it performing in terms of not only its presence on the internet but also in terms of its visibility in the market.The website traffic information is vital for validating its content and understanding on – how much traffic it should bring to get potential results. This data is very useful for the website owners as well as the advertisers. Let us see some tools for knowing how much traffic a website gets.Alexa.comAlexa is an Amazon company known ... Read More

Convert IP Address to Hexadecimal in C++

Sunidhi Bansal
Updated on 18-Oct-2019 08:04:25

787 Views

Given with the input as an IP address value and the task is to represent the given IP address as its hexadecimal equivalent.What is IP addressIP address or Internet protocol is a unique number to that uniquely describes your hardware connected to a network. Internet means over the network and protocol defines the set of rules and regulations that must be followed for connection. Because of IP address only it is possible for a system to communicate with another system over a network. There are two versions of IP that are −IPv4(Internet Protocol Version 4)IPv6(Internet Protocol Version 6)IP address is ... Read More

Sending Large Files Over the Internet

Lakshmi Srinivas
Updated on 18-Oct-2019 08:01:38

335 Views

How large file is really considered and treated as large entirely varies as per the context. At times it is required to send and share very large files over Internet. High resolution, large size image files, PDF files, MP3 files containing audio of around 3 minutes can come at least 5MB size.The email service providers often put size limits on the size of the attachments. In addition, if the possible large files are sent through email as attachments, they take additional overload of few KBs. It becomes even tougher when you need to send it to multiple recipients. Today, there ... Read More

Convert Kilobytes to Bytes and Bits in C++

Sunidhi Bansal
Updated on 18-Oct-2019 07:59:50

1K+ Views

Given with the input as KiloBytes and the task is to convert the given input into number of bytes and bits.Bit − In computers, bit is the smallest unit represented with two integer value 0 and 1 and all the information in computer is processed as a sequence of these two digits.N-bits = 2 ^ N patterns, where N can be any integer value starting from 1.Byte − In computers, byte is represented with 8 bits. Byte is capable of holding one character to numbers ranging between 0 and 255.1 byte = 8 bitsWhich means 2 ^ 8 patterns which ... Read More

Excel Tips for Power Users

Lakshmi Srinivas
Updated on 18-Oct-2019 07:54:46

248 Views

Excel is one of the most commonly used business software on the market. And yet not everyone is able to fully utilize it. By using these tips you can create impressive spreadsheets that communicate effectively and make your point clearly and quickly.VLOOKUPIt helps you search data that’s scattered across different sheets and workbooks and bring those sheets into a central location to create reports and summaries. It helps you find information in large data tables such as inventory lists. To insert this, select the Formulas tab, and then click on Insert Function. A box appears that allows us to select ... Read More

Convert Days to Years, Weeks, and Days in C

Sunidhi Bansal
Updated on 18-Oct-2019 07:51:37

4K+ Views

You are given with number of days, and the task is to convert the given number of days in terms of years, weeks and days.Let us assume the number of days in a year =365Number of year = (number of days) / 365Explanation-: number of years will be the quotient obtained by dividing the given number of days with 365Number of weeks = (number of days % 365) / 7Explanation-: number of weeks will be obtained by collecting the remainder from dividing the number of days with 365 and further dividing the result with number of days in a week ... Read More

Convert Given Matrix to a Diagonal Matrix in C++

Sunidhi Bansal
Updated on 18-Oct-2019 07:47:09

608 Views

Given with the matrix of size nxn the task it to convert any type of given matrix to a diagonal matrix.What is a diagonal MatrixDiagonal matrix is the nxn matrix whose all the non-diagonal elements are zero and diagonal elements can be any value.Given below is the diagram of converting non-diagonal elements to 0.$$\begin{bmatrix}1 & 2 & 3 \4 & 5 & 6 \7 & 8 & 9 \end{bmatrix}\:\rightarrow\:\begin{bmatrix}1 & 0 & 3 \0 & 5 & 0 \7 & 0 & 9 \end{bmatrix}$$The approach is to start one loop for all non-diagonal elements and another loop for diagonal elements ... Read More

Advertisements