//Andrew Hoffmann

import java.util.Scanner;

public class Takehome
{
	public static void main(String[] args)
	{

	
	
	//Declare variables
	  Circle3 a,b,c,d;
	  Alu chip = new Alu();
	  Double x,y,z,w,u;
  
        // Create circle A
	a = new Circle3(); 
	// Give x the value of "A" Circumference
	x = a.getCircum();
	//Create circle B
	b = new Circle3(); 	
	// Set b with it's arguments
	b.setAll(x,"RED", "YELLOW"); 
	// Give the var Y the value of B's circumference
	y = b.getCircum(); 			
	// Give the var Z the value of B's area
	z = b.getArea();			
	// Set both y and z to the chip class
	chip.setBoth(y,z);			
	// Calculate the average of y and z
	chip.calcAvg();				
	//Return the result
	w = chip.getResult();		
	// Print the value of y and z
	System.out.println(w);		
	c = new Circle3();
	c.setAll(w,a.getColor(),b.getFill());
	chip.setBoth(a.getArea(),b.getArea()) ;
	// Gives you the result of the product
	chip.calcMul(); 
	u = chip.getResult();
	d = new Circle3();
	d.setAll(u,c.getColor(),c.getFill());
	chip.setBoth(c.getRadius(),d.getRadius());
	chip.calcSum();
	a.setRadius(chip.getResult());
	b.setAll(x,b.getFill(),b.getColor());
	System.out.println("the new values for b are: color = " + b.getColor() + "    fill = " + b.getFill() + "   and the radius = " + b.getRadius());




	}
}