C# PROGRAM OOP the program should run in infinite loop for the program to run continiously and must use methods sample menu 1 - Walk 2 - Speak 3 - Hop 4 - Show Distance 5 - Show Number of Words Spoken...



C# PROGRAM OOP


the program should run in infinite loop for the program to run continiously and must use methods


sample menu


1 - Walk
2 - Speak
3 - Hop
4 - Show Distance
5 - Show Number of Words Spoken


-----------------------------------------------------------


walk method
- when this method is called, it outputs the text "walking" on screen


speak method
- when this method is called, it outputs one of the following text on the screen in random order


a. How are you?
b. It is a lovely day. Isn't it?
c. It's a pleasure to meet you.
d. Hello.
e. A pleasant morning to you.


hop method
- when this method is called, it outputs on the screen the text "hop" which is equivalent to 2 walks.


distance method
- this is a read-only property that returns the number of times you invoked the hop and walk method.



Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here