Question: #include using namespace std ; void getJudgeData(double x) { cout < >x; while(x <0||x>10) { cout < >x; } } int main () { double
#include
using namespace std ;
void getJudgeData(double x) { cout<<"Please input the judges score: " ; cin>>x; while(x<0||x>10) { cout<<"Error Please input a score between 0-10 only:"; cin>>x; } }
int main () { double score1, score2, score3, score4, score5; double finalscore; getJudgeData(score1); getJudgeData(score2); getJudgeData(score3); getJudgeData(score4); getJudgeData(score5);
cout< when i run this program my function does not save the numbers I input correctly, I get out weird answers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
