C++ program that takes temperature as input

Assignment Help C/C++ Programming
Reference no: EM13936336

You are running a camp and must decide what activities to schedule. You decide to base the decision on the temperature measured in degrees Fahrenheit. If the temperature is above 85°, you schedule swimming. If the temperature is above 70° and less than or equal to 85°, you schedule baseball. If the temperature is above 32° and less than or equal to 70°, you schedule basketball. Finally, if the temperature is below 32°,you send everyone home.

Create a C++ program that takes temperature as input and provides as output your sports decision. Assume that temperatures are only expressed as integers. In the program, include 2 void functions titled getTemp and printActivity, each with an int argument.

- The function getTemp should have a Reference parameter that gets the temperature in getTemp and then passes the value back to be printed in main( ), and
- printActivity should have a Value parameter.

The function getTemp should prompt the user for the temperature in Fahrenheit, get the input from the user, and return to main( ) where it prints the temperature on the screen. The function printActivity should determine the activity and print it as output on the screen. Be careful and note that this problem requires you to input the temperature into getTemp and not directly into the main function.

Please provide .CPP file along with word file instructions.

Reference no: EM13936336

Questions Cloud

Understanding of all the aspects of strategic marketing plan : In the report you will need to demonstrate an understanding of all the aspects of Strategic marketing planning.
Draw a graph showing the trend of each variable using excel : In December 2014, the international price of oil has dropped to almost half of its level in June 2014. What do you think the expected impact of this drop on the US economy using the AD and AS model?
C++ program to calculate the temperature : Randomly generates the daily temperature (in F) of two cities A and B the month of July. The temperatures are integers in the range [60.. 90] and they are stored in two arrays tA and tB.
How do austin decision effect total surplus in kendallville : Austin Kendall, one of the residents of Kendallville, decides on his own to reduce his consumption of Zhlurp by one bottle. What happens to Austin's welfare (his consumer surplus minus the cost of pollution he experiences)? How does Austin's decis..
C++ program that takes temperature as input : Create a C++ program that takes temperature as input and provides as output your sports decision. Assume that temperatures are only expressed as integers. In the program, include 2 void functions titled getTemp and printActivity, each with an int ..
Microenvironmental factors affected target performance : Read the case "Target: From ‘Expect More' to ‘Pay Less'" on pages 103 to 105 of the textbook and prepare answers to the questions below. Do not answer the questions at the end of the case in the textbook 1. What microenvironmental factors have aff..
Why does le rozier sa established the subsidiary in china : Why do you think that Le Rozier SA established the subsidiary in China instead of Japan? Assume no major country risk barriers.
Determine the average number of probes that each search algo : Determine the average number of probes that each search algorithm took. Do these values represent the theoretical values? Print out the averages for the two searches and their theoretical values.
Describe legal issues in operation of international banking : Describe the legal and ethical issues in the operation of international banking and reflect on how these contributed to the downfall of the capital market and its effect it may have on investments in Costa Pobre.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd