Answer:
see explaination
Explanation:
import re
def emails(document):
"""
function to find email in given doc using regex
:param document:
:return: set of emails
"""
# regex for matching emails
pattern = r'[\w\.-]+at[\w\.-]+\.\w+'
# finding all emails
emails_in_doc = re.findall(pattern, document)
# returning set of emails
return set(emails_in_doc)
# Testing the above function
print(emails('random text ertatxyz.com yu\npopatxyz.com random another'))
Answer:
All of these
Explanation:
A peer-to-peer network is a type of computer network that computer devices directly to each other, sharing information and other resources on the network.
It does not have a centralized database, there are no master or slave as each device in the network is a master on its own, and the devices all have unique addresses assigned statically for identification.
B) Nouns and verbs in the problem description
C) Polymorphism
D) UML notation
Answer:
A) Javadoc comments
Explanation:
It is used for documenting the java source code in HTML and java code documentation. The difference between multi-line comment and javadoc is that ,javadoc uses extra asterisk, For example-
/**
* This is a Javadoc
*/
It is used to record the behavior of classes.There are various tags used in this like @author,{@code},@exception and many more.
The teacher is violating the Standard 1.2 in the education section.
The standard states that any educator shall not knowingly misappropriate or use monies, personnel, property, or equipment committed to his or her charger for personal gain or advantage.
Hence, because of this, the teacher has violated the Standard 1.2 in the education section.
Read more about Standard 1.2
#SPJ2
Answer:
The teacher is most likely violating the District Use Policy.
Answer:
1.
if(y==0.3){ x = 100;}
2.
if(y == 10){
x = 0; }
else {
x = 1; }
3.
if(sales< 10000){
commission = 0.10;
}
else if(sales>= 10000 && sales <= 15000 ){
commission = 0.15;
}
else{
commission = 0.20;
}
Explanation:
The statements written in brackets represent the conditions while the statements in {...} represent the operation that would be executed depending on the outcome of the if statement.
For 1: if(y==0.3){ x = 100;}
If y is 0.3, 100 would be assigned to x
For 2:
if(y == 10){ x = 0; }
If y is 10, 0 would be assigned to x
else { x = 1; }
If otherwise, 1 would be assigned to x
For 3:
if(sales< 10000){commission = 0.10;}
Is sales is less than 10000, commission would be 0.10
else if(sales>= 10000 && sales <= 15000 ){commission = 0.15;}
If sales is within range of 10000-15000, commission would be 0.15
else{commission = 0.20;}
If otherwise, commission would be 0.20
Answer:
#include<iostream>
using namespace std;
//main function
int main(){
//initialization
float a1,a2;
//display the message
cout<<"Enter the first number: ";
cin>>a1; //store the value
cout<<"Enter the second number: ";
cin>>a2; //store the value
//display the calculation result
cout<<"The sum is: "<<a1+a2<<endl;
cout<<"The Subtraction is: "<<a1-a2<<endl;
cout<<"The product is: "<<a1*a2<<endl;
cout<<"The Quotient is: "<<a1/a2<<endl;
}
Explanation:
Create the main function and declare the two variables of float but we can enter the integer as well.
display the message on the screen and then store the input enter by the user into the variable using the cin instruction.
the same process for second input as well, display the message and store the input.
after that, print the output of the calculation. the operator '+' is used to add the two numbers like a1+a2, it adds the number stored in the variable.
similarly, the subtraction operator is '-', product '*' and quotient operator '/'.
and finally, we get the desired output.
typing with macros
typing with only one hand
typing without looking at the keyboard