/** Quiz review: for, else, while, Random */
import java.util.*;
import java.io.*;
public class WhileReview1 {
   public static void main (String [] args) {
   
      printNumbers(10);
      printNumbers(3, 7);
      whileMultiply();
      whileMultiplyOneLine();
      coinFlips(5);
      findInString("these are the days", "e");
   
   }
   
   /* 1 a) Make this printout including commas.
      printNumbers(10) makes
        1, 2, 3, 4, 5, 6, 7, 8, 9, 10
      printNumbers(4) makes
        1, 2, 3, 4
      printNumbers(0) makes
        invalid 
   */ 
   public static void printNumbers(int max) {
      
   }
   
   /* 1 b) BONUS Make this printout including commas.
      printNumbers(3, 7) makes
        3, 4, 5, 6, 7
      printNumbers(4, 4) makes
        4
      printNumbers(4, 3) makes
        invalid 
   */ 
   public static void printNumbers(int min, int max) {
      
   }
   
   /* 2. Using a while loop, multiply user input numbers
         by each other. Finish when user inputs 0.
         For example,
         Give number 1
           Answer = 1
         Give number 3
           Answer = 3
         Give number 4
           Answer = 12
         Give number 5
           Answer = 60
         Give number 0
           Final answer = 60
   */
   public static void whileMultiply() {
      Scanner sc = new Scanner(System.in);
      // Ask user
      //System.out.println(sc.next());
   }
   
   /* 2 b) BONUS Multiply all the numbers given by user on one line
      For example:
        Give numbers:  1 3 4 5
        Final answer = 60.
   */
   
   public static void whileMultiplyOneLine() {
   
   }
   
   /* 3. Print n random coin flips.  Print the percentage of heads.
   Use the Random class, not Math
   For example, 
      coinFlips(5) can make
        TTHHT
        Percent Heads = 40.0
   */
   
   public static void coinFlips(int n){
   
   }
   
   /* 4. Find the number of a certain characters in a string.
      For example,
        findInString("these are the days", "e");
      should produce
        Big String = these are the days
        Small String = e.  
        Count = 4.
   */
   
   public static void findInString(String big, String small) {
   }
   
}