Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have to write a program for this with those constraints. I need help getting started with the correct C++ coding. Please help me. Im

image text in transcribed I have to write a program for this with those constraints. I need help getting started with the correct C++ coding. Please help me. Im learning C++.

#include #include #include using namespace std;

// Declare Variables

int main() {

// Programs Greetings cout Problem Your friend has asked you to help them with a project. He needs to convert a Fahrenheit temperature to either Celsius, Kelvin or Rankine temperature scales. However, your friend is a bit - odd. He needs this to apply to only three objects: a cat, a cot and a cap. Each object has a valid temperature range for his calculations. We only want to accept valid words cat, cap, cot no matter how they are spelled (ie Cat, CAT, caT all Ok too). Prompt for the object to calculate the temperature for. Ask for the temperature of the object in Fahrenheit. Check to see if it's in the proper range. Create a menu for the temperature scale to convert to. Have an All option. Allowable Temp (F) for Objects Object Low Temp High Temp cat cot cap 86.0 54.0 72.0 102.0 80.0 88.0 Constraints Make sure the user can input the temperatures only within a valid . If out of range, give them information (too high, too low) and . Temperatures must be valid floats with in the proper range. We . Restrict output to 3 significant digits, always. Have the tempera- range. reprompt can accept an error of less than o.2 degrees. tures line up on the decimals

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions

Question

Explain in detail how the Mughal Empire was established in India

Answered: 1 week ago