Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This code is for C++. It's just a madlib style prompt that fills in the holes of the output with the inputs from cin. Mainly
This code is for C++. It's just a madlib style prompt that fills in the holes of the output with the inputs from cin. Mainly having trouble with formatting the output, i have the extraction statements in place.
Your program should first prompt for the following information and store them in variables as the appropriate data type: - The Professor's name as a string - The Student's last name as a string - The name of an illness as a string - A plural noun as a string - An adjective as a string - Another adjective as a string - A random word as a string - Another random word as a string - The name of a city/country as a string - An integer number - A temperature in Fahrenheit as a floating point number to later be converted to Celsius - Another adjective as a string After obtaining all the inputs you will need to do two things: 1. Convert the Fahrenheit temperature to Celsius The formula is Fahrenheit To Celsius C=95(F32) 2. Multiply the integer number by 3 Finally output the results according to the following template. Note that the blue text should be appropriate values from your variables. TemperatureAsC should be the temperature after converting it to Celsius and should always display 2 decimal places. NumberTimes 3 should be the integer number multiplied by 3
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