User:Goblinmoder: Difference between revisions
From /gwik/
Goblinmoder (talk | contribs) No edit summary |
Goblinmoder (talk | contribs) No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== discord pill == | == discord pill == | ||
[[File:Estradiol 2mg 887 2 b.stl|500x300px|color=0x5084ec,zoom=1,opacity=1]] | [[File:Estradiol 2mg 887 2 b.stl|500x300px|color=0x5084ec,zoom=1,opacity=1,pan=1]] | ||
=== dosecalculator.cpp === | |||
<syntaxhighlight lang="c++" line> | |||
#include <iostream> | |||
using namespace std; | |||
void estimate (float days, float mg) | |||
{ | |||
int type; | |||
cout << "\n\nchoose your e2\n1 - een\n2 - ev\n\n"; | |||
cin >> type; | |||
float avg; | |||
switch (type) | |||
{ | |||
case 1: | |||
avg = (mg * 490) / days; | |||
cout << "\n== een estimates (pg/ml) ==\naverage e2: " << avg << "\npeak e2: " << avg * 1.07 << "\ntrough e2: " << avg * 0.93; | |||
break; | |||
case 2: | |||
avg = (mg * 453.25) / days; | |||
cout << "\n== ev estimates (pg/ml) ==\naverage e2: " << avg << "\npeak e2: " << avg * 1.45 << "\ntrough e2: " << avg * 0.51; | |||
break; | |||
} | |||
} | |||
float dosageC () | |||
{ | |||
bool mode; | |||
cout << "input 1 for mg to mL conversion or 0 for mL to mg conversion: "; | |||
cin >> mode; | |||
if (mode) | |||
{ | |||
float conc; | |||
cout << "your vial's concentration per 10mL (in mg): "; | |||
cin >> conc; | |||
float mg; | |||
cout << "dosage (in mg): "; | |||
cin >> mg; | |||
float dose = (10/conc) * mg; | |||
cout << "your dose of " << mg << "mg is equivalent to " << dose << "mL"; | |||
return mg; | |||
} | |||
else | |||
{ | |||
float conc; | |||
cout << "your vial's concentration per 10mL (in mg): "; | |||
cin >> conc; | |||
float ml; | |||
cout << "dosage (in ml): "; | |||
cin >> ml; | |||
float dose = (conc/10) * ml; | |||
cout << "your dose of " << ml << "mL is equivalent to " << dose << "mg"; | |||
return dose; | |||
} | |||
} | |||
int main() | |||
{ | |||
float mg = dosageC(); | |||
string ans; | |||
cout << "\nwould you like to estimate your blood test results (not a definitive point of reference)? (Y/N): " << endl; | |||
cin >> ans; | |||
if (ans == "Y") | |||
{ | |||
int days; | |||
cout << "days per injection: "; | |||
cin >> days; | |||
estimate(days, mg); | |||
} | |||
else cout << "\nok!"; | |||
return 0; | |||
} | |||
</syntaxhighlight> | |||
== stand for == | == stand for == |
Latest revision as of 15:22, 13 November 2024
discord pill
dosecalculator.cpp
#include <iostream>
using namespace std;
void estimate (float days, float mg)
{
int type;
cout << "\n\nchoose your e2\n1 - een\n2 - ev\n\n";
cin >> type;
float avg;
switch (type)
{
case 1:
avg = (mg * 490) / days;
cout << "\n== een estimates (pg/ml) ==\naverage e2: " << avg << "\npeak e2: " << avg * 1.07 << "\ntrough e2: " << avg * 0.93;
break;
case 2:
avg = (mg * 453.25) / days;
cout << "\n== ev estimates (pg/ml) ==\naverage e2: " << avg << "\npeak e2: " << avg * 1.45 << "\ntrough e2: " << avg * 0.51;
break;
}
}
float dosageC ()
{
bool mode;
cout << "input 1 for mg to mL conversion or 0 for mL to mg conversion: ";
cin >> mode;
if (mode)
{
float conc;
cout << "your vial's concentration per 10mL (in mg): ";
cin >> conc;
float mg;
cout << "dosage (in mg): ";
cin >> mg;
float dose = (10/conc) * mg;
cout << "your dose of " << mg << "mg is equivalent to " << dose << "mL";
return mg;
}
else
{
float conc;
cout << "your vial's concentration per 10mL (in mg): ";
cin >> conc;
float ml;
cout << "dosage (in ml): ";
cin >> ml;
float dose = (conc/10) * ml;
cout << "your dose of " << ml << "mL is equivalent to " << dose << "mg";
return dose;
}
}
int main()
{
float mg = dosageC();
string ans;
cout << "\nwould you like to estimate your blood test results (not a definitive point of reference)? (Y/N): " << endl;
cin >> ans;
if (ans == "Y")
{
int days;
cout << "days per injection: ";
cin >> days;
estimate(days, mg);
}
else cout << "\nok!";
return 0;
}
stand for
- TDD, TGD, TCD.
- trans liberation.
- diyhrt.