a. Read the day as a string input and the weather in Celsius as integer input. b. Convert the weather degree from Celsius to Fahrenheit, using following equation: Fahrenheit 9/5.0 Celsius + Constant, where Constant is always 32, the weather in Fahrenheit should be decimal number. c. The program should implement a casting operation d. The program should implement a constant variable e. The program should run as following: (Note the use of tab character in the last message) ebug: inter the day: Monday inter the weather in celsius: 43 The weather in Fahrenheit= 109.4, day is Monday UILD SUCCESSFUL (total time: 7 seconds)

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter3: Input/output
Section: Chapter Questions
Problem 4PE: 4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and...
icon
Related questions
Question
Q3) Write a program that converts the weather from Celsius to Fahrenheit in a specific
day. The program should execute the following:
a. Read the day as a string input and the weather in Celsius as integer input.
b. Convert the weather degree from Celsius to Fahrenheit, using following equation:
Fahrenheit = 9/5.0 Celsius + Constant, where Constant is always 32,
the weather in Fahrenheit should be decimal number.
c. The program should implement a casting operation
d. The program should implement a constant variable
e. The program should run as following: (Note the use of tab character in the last
message)
debug:
Enter the day: Monday
Enter the weather in celsius: 43
The weather in Fahrenheit= 109.4, day is Monday
BUILD SUCCESSFUL (total time: 7 seconds)
Transcribed Image Text:Q3) Write a program that converts the weather from Celsius to Fahrenheit in a specific day. The program should execute the following: a. Read the day as a string input and the weather in Celsius as integer input. b. Convert the weather degree from Celsius to Fahrenheit, using following equation: Fahrenheit = 9/5.0 Celsius + Constant, where Constant is always 32, the weather in Fahrenheit should be decimal number. c. The program should implement a casting operation d. The program should implement a constant variable e. The program should run as following: (Note the use of tab character in the last message) debug: Enter the day: Monday Enter the weather in celsius: 43 The weather in Fahrenheit= 109.4, day is Monday BUILD SUCCESSFUL (total time: 7 seconds)
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning