Write a c program which takes user input as temperature


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  he 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.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a c program which takes user input as temperature
Reference No:- TGS02896677

Expected delivery within 24 Hours