Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

What goes on in a committee?

Answered: 1 week ago

Question

=+ How does this differ from the Solow model?

Answered: 1 week ago