Answered step by step
Verified Expert Solution
Question
1 Approved Answer
an IPO chart showing the Input, Processing, and Output for this program AND a FLOWCHART, detailing the LOGIC of the program. * * * *
an IPO chart showing the Input, Processing, and Output for this program AND a FLOWCHART, detailing the LOGIC of the program.
#include
#include
#include
#include
using namespace std;
P R I N T L I N E F U N C T I O N
void printline
for int i ; i ; i
cout ;
cout endl;
D E C L A R E V A R I A B L E S
int main
float fahrenheit ;
float celcius ;
char scale; F fahrenheit to celcious or C celcius to fahrenheit
float windchillf ;
float windchillc ;
int windspeedmph ;
int windspeedkph ;
timet now time; get corrent date and time
tm ltm localtime&now;
cout endl;
cout Convert Temperature Program endl;
cout Program Created by endl;
cout endl;
cout Do you Want to convert from Fahrenheit to Celcius Type F endl;
cout or do you Want to convert from Celcius to Fahrenheit Type C endl;
cout Enter F or C : ;
cin scale;
scale toupperscale;
while scale F && scale C
cout I N P U T E R R O R endl;
cout "Temperature Scale must be F or C endl;
cout "You entered a scale Please enter F or C endl;
cin scale;
scale toupperscale;
if scale F
cout "Enter The Fahrenheit Temperature: ;
cin fahrenheit;
celcius fahrenheit ;
if fahrenheit
cout "Wind Chill cannot be calculated when temperature is above uBF endl;
cout "Your Temperature is fahrenheit uBF celcius uBC endl;
else
cout "What is the wind speed in MPH: ;
cin windspeedmph;
windspeedkph windspeedmph ;
if windspeedmph
cout "Wind speed must be graeter than MPH to calculate Wind Chill Factor" endl;
else
windchillf fahrenheit pow windspeedmph fahrenheit powwindspeedmph;
windchillc celcius powwindspeedkph celcius powwindspeedkph;
close else for wind speed
close else for fahrenheit
else Celsius section
cout "Enter The Celcius Temperature: ;
cin celcius;
fahrenheit celcius ;
if celcius
cout "Wind Chill cannot be calculated when temperature is above uBC endl;
cout "Your Temperature is celcius uBC fahrenheit uBF endl;
else
cout "What is the wind speed in KPH: ;
cin windspeedkph;
windspeedmph windspeedkph ;
if windspeedkph actually
cout "Wind speed must be graeter than KPH to calculate Wind Chill Factor" endl;
else
windchillf fahrenheit pow windspeedmph fahrenheit powwindspeedmph;
windchillc celcius powwindspeedkph celcius powwindspeedkph;
close else for wind speed
close else for fahrenheit
P R I N T O U T S E C T I O N
printline;
cout tt T E M P E R A T U R E & W I N D C H I L L P R O G R A M t >
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started