Question
Drill 2 Exercise 1. Create a logic design that calculate two totals: the number of left-handed people and the number of right-handed people in your
Drill 2 Exercise
1. Create a logic design that calculate two totals: the number of left-handed people and the number of right-handed people in your class. Your loop should execute until the user enters the character X instead of L for left-handed or R for right-handed.
2. Create a logic design for a guessing game. A random number between 1 and 10 is generated. The user enters a number between 1 and 10, trying to guess the correct number.
If the user guesses correctly, the program congratulates the user, and then the loop that controls guessing numbers exits; otherwise, the program asks the user if he or she wants to guess again. If the user enters a "Y", he or she can guess again. If the user enters "N", the loop exits.
Discussion of Experiment:
Conclusion:
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