Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started