Question: Programming Exercise 3.3 My City, v.1.0 Purpose. Learn how to write a useful program from scratch, using variables and output. Write a program to declare,

Programming Exercise 3.3 My City, v.1.0 Purpose. Learn how to write a useful program "from scratch", using variables and output. Write a program to declare, assign, and output the forecasted high temperatures for any 5-day period for a city of your choosing. You can get the data from a newspaper or google.com or weather.com. Name the source file myCity1.cpp. Requirements. 1. Use exactly 5 variables of a numeric data type to store the temperatures. 2. Write 5 output statements with proper labels - one for each variable. 3. Include a heading with the city name, and list the source of your information. Program I/O. Input: 5 programmer-assigned numeric values of your choosing. Output: At least 7 lines, with a "header" with the city name, 5 lines with daily forecasts, and a final line stating the data source Example. The output should look something like this: San Jose, California forecast high temperatures: Wednesday, Aug 25, 76 degrees Thursday, Aug 26, 71 degrees Friday, Aug 27, 73 degrees Saturday, Aug 28, 73 degrees Sunday, Aug 29, 76 degrees source: weather.com Programming Exercise 3.3 My City, v.1.0 Purpose. Learn how to write a useful program "from scratch", using variables and output. Write a program to declare, assign, and output the forecasted high temperatures for any 5-day period for a city of your choosing. You can get the data from a newspaper or google.com or weather.com. Name the source file myCity1.cpp. Requirements. 1. Use exactly 5 variables of a numeric data type to store the temperatures. 2. Write 5 output statements with proper labels - one for each variable. 3. Include a heading with the city name, and list the source of your information. Program I/O. Input: 5 programmer-assigned numeric values of your choosing. Output: At least 7 lines, with a "header" with the city name, 5 lines with daily forecasts, and a final line stating the data source Example. The output should look something like this: San Jose, California forecast high temperatures: Wednesday, Aug 25, 76 degrees Thursday, Aug 26, 71 degrees Friday, Aug 27, 73 degrees Saturday, Aug 28, 73 degrees Sunday, Aug 29, 76 degrees source: weather.com
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
