Answer:
Python code is explained below
Explanation:
# decorator.py starts
def uppercase(fcn):
def wrapper():
original = fcn;
modified = str(fcn).upper() ;
return modified;
return wrapper();
# decorator.py ends
# greet.py starts
import decorator #to generate the decorator
def greetings(): #invokes the greetings function for output
print("Hello");
print(decorator.uppercase(greetings));
# greet.py ends
Answer:
import java.util.Scanner;
public class DashLine {
public static void main(String[] args) {
// Declaring variables
int n;
/*
* Creating an Scanner class object which is used to get the inputs
* entered by the user
*/
Scanner sc = new Scanner(System.in);
// Getting the input entered by the user
System.out.print("Enter a number :");
n = sc.nextInt();
// calling the method by passing the user entered input as argument
dashedLine(n);
}
//This method will print the dashed line for number greater than zer
private static void dashedLine(int n) {
if (n > 0) {
for (int i = 1; i <= n; i++) {
System.out.print("-");
}
System.out.println();
}
}
}
Explanation:
If the solution
process is endothermic, then an increase in temperature usually results in an
increase in solubility. Their heat of reaction is usually positive. The rest of
the choices do not answer the question above.