Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need. solutions to. these. C++ questios Lab on void functions Write a void function called CaleAverage that has three test scores as input (parameters) and

need. solutions to. these. C++ questios

image text in transcribed

image text in transcribed

Lab on void functions Write a void function called CaleAverage that has three test scores as input (parameters) and calculates the average. The average will be displayed inside the function itself. Hint: Read the three test scores inside the main and pass them to the function called CalcAverage, which calculates the average and displays it inside( 16 points) Problems on Void Functions 1. Write program to print out the appropriate activity depending on the temperature. (16 points) 2. temp> 8:5 temp> -70 but less than 85 - tennis temp > -32 but less than 70 -golf temp >-0 but less than 32 skiing else(none of these temperatures apply) - swimming go for dancing You have to write a function called PrintActivity that will take the temperature as input and pass it to the function. It will then determine what activity to be done inside of the function and print it inside the function. Remember this is a void function Pseudo code: 1. Write prototype for the function 2. Read temperature from the user 3. Pass the temperature to the function 4. Decide the activity and print it put on the screern Write a program to swap two numbers x and y. a. (16 points) b. You should read in two numbers from the key board and pass them to a function called Swap. c. Swap them inside the function and print them out in the function d. Print them in the main also. Did they print out the same values in the main and in the function? If not, why? e

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

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions

Question

What are the skills of management ?

Answered: 1 week ago