Write a program to pass a string to a function and then to find out its length.
Write a C++ program to find the second and third smallest elements in a given array of
integers
Write a C++ program that takes 20 integer inputs from user and calculates and displays the
following:
Number of positive numbers
Number of negative numbers
Number of odd numbers
Number of even numbers
Number of zeros
. Write a C++ program to compare two arrays element wise and create third array store value 1
if equal and 0 if not equal. E.g.
int array1 = [4,5,6,4,3];
int array2 = [4,3,6,3,3];
in this case resultant array should be [1,0,1,0,1]
Write a C++ program to find the least occurring element in an array of integers.
I'm creating an employee pay calculation program and my pop-up box needs to reed Total Pay, but it says microsoft.visualbasic.core. Can anyone help me out that please?
Program that determines the class of the ship depending on its class ID.
Use logical operator
CLASS ID. SHIP CLASS
B or b BATTLESHIP
C or c. CRUISER
D or d. DESTROYER
F or f FRIGATE
Write a program that reads in a number and prints out the letter L using '*' characters
with each line in the L having width n. Further, the length of the horizontal bar should be
4n, and that of the vertical bar (i.e. not including the portion overlapping with the
horizontal bar) should be 3n. Thus for n=3 your program should print
***
***
***
***
***
***
***
***
***
************
************
************
Write a function named len which takes as input a char array of size 255 and returns the length of the actual string in it. (Note: A string ends with ‘\0’ but it is not included in the length calculation.) In the main get a string from the user (fgets) and pass it to len as an argument. Main should then display the string’s length.
Write a function named upper which takes as input a char array of size 255 and converts it to uppercase. In the main get a string from the user (fgets) and pass it to the upper as an argument. Once the function call is completed, the main should display the modified char array.