-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathscatterFraction.cpp
More file actions
35 lines (26 loc) · 1.11 KB
/
Copy pathscatterFraction.cpp
File metadata and controls
35 lines (26 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "scatterFraction.h"
float calculateScatterFraction(){
cout << endl;
cout << " ------------------------------------ " << endl;
cout << " ------------------------------------ " << endl;
cout << " Calculating Scatter Fraction " << endl;
cout << " ------------------------------------ " << endl;
cout << endl;
float Cs = 0 ,Cp = 0 ,SF = 0;
cout << endl;
cout << " Input the following in cps " << endl;
cout << endl;
cout << " ------------------------------------ " << endl;
cout << " Scattered Count Rate? \t";
cin >> Cs;
cout << " ------------------------------------ " << endl;
cout << " Prompt Count Rate? \t ";
cin >> Cp;
SF = Cs/Cp;
cout << " ------------------------------------ " << endl;
cout << " ------------------------------------ " << endl;
cout << " The Scatter Fraction is " << SF << endl;
cout << " ------------------------------------ " << endl;
cout << " ------------------------------------ " << endl;
return SF;
}