Sunidhi Bansal has Published 1078 Articles

Program for octal to decimal conversion in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 18-Oct-2019 08:32:44

262 Views

Given with an octal number as an input, the task is to convert the given octal number into a decimal number.Decimal numbers in computer is represented with base 10 and octal number is represented with base 8 starting from the digit 0 till 7 whereas decimal numbers can be any ... Read More

Program for Fahrenheit to Kelvin conversion in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 18-Oct-2019 08:29:07

431 Views

Given with temperature ‘n’ in Fahrenheit and the challenge is to convert the given temperature to kelvin and display it.ExampleInput 1-: 549.96 Output -: Temperature in fahrenheit 549.96 to kelvin : 561.256 Input 2-: 23.45 Output -: Temperature in fahrenheit 23.45 to kelvin : 268.4For converting the temperature from Fahrenheit ... Read More

Program for Fahrenheit to Celsius conversion in C

Sunidhi Bansal

Sunidhi Bansal

Updated on 18-Oct-2019 08:25:55

1K+ Views

Given with temperature ‘n’ in Fahrenheit and the challenge is to convert the given temperature to Celsius and display it.ExampleInput 1-: 132.00 Output -: after converting fahrenheit 132.00 to celsius 55.56 Input 2-: 456.10 Output -: after converting fahrenheit 456.10 to celsius 235.61For converting the temperature from Fahrenheit to Celsius, ... Read More

Program for decimal to hexadecimal conversion in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 18-Oct-2019 08:19:35

2K+ Views

Given with a decimal number as an input, the task is to convert the given decimal number into a hexadecimal number.Hexadecimal number in computers is represented with base 16 and decimal number is represented with base 10 and represented with values 0 - 9 whereas hexadecimal number have digits starting ... Read More

Program for Decimal to Binary Conversion in C++

Sunidhi Bansal

Sunidhi Bansal

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

327 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 ... Read More

Program for Binary To Decimal Conversion in C++

Sunidhi Bansal

Sunidhi Bansal

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

408 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 ... Read More

Program to convert IP address to hexadecimal in C++

Sunidhi Bansal

Sunidhi Bansal

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

816 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 ... Read More

Program to convert KiloBytes to Bytes and Bits in C++

Sunidhi Bansal

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 ... Read More

Program to convert given number of days in terms of Years, Weeks and Days in C

Sunidhi Bansal

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 ... Read More

Program to convert given Matrix to a Diagonal Matrix in C++

Sunidhi Bansal

Sunidhi Bansal

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

630 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 ... Read More

Advertisements