#include <iostream>
usingnamespace std;
// TODO - write a void function that will print out this welcome message
void intro ()
{cout << "Welcome to my fabulous Jedi power level calculator!" << endl
<< "This program will take your age, weight, and" << endl
<< "midichlorean count and return your Jedi power level!"
<< endl << endl;
}
double jedi_power();
int main()
{
double jedi_level;
intro ();
jedi_level = jedi_power ();
// this should remain inside your main function
cout << "Your Jedi Level is : " << jedi_level;
return 0;
}
// TODO - write a function that will prompt the user for his/her age,
// weight, and midicholrean count. Then calculate and return their
// jedi level (returns a double). Remember to assign the retuned value
// to the variable 'jedi_level'.
double jedi_power()
{
double jedi_calc;
int age;
int weight;
int mcc;
cout << "please enter your age : ";
cin >> age;
cout << "please enter your weight : ";
cin >> weight;
cout << "please enter your midicholrean count : ";
cin >> mcc;
jedi_calc = static_cast (mcc * age) / (weight * weight);
return jedi_calc;
}