Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program that prompts the user to enter the city name and its morning and night temperatures for two cities. The program then

image text in transcribed
Write a C++ program that prompts the user to enter the city name and its morning and night temperatures for two cities. The program then outputs each city name and its average temperature in a separate line. Use a tab escape sequence to separate the city name from its average. Enter nang norning tenperature and night tenperature of the first city: Sharjah 37 34 Enter nane, norning tenperature and night tenperature of the second city: The city nanes and average temperatures are: Sharjah 35.5 Dubai 37.5 Process returned @ (@x execution tine : 17.329 s Press any key to continue

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

Step: 3

blur-text-image

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

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions