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)
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...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
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.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning