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

Create a problem to give to your students to allow them to practice the looping

ID: 3692326 • Letter: C

Question

Create a problem to give to your students to allow them to practice the looping and input validation concepts. The problem should include at least two different decision structures and a loop. The number of times to process the loop is stated in the problem definition. The decision structures should be chosen from the simple, combined, nested and CASE structures. The problem description should include:

•The input into the problem.

•The output from the problem.

The generic processing necessary to solve the problem. (do not give too much information away) The solution should include:

•Input validation statements.

•The solution should include the exact calculations need to solve the problem.

•The solution cannot be similar to a problem posted by another student, located on the Internet or located in another textbook

Explanation / Answer

write a program to check given input number is binary or not? if user enters other than binary number it should state that number is not binary. Program should continue asking for input until user enter characters.

the above problem involves input validations,loops,conditional statements...etc.

example output:-

101010

10001

2345

Input is not binary

0001111

sghss //when you enter characters it exits.

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