Question: Practise Problem 1: Write a C++ program which takes user input as temperature reading of last three hours from three different locations in Kuwait. You

Practise Problem 1: Write a C++ program which takes user input as temperature reading of last three hours from three different locations in Kuwait. You should use a two-dimensional array to store these temperature values. The program should ask the user to input the temperature values for all locations one by one. First it should complete storing the temperature for one location (three values), and then a print message should be shown asking to provide the temperature values for next location. Your program should print the average temperature for each location, and should display the resulting values for each location. Your program should also compute average temperature on three locations during each hour. The result also be displayed as average temperature in hour first, second and third.

Practise Problem - 2: Write a C++ program which should take two user inputs. First input is your first name, and the second input is your family name. You should use character arrays to store both inputs. Next, you should check if both the inputs are same or not. If inputs are same, you should give an error message. If the inputs are not same, you should combine both the names with blank space in between, and display the full name as output. Also, you should print the full name in reverse order by reversing the order of characters i.e. Ehtesham Hassan should be printed as nassaH mahsethE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!