Answer:
C++.
Explanation:
#include <iostream.h>
void main(int argc,char* arg[]) {
// Arrays
int x[100];
int y[50];
int z[50];
////////////////////////////////////////////////////////////////////////////
int count = 0;
for (int i = 0; i < 100; i+=2) {
z[count] = x[i] * y[count];
count++;
}
for (int i =0; i < 5; i++) {
cout<<z[i]<<endl;
}
getche();
}
The code segment makes use of conditional statements.
Conditional statements in programming are used to make decisions
The code segment in C++ is as follows
if (score > 90) {
grade = 'A';
}
else if (score >= 80 && score < =90) {
grade = 'B';
}
else {
grade = 'C';
}
The above code segments take the score, make comparison, and then determine the appropriate letter grade.
Read more about code segments at:
brainly.com/question/20475581
Answer:
Modify is the correct answer to the following question.
Explanation:
If any person or user wants to read, delete, modify and execute the files then they have required the Modify permission. In other words, Modify permission provides the user to modify and delete the following files but they unable to delete subfolders because of the following permission.
If they want then they have to change the permission by click right button from the mouse on the file or the folders which they want to change and then click on the properties from there they can change the permission.
Answer:
The code to calculate the area of a circle is:
from math import pi
def circleArea(radius):
if radius > 0:
return pi * (radius ** 2)
else:
return None
if __name__ == '__main__':
radius = 5
print("Radius: {} Area: {}".format(radius,circleArea(radius)))
Explanation:
A detailed explanation of each line of code is given below.
#Define the number pi used to calculate the area
from math import pi
#We define a function that calculates the area of a circle
def circleArea(radius):
#Check if the radius is valid ( radius > 0) since there aren´t negative radius
if radius > 0:
#Compute the area formula for a circle 
return pi * (radius ** 2)
else:
#Return None if the radius is invalid
return None
#Run the function we´ve defined
if __name__ == '__main__':
#Define a radius
radius = 5
#Call the function and parse the radius through it, then print the result
print("Radius: {} Area: {}".format(radius,circleArea(radius)))
Answer:
Linux directories and their purposes are:
1) lib - Lib file contained the share object library file which necessary to boots system and this directory contain file module stored in the kernel.
2) etc - etc file is the configuration file that they are local in the machines. When the program run these file are stored in the directories. this can be static and do not executable directory.
3) Boot - Boot file are stored in the directory which required processing of linux boot and such files are included in the linux kernel of the file.
4) Root - Root file are the best user root directory and user cannot view this directories from there account. This file usually contain administrative file system.
5) Home - Home file contained the user directory and it is the default system of linux. Home directory helps user to enable any network system to access there home directories.