Create a calculator which could do the following operations. Such as
i) Addition and subtruction of two single digits
ii) Other than this it could say whether the single digit is Odd or Even.
iii) Put 2 single digits and say whether 1st number is greater than 2nd number, less than 2nd number or equal.
Write a program to print T in all scales viz Celsius, Fahrenheit, and Kelvin.
Formula to convert from Fahrenheit F to Celsius C is C = (F - 32) * 5 / 9.
Given an integer N as input, write a program to print a number diamond of 2*N -1 rows
Note: There is a space after each number
write a program to print a shaded diamond of 2*N -1 rows using an asterisk(*)
Write a C++ program that creates a one dimensional array of length n. Your program should read five integers into the array from the keyboard and perform a traverse operation of finding the homonic mean of each element in thearray
b) Write a template version of the function count to determine the number of times a specific value occurs in a vector of any base type and test it by declaring two or more vectors with different base types and determining how many times a specific value occurs in these two vectors.
a) Write a function called count to determine the number of times a specific value occurs in a vector of integers.
The function should receive two parameters: the vector to be searched (v) and the value to search for (val). count should return the number of times val occurs in vector v. Test your function count in a program by declaring a vector and initializing it, and then call function count to determine how many times a specific value occurs in the vector.
Write a program to compute the volume of a cylinder. Your program reads the radius and length and computes using the formula:
Area =radius*radius*pi
Volume= area *length
Write a program using a for loop to print the output below
1
12
123
1234
12345