Guppies are hardy fish, but they can’t live in all water temperatures. The acceptable range for guppies is between 72 and 86 degrees Fahrenheit (inclusive). Write a program that : Asks the user for a...

1 answer below »



  1. Guppies are hardy fish, but they can’t live in all water temperatures.


    The acceptable range for guppies is between 72 and 86 degrees Fahrenheit (inclusive).



    Write a program that:



    • Asks the user for a temperature(Integer).

    • Then display one of three messages based on the information provided:


      • You’re going to freeze your guppy!

      • You’re going to boil your guppy!

      • Your guppy is going to be fine!







    Here are some sample runs:






    Notes:




    • Name your program as:LastNameFirstName_Guppies.cpp (such asLgarchSaadia_Guppies.cpp)


    • OnlyCppfiles are accepted. Any othertype of files won't be graded (you will receivea grade of zero)



Answered Same DayOct 08, 2021

Answer To: Guppies are hardy fish, but they can’t live in all water temperatures. The acceptable range for...

Neha answered on Oct 08 2021
127 Votes
#include
using namespace std;
int main()
{
int temperature;
cout<<"Please en
ter the temperature: ";
cin>>temperature;
if(temperature < 72)
{
cout<<"You’re going to freeze your guppy!";
}
else if(temperature > 86)
{
cout<<"You’re...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here