Create a program with functions in C++:
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main() {
srand(time(NULL));
int min, max;
cout << "Enter a smaller number: ";
cin >> min;
cout << "Enter a number larger than " << min << ": ";
cin >> max;
cout << "Numbers from " << min << " to " << max << " are:";
for (int i = 0; i < 10; ++i) {
cout << " " << min + (rand() % (max - min + 1));
}
cout << endl;
cout << "\nEnter a smaller number: ";
cin >> min;
cout << "Enter a number larger than " << min << ": ";
cin >> max;
min *= min;
max *= max;
cout << "Numbers from " << min << " to " << max << " are:";
for (int i = 0; i < 10; ++i) {
cout << " " << min + (rand() % (max - min + 1));
}
cout << endl;
return 0;
}

Create a program with functions in C++: Asks the user for 2 numbers Generates & prints...
Use PYTHON3 to create a program that asks the user for their name, and then prints their initials. You must create a function called getInitials() that takes the name string and prints out the initials. It must be case insensitive and the initials must be printed in upper case. The program must contain a main() and a function called getInitials(), implemented as described in the function header comment given below. (You should include this function header comment in your own...
Write a program(JAVATPOINT) that generates a random number between 0 and 100 and asks the user to guess it. The user can have at maximum 10 trials. If the number is guessed, the user should be asked if she/he wants to play again. If the number is not guessed and 10 trials were used, the user is not lucky, the program should terminate with a proper message.
Write a Java program that generates an array of Fibonacci numbers. Specifications: The program -Fills a one-dimensional array with the first 30 Fibonacci numbers using a calculation to generate the numbers. Note: The first two Fibonacci numbers 0 and 1 should be generated explicitly as in -long[] series = new long[limit]; //create first 2 series elements series[0] = 0; series[1] = 1; -But, it is not permissible to fill the array explicitly with the Fibonacci series’ after the first two...
Digit to WordsWrite a C program that asks the user for a two-digit number, then prints the English wordfor the number. Your program should loop until the user wants to quit.Example:Enter a two-digit number: 45You entered the number forty-five.Hint: Break the number into two digits. Use one switch statement to print the word for the firstdigit (“twenty,” “thirty,” and so forth). Use a second switch statement to print the word for thesecond digit. Don’t forget that the numbers between 11...
Write a C++ program that does the following: Asks the user to enter 3 integers, Obtains the numbers from the user, Prints the largest number and then the smallest of the numbers, If the numbers are equal, prints the message: "These numbers are equal." Prints the sum, average, and product of the 3 numbers.
Write a C program that asks the user to enter two real numbers. Then your program displays a menu that asks the user to choose what arithmetic operation to be done on those numbers. Depending on the user's entry, the program should display the result to the screen. The sample runs below show what should be done to the numbers entered by the user. Your program should run exactly like shown in the sample runs. make your code run as...
1. Write a program that asks the user to enter two integers, obtains the numbers from the user, then prints the larger number followed by the words “is larger.” If the numbers are equal, print the message “These numbers are equal.” Use only the single-selection form of the if statement you learned in this chapter.
Write a program in Visual C# that generates 1000 random numbers with a user provided seed and upper limit on the random numbers generated. The numbers should be stored in a text file, each appearing on a newline, using the Windows Save File dialog. Each number should be separated by a newline.
Write a program that asks the user for a negative number, then prints out the product of all the numbers from -1 to that number Enter a negative number: -6 720 (The answer is 720 because-1x-2x-3x-4x-5 x-6 720).
Design a Java program that asks the user to enter an integer number n and then generates an array of that many random points (x, y) with x- and y-coordinates in the range between 0 and 100. After this the program must ask the user to enter two diagonal points (x_1, y_1) and (x_2, y_2) of a rectangle with sides parallel to the coordinate axis (see the image below, where possible pairs of diagonal points are shown in red color)....