Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions

Question

7. Explain the role of popular culture in stereotyping.

Answered: 1 week ago