Answer:
We can give the any integer value between 10 to 100 then it display the message "That number is acceptable."
Explanation:
In the given code the "number" variable takes an user input via cin .After taking user input it check the condition of if block that the user input is between the range of 10 to 100 .if this condition is true then the statement of if block will be executed i.e That number is acceptable otherwise else block will be executed That number is not acceptable.
following are the code in c++
#include <iostream> // header file
using namespace std;
int main() // main
{
int number; // variable
cin >> number; // taking input
if (number > 10 && number < 100) // if block
cout << "That number is acceptable.";
else
cout << "That number is not acceptable.";
return 0;
}
Output:
66
That number is acceptable.
456
That number is not acceptable.
Answer:
#include <iostream>
using namespace std;
int main ()
{
float number = 0.0;
float check = 45.6;
cout << "Enter Numeber";
cin >> number;
if (number > check)
{
cout << " Greater than 45.6" << endl;
}
else
{
cout << " Lesser than 45.6" << endl;
}
return 0;
}
Explanation:
declare and initialize float type variable number. Float is used to cater for decimal but not using to much space which is used by double data type. Check value is stored in other variable called check.
Take input from user in number and write an if statement to check whether entered number is less than 45.6 or greater.If number is lesser than check display message "Greater than 45.6" other wise display message "Lesser than 45.6"
Answer:
b. size
Explanation:
We can use the size() method of java.util.ArrayList to determine the size of an ArrayList in Java. The size() method of the ArrayList class returns an integer which is equal to the number of elements present in the ArrayList.
Below is an example code to illustrate the use of the size() method of the ArrayList:-
ArrayList<Integer> aList = new ArrayList<Integer>(5);
aList.add(25);
aList.add(2);
aList.add(5);
aList.add(22);
System.out.println("Size of the array list: " + aList.size());
This will print the size of the array list as 4 since we've added four numbers into the array list.
The type of attack was most likely attempted against the application is an XSS attack.
<h3>Why is the above an XSS attack?</h3>
This attack is known to be an example of an XSS attack as it is one that is often recorded by the log of a web server's log.
Conclusively, Note that in this attack, if you see the HTML encoding, one can say that is mainly an XSS attack but when you see SQL or XML statements in the string, then it is another.
Learn more about attack from
brainly.com/question/76529
#SPJ1
There are 2 5-digit numbers each. To display the number that has the larger figure. If the figure is the same, both numbers should be displayed.
How do you answer this?