//
//  main.c
//  A1Q2 Redo
//
//  Created by Zach Bauman on 2017-12-10.
//  Copyright © 2017 Zach Bauman. All rights reserved.
//

#include <stdio.h>
#include <math.h>
#define o 5.65*10e-8

double calculateRadiation(double, double, double);

void main()
{
    double radiation, T, e, A;
    
    printf("Please enter the surface area in m: \n");
    scanf("%lf", &A);
    printf("Please enter the emissivity: \n");
    scanf("%lf", &e);
    printf("Please enter the temperature in Kelvin m: \n");
    scanf("%lf", &T);
    
    radiation = calculateRadiation(A, e, T);
    printf("The Radiationn is %lf \n", radiation);
}

double calculateRadiation(double T, double e, double A)
{
    double H;
    H = A*e*o*pow(T,4);
    return H;
    
}
