Answer:
Following are the program in the C++ Programming Language.
#include <iostream> // header file
using namespace std; // namespace
int main() // main function
{
int n=8; //variable declaration
for(int k=n;n>=0;n-=2) // iterating over the loop to print the format
{
int n1=n;
for(int j=n1;n1>=0;n1-=2)
{
cout<<n1<<" "; // display the format
}
cout<<endl; // next line
}
return 0;
}
<u>Output</u>:
8 6 4 2 0
6 4 2 0
4 2 0
2 0
0
Explanation:
Following are the description of the program.
- Set an integer type variable "n" and initialize in it to 8.
- Set two for loop, the first loop iterate from the variable "n" that is 8 to 0 with decrement by 2 and next for loop also iterate from 8 to 0 then, print the value of the variable "n1".
- Finally, we break line after the second for loop.
Is known as
passive sensor
An NIDPS looks for indications of successful attacks while
residing on a PC connected to that network. The NIPDS can be installed to
monitor all traffic between systems on a network.
A passive sensor examines
copies of traffic on an entire network with no actual network passing through
the sensor. Passive sensor is unlike inline sensor. Traffic on Inline sensor
must pass through the sensor.
Answer:
def ViewRatings(str, rating):
for book in books:
if r >= rating:
print(book)
ViewRatings("emma", 3)
Explanation:
* The code is in Python.
Since the are missing parts in your question. I am assuming there is a <em>books list</em> and there is a rating, <em>r</em> for each book.
- Create a function called ViewRatings that takes two parameters
- Initialize a for loop that iterates through each book in the books list
- For each book, check its rating with given rating. If the rating of the book is greater than or equal to given rating, print the book
- Call the function