Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

4.17 P04-03: Inputting and Counting Valid Data NOTE There are two due dates for

ID: 3752464 • Letter: 4

Question

4.17 P04-03: Inputting and Counting Valid Data NOTE There are two due dates for the assignment to allow for late submissions. The earliest due date on all Projects in these Zybooks is the actual due date (see syllabus if you ever have any doubts). The later due date on all Projects is for accepting late submissions (submissions submitted less than or equal to 24 hours after the actual due date). The goal is to write a complete Cht program to input O or more integer values in the range-100 212, inclusive, until the sentinel value-999 is encountered. As you input the values, count the # of valid values -ie the values that fall within the range-100 212 nclusive After the sentinel value is input, the program outputs the # of valid input values. For example, suppose the input is the following sequence of integers 500 212 -100 -200 -1000 100 982 -32 215 -999 The input sequence contained exactly 5 valid values: 212, 100,0,100, and-32. So the output would be t of valid inputs:5 Here's another input sequence, which is empty because it contains only the sentinel value In this case the output would be of valid inputs: 0 PROGRAMMING INSTRUCTIONS Zyante contains a complete C++ programming environment, so you are free to work here. Zyante provides 2 modes: 'Develop" and 'Submit in Develop mode, you supply the input values in the text field provided, then click Run program to run your program and see the output. This gives you a chance to develop and test your program as you see fit When you are ready to submit your program for grading, switch to Submit mode, and click Submit for grading. This will run your progranm the provided test cases (some of which may be hidden). The zyante system will submit a copy of your program, along with your e. In this assignment you may submit as many times as you want without penaity-zyante records your highest score. If you fail to pass a test keep in mind that auto-grading systems demand 100% precision For example your answer will be marked as correct if you do not output the values in the desired format-d extra spaces or missing newlines will be d as incorrect. Compare your

Explanation / Answer

#include using namespace std; int main() { int num, count = 0; while(true) { cin >> num; if(num == -999) break; if(num >= -100 && num
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote