Posted at 03:04h
in
Uncategorized
by admin
Hint for Previous Class Questions:
Hints for Question 1:
You need use for loop for this question
In the loop you need use if statement to compare the number with your input
If it is the same number, please use continue to the next iteration
Be careful...
Question:
We often include emoticons in our text messages to indicate how we are feeling. The three consecutive characters :-) indicate a happy face and the three consecutive characters :-( indicate a sad face. Write a program to determine the overall mood of a message.
Input Specification
There will...
Posted at 02:59h
in
Uncategorized
by admin
Question:
We often include emoticons in our text messages to indicate how we are feeling. The three consecutive characters :-) indicate a happy face and the three consecutive characters :-( indicate a sad face. Write a program to determine the overall mood of a message.
Input Specification
There will...
Posted at 14:08h
in
Uncategorized
by admin
Question:
Write a program for a movie theater using while loop. It will keep asking your age and display the ticket price, until you enter “quit”. It is free if you are less than 3 years old, otherwise if your age is less than 16 years...
Question:
Troy loves triangles. He especially likes counting triangles. He has an N-by-N grid consisting of either “.” or “#” characters. Help him count the number of triangles formed only by “#” characters in the grid. Triangles are of the form
More formally, a triangle of height h...
Posted at 04:03h
in
Uncategorized
by admin
Question:
Troy loves triangles. He especially likes counting triangles. He has an N-by-N grid consisting of either “.” or “#” characters. Help him count the number of triangles formed only by “#” characters in the grid. Triangles are of the form
More formally, a triangle of height h...