Question
C# Programming: Make a class called particle. Particle can either be wave, leftPolerized, or rightPolerized. Make a little program that uses particle that asks the
C# Programming:
Make a class called particle. Particle can either be wave, leftPolerized, or rightPolerized. Make a little program that uses particle that asks the user for input. If the user types hit, and the particle is in wave, it randomly selects either leftPolerized or rightPolerized and tells the user what was selected. Then it loops and the user can type something else again. If the particle is not in wave, it will flip from leftPolerized to rightPolerized or if it is in rightPoluerized, it switches to leftPolerized and then tells the user what state it is in. If the user types in reset, it goes back to wave and if they type in q it quits the program.
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