// practice functions lesson 1 // move indicated code into functions #include using namespace std; int main(){ double jedi_level; int age; int weight; int mcc; // make a void function that will print out this welcome message 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; // make 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) cout << "please enter your age : "; cin >> age; cout << "please enter your weight : "; cin >> weight; cout << "please enter your midicholrean count : "; cin >> mcc; jedi_level = static_cast (mcc * age) / (weight * weight); // this should remain inside your main function cout << "Your Jedi Level is : " << jedi_level; return 0; }