Computer Science, asked by durgaprasad58, 7 months ago

Wilson is playing with his friend Ganesh. Wilson and Ganesh is having one ball each. Wilson asked Ganesh to guess the color of ball. Wilson gave 5 chance to guess the correct color. First Ganesh told white, Wilson said its wrong guess, then he told Red, Black and Purple but all the guesses went wrong. Ganesh had last chance and he told white and now he guessed correctly. Now Wilson and Ganesh checked whether both the balls are in same size or not.
a. How many colors Ganesh guessed and what are the colors (Use for loop).
b. What is the color of ball Wilson had with him.(Use branching statement to check each guess and only at the end you have to mention the correct guess)
c. Check whether both the balls are of same size or not.
d. Check how many black balls are there in the bag
e. Arrange balls in an order(Asc or Des)

(Note : You can use numbers to represent the color of ball)
Note: TCL Scripting​

Answers

Answered by samnvim
0

Answer:

Wrong question as initially he said white but he was wrong but then he told white at last then he was right

Sorry if I am wrong

Similar questions