b) Write two fragment of code in C++ using while and do..while loop respectively that repeatedly prompt user to re-enter the score (double) of DCS1101 final exam until a valid score is entered. The...


C++ Programming


b) Write two fragment of code in C++ using while and do..while loop respectively that<br>repeatedly prompt user to re-enter the score (double) of DCS1101 final exam until a valid<br>score is entered. The valid score is 0-100. Assume variable score is declared properly in the<br>both fragments.<br>Both fragments should display the same output as example shown below:<br>Please enter the score for DCS1101: -10<br>Invalid score.<br>Please enter the score for DCS1101:110<br>Invalid score.<br>Please enter the score for DCS1101:10þ<br>

Extracted text: b) Write two fragment of code in C++ using while and do..while loop respectively that repeatedly prompt user to re-enter the score (double) of DCS1101 final exam until a valid score is entered. The valid score is 0-100. Assume variable score is declared properly in the both fragments. Both fragments should display the same output as example shown below: Please enter the score for DCS1101: -10 Invalid score. Please enter the score for DCS1101:110 Invalid score. Please enter the score for DCS1101:10þ

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here