Write a program to create a dynamic array of user defined size. Size should be in the range of 0 to 15. Write a function FindLarge that should ask user to enter a non-negative number. Function should find the next largest number than the input number in the list.
Write a program to create a dynamic array of user defined size. Array should be of character type. Write a function ChangeCase() that should convert all the small alphabets to capital and vice versa. All array operations should be done using pointers
Create a dynamic array of user defined size. Now take input in array from user. Take a new (integer) value from user and search that how many times the entered number is present in the array.
Assume that word is a String variable. Write a statement to display the message "Today's Word-Of-The-Day is: " followed by the value of word. The message and the value of word should appear together, on a single line on standard output
Write a C++ program to create two pointers of integer type, now take values in these pointers and pass them to a function. Function will update both the values by adding “1” to them. Display the updated values in main.
Write a java program that simulates a lottery. The program should have an array of five integers named lottery and should generate a random number in the range of 0 through 9 for each element in the array.
The user should enter five digits, which should be stored in an integer array named user. The program is to compare the corresponding elements in the two arrays and keep a count of the digits that match. For example, the following shows the lottery array and the user array with sample numbers stored in each. There are two matching digits (elements 2 and 4).
lottery array: 7 4 9 1 3
user array: 4 2 9 7 3
The program should display the random numbers stored in the lottery array and the number of matching digits. If all of the digits match, display a message proclaiming the user as a grand prize winner.
Input Validation: Do not accept a negative value for lottery number. Also keep track of array size.
Write an if/else statement that compares sold_yesterday and sold_today, and based upon that comparison assigns sales_trend the value -1 (the case where sold_yesterday is greater thansold_today) or 1.
Write an if/else statement that assigns True to fever if temperature is greater than 98.6; otherwise it assigns False to fever.