They are set every 1 inch.
        
             
        
        
        
Answer:
Following are the expression to this question:
if (young and famous==True):
Explanation:
For print, the given expression the code requires some modification that can be defined as follows:
 young = True#defining a bool variable that holds a value True
famous = True#defining a bool variable that holds a value True
if (young and famous==True):#defining if block that check variable value
    print('You must be rich!')#print message
else:#else block  
    print('There is always the lottery...')#print message
Output:
You must be rich!
Code explanation:
In the above-given code, two variable "young and famous" is declared, that hold a "True" which is a bool value, in this code, a conditional statement has used, that checks variable value, which can be defined as follows:
- In the if block, it uses the above declared variable with and gate to check its value is equal to true. 
 - If the condition is true, it will print the true block message, otherwise, go to the else block in this, it will print the else block message.
 
 
        
             
        
        
        
Answer:
The method in python is as follows:
class myClass:
     def printRange(min,max):
          for i in range(min, max+1):
               print("{"+str(i)+"} ", end = '')
            
 
Explanation:
This line declares the class
class myClass:
This line defines the method
     def printRange(min,max):
This line iterates from min to max
          for i in range(min, max+1):
This line prints the output in its required format
               print("{"+str(i)+"} ", end = '')
 
        
             
        
        
        
Answer:
Algorithms is formula for solving a problem. It is helpful because it specifically give instructions detail to computer to what a computer should perform a specific task.
For e.g. calculating report cards.
 
        
             
        
        
        
Answer:
public static void PrintShampooInstructions(int numberOfCycles){
        if (numberOfCycles<1){
            System.out.println("Too Few");
        }
        else if(numberOfCycles>4){
            System.out.println("Too many");
        }
        else
            for(int i = 1; i<=numberOfCycles; i++){
                System.out.println(i +": Lather and rinse");
            }
        System.out.println("Done");
    }
Explanation:
I have used Java Programming language to solve this
Use if...elseif and else statement to determine and print "Too Few" or "Too Many".
If within range use a for loop to print the number of times