Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~495 People Reached
Favorite Forums
Favorite Tags
Member Avatar for Ashton21

Write a return function called averageFourTemperatures that accepts 4 integers in the parameter list, returns the average. In the main function prompt the user for 4 temperatures and them in separate appropriately named variables. Call the averageFourTemperatures, passing values and printing the returned average to the console.

Member Avatar for toneewa
0
226
Member Avatar for Ashton21

The purpose of the program is to tell the user that the weekly salary is in on of three ranges, less than 200, between 200 and 800 and greater than 800. I need help knowing the error/s and need to add and use one additional preprocessor directive that might help …

Member Avatar for toneewa
1
169
Member Avatar for Ashton21

![Screenshot_2021-10-02_134648.png](https://static.daniweb.com/attachments/4/fa8e4c345dd089410fa7414ea44ac516.png)

Member Avatar for rproffitt
-1
59
Member Avatar for Ashton21

#include <iostream> #include <cstdlib> #include <time.h> using namespace std; int main() { srand(static_cast<int>(time(0))); int secret = rand() % 10 + 1; int guess; cout << "Guess a number between 1 and 10." << endl; cin >> guess while (guess != secret) { if (guess < secret) { cout << "Too …

Member Avatar for rproffitt
0
39