Write a program which should take two user inputs

Assignment Help Computer Engineering
Reference no: EM132103222

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.

Reference no: EM132103222

Questions Cloud

Describe the strategy you used to find appropriate prices : Describe the strategy you used to find appropriate prices for each scenario (approximately 150 words). Ensure that the Low price is less than the Medium price
Outline the basic principles of programming : Prepare a basic solution to a business problem - Apply business information software for data visualization and analysis purposes
Assess the apparent quality of the social accounting : BUGEN 5930 - Business, Society and the Planet - Develop a script in which the central character in this scenario applies the Giving Voice to Values framework
Prepare an interactive computer program : Prepare an interactive computer program from which the cross sectional properties for the shapes shown on the page opposite the inside front cover can be calcul
Write a program which should take two user inputs : Write a C++ program which takes user input as temperature reading of last three hours from three different locations in Kuwait.
Share a unique logical view for simple database application : Consider an application you would like to eventually implement. What would the logical design look like?
How do these roles differ in different types of organization : What roles do security analysts play in preventing Web server, application, and database attacks?
What threats remain constant from year to year : Why are these threats more common and why are they important? What threats remain constant from year to year? Why?
Estimate the period of oscillation : How should they proceed? You can answer this by studying the behavior of the system for varying initial conditions.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Discuss the mass-spring system

If a mass m is placed at the end of a spring, and if the mass is pulled downward and released, the mass-spring system will begin to oscillate.

  Generate the hash values using the perfect hash algorithm

Research perfect hash functions. Using a list of names (classmates, family members, etc.), generate the hash values using the perfect hash algorithm.

  Question1 what are the methods of defense and provide

question1. what are the methods of defense and provide examples? how do you deal with the damage?2. explain fundamental

  Create program with a gui in vb.net

write down a program with a GUI in VB.Net (not Web based). Make it so that the user can input the amount and term of the mortgage as well as the interest rate.

  Build the given bit shift register with given three ttl

TTL 74174 is a 6-bit parallel in=parallel out register that has six inputs D0-D5 and six outputs Q0-Q5. Show how to connect TTL 74174 so that it operates.

  Develop a gantt chart on any thing you have worked on

Please develop a Gantt Chart on any thing you have worked on that has tasks ( at least 5) and a time line (at least 6 months).

  Explian the design for a small web site

Develop a 5-6 page Word document that explian the design for a small Web site that meets the following specifications.

  Note concepts using the osi model as a framework

describe protocols at the different layers of the OSI model and explain their functionality, and identify various hardwarecomponents and network topologies.

  Compare the cpu efficiency and memory efficiency

Compare the CPU efficiency and memory efficiency between ArrayList and Vector. You are tasked to: A. Develop a program to compare the CPU efficiency and memory efficiency between searching against java.util.ArrayList and searching against java.uti..

  Define what is the look up table

The PIC18F4321 microcontroller is required to input a number from 0 to 9 from an ASCII keyboard interfaced to it and output to an EBCDIC printer.

  What must be considered in an acceptable use policy

What should be considered in an Acceptable Use Policy? What must be allowed as acceptable behavior when using corporate information resources.

  What are the three time stamps maintained in the inode

What are the three time stamps maintained in the inode, and how do you display two of them for the file foo?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd