Skip to main content

Posts

Showing posts with the label Practice Problems #1.

Practice Problems #1.

Below are 6 problems related to arrays, decision making statements etc. No solution will be provided for these problems except Bonus Problem. Problem 1 - Your program should print  "The weather is Good" if today's temperature is greater than 20 degree and less than 25 degree,  "The weather is little cold" if today's temperature is less than 20 degree and greater than 15 degree,  "The weather is cold" if today's temperature is less than 15 degree. "The weather is little warm" if today's temperature is greater than 25 degree but less than 30 degree. "The weather is warm" if today's temperature is greater than greater than 30 degree and less than 40 degree. "The weather is really hot" if today's temperature is greater than 40 degree. Try, to not to confuse yourself with all these statements and print accordingly to the condition matching the user's input. Problem 2 - Try to create a program with foll