Answer:
// Program is written in Java Programming Language
// Comments are used for explanatory purpose
// Program starts here
public class RandomOddEve {
/** Main Method */
public static void main(String[] args) {
int[] nums = new int[100]; // Declare an array of 100 integers
// Store the counts of 100 random numbers
for (int i = 1; i <= 100; i++) {
nums[(int)(Math.random() * 10)]++;
}
int odd = 0, even = 0; // declare even and odd variables to 0, respectively
// Both variables will serve a counters
// Check for odd and even numbers
for(int I = 0; I<100; I++)
{
if (nums[I]%2 == 0) {// Even number.
even++;
}
else // Odd number.
{
odd++;
}
}
//.Print Results
System.out.print("Odd number = "+odd);
System.out.print("Even number = "+even);
}
The following options helps keep people from slipping on floors
A) Have the proper absorbents in an easy-to-find place to quickly put on spills : So that accidental little spills can be cleaned right away.
C) Wear slip-resistant footwear : It is a precautionary step to follow, no matter where we go.
D) Mark a slippery area with an easy-to-use tent sign that says " Caution, Slippery floor" : This allows people to be aware of the wet area and cross it cautiously.
Leaving oil and fluids to air dry thoroughly, takes a long time and there are chances that people step over it and slip.
So, the answer is
(B) Anytime oil or fluids are spilled on the floor, leave them to thoroughly air dry.
No, it is not necessary that variables that contain numbers should always be declared as integer or floating-point data types.
It is not necessary that variables that contain numbers should be declared as integer and floating point data types. Because number can be declared with different data types. As we know that data type is a vital aspect in programming. It describes the type of a value that is contained in a variable. It is the data type based on which memory is allocated to a number or any type of variables.
Numbers can be whole decimal/fractional, signed, unsigned, small, and long. Simply, they exist in a variety of values. According to their values range, the amount of memory is reserved.
Different programming languages offer different data types to store numbers, depending on their types and size. Let’s consider some examples of data types used in programming languages in order to declare variables holding numbers.
- In Python int, float, and complex are the data types used to declare number type variables.
- SQL uses INTEGER, SMALLINT , BIGINT , NUMERIC() , and DECIMAL() data types for numbers.
- To deal with number type variables, Java has six predefined data types, such as int, long, short, byte, float, and double.
- JavaScript uses a single data type called 'number' to declare numbers.
- In C++, two fundamental data types, int and float, are used to represent numeric variables. But C++ is not only limited to these two data types. The data type char can also store numbers. Other data types for declaring numbers as variables are derived from int, float and char, such as short int, long int, signed int, unsigned int, double, long double, signed char, unsigned char etc. etc.
So in concluding remarks, declaring a number type variable is not only limited to using integers and floating-points data types. Rather it entirely depends on the respective programming language, and size and type of the number to be stored in the variable.
You can learn more about data types at
brainly.com/question/13438922
#SPJ4
Answer:
Argument
Explanation:
<u>Argument</u> - A set of connected ideas, supported by examples, made by a writer to prove or disprove a point.
Answer: Windows
Explanation:
ShellShock: Also called Bashdoor, it is a security bug which is found in the Bash shell of operating system e.g. Unix. It allows the hacker to execute scripts and commands by gaining unauthorized access. This affects many machines, devices that use Bash. Servers like web servers are most affected as most of them run Unix based OS like OS X. Most vulnerable are those who use Unix or Linux operating systems.
Microsoft Windows does not use Bash so it does not directly affect Windows os. For those who are using Windows PC, Windows phones and websites that are developed by MS software are non-vulnerable to ShellShock.