Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE READ We are working on making simple C++ programs using Putty. I need help understanding how to do the problem below so that I
PLEASE READ We are working on making simple C++ programs using Putty. I need help understanding how to do the problem below so that I can do others like it on my own PLEASE PAY ATTENTION TO THE TEST CASE PROVIDED the end result MUST look exactly like the test case shown, same spacing, same alignment, same numbers, etc I cannot use "break;" to get out of loops WE MUST USE A DO WHILE LOOP IN 2 DIFFERENT PLACES Here is the problem given: Open evenOddDo While.cpp and edit this program so that the program will reject bad answers (anything other than Y, y, N or n). Your program should allow the user to answer with Y and N (uppercase) as well as y and n (lowercase) To reject bad answers, use the do while loop. You are asking the user to enter her answer (Y, y N, or n) in 2 different places. You need to use the do while loop around each of them. Below is the program we are meant to edit: #include #include using namespace std; int main() int num; int odd int even 0; int sum0; int count double avg char ch; cout > num; sum sum+num ; count +t i f (num%2-0) cout >ch; if (count-0) cout
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