1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
KATRIN_1 [288]
2 years ago
6

Define a function Output Value() that takes two integer parameters and outputs the sum of all negative integers starting with th

e first and ending with the second parameter. If no negative integers exist, sum is 0. End with a newline. The function does not return any value. Ex: If the input is -7 1, then the output is: -28 Note: Negative numbers are less than 0.
Computers and Technology
1 answer:
hoa [83]2 years ago
4 0

The function is written in C++ programming language and is be displayed below:

long OutputVal(int start, int end) {

 long result = 1;

 for (int num = start; num <= end; num++) {

   result *= num;

 }

 return result;

}

The program defines a function Output Value(), takes two integer parameters, and outputs the sum of all negative integers starting with the first and ending with the second parameter.

Read more about C++ here:

brainly.com/question/20339175

#SPJ1

You might be interested in
Polls shows that most Americans....
Len [333]
I dont know whats the contexts behind this uestion but i think the answer is B
6 0
3 years ago
In GamePoints' constructor, assign teamWhales with 500 and teamLions with 500. #include using namespace std; class GamePoints {
xxMikexx [17]

Answer:

Here is the GamePoints constructor:

GamePoints::GamePoints() :

/* Your code goes here */

{

teamLions = 500;

teamDolphins = 500;

}    

Explanation:

Here is the complete program:

#include  //to use input output functions

using namespace std; //to identify objects like cin cout

class GamePoints {  //class GamePoints

   public: GamePoints(); // constructor of GamePoints class

   void Start() const;  //method of GamePoints class

   private: //declare data members of GamePoints class

   int teamDolphins; // integer type private member variable of GamePoints

   int teamLions; }; // integer type private member variable of GamePoints

   GamePoints::GamePoints()  //constructor

    { teamLions = (500), teamDolphins= (500); }   //assigns 500 to the data members of teamLions  and teamDolphins of GamePoints class

   void GamePoints::Start() const    { //method Start of classs GamePoints

       cout << "Game started: Dolphins " << teamDolphins << " - " << teamLions << " Lions" << endl; }  //displays the values of teamDolphins and teamLions i.e. 500 assigned by the constructor

       int main() //start of main() function

       { GamePoints myGame;  // creates an object of GamePoints class

       myGame.Start(); //calls Start method of GamePoints class using the object

       return 0; }

The output of the program is:

Game started: Dolphins 500 - 500 Lions                    

8 0
3 years ago
State the steps for opening Ms word Application ​
Charra [1.4K]

Answer:

Step 1: From the desktop or from your 'Start' menu, open Microsoft Word. Step 2: Click either File or the Office button at the top left. Select Open and browse to the document you wish to open. Double-click on it with your left-hand mouse button to open it.

Explanation:

PLZ MARK AS THE BRAINLIEST

HAVE A GOOD DAY

: )

4 0
3 years ago
Which are examples of email client programs?<br> hand<br> are examples of email client programs.
goblinko [34]

Answer:

Please check the attachment,

Explanation:

Please check the attachment.

Download txt
4 0
3 years ago
To have a set of command
GalinKa [24]

Every program that interacts with people responds to a specific set of commands. The set of commands and the syntax for entering them is called the user interface and varies from one program to another. The DOS operating system makes a distinction between internal and external commands.

3 0
3 years ago
Other questions:
  • You have seven DNS servers that hold an Active Directory–integrated zone named csmpub.local. Three of the DNS servers are in the
    14·1 answer
  • Does the cloud solution offer equal or greater data security capabilities than those pro-vided by your organization’s data cente
    14·1 answer
  • True or False. A modern programming EXE provides a text editor, a file manager, a compiler, a linker and loader, and tools for d
    9·1 answer
  • Given the following code:
    7·1 answer
  • When you start a new blank document, you begin typing at the
    6·1 answer
  • In what ways can information be slanted in a news report? List at least five ways.
    5·2 answers
  • Suppose that you have been asked to create an information system for a manufacturing plant that produces nuts and bolts of many
    12·1 answer
  • What is computer virus?​
    12·1 answer
  • WILL GIVE A BRAINLIEST!!! PLS HELP!!!
    5·1 answer
  • A program that performs handy tasks, such as computer management functions or diagnostics is often called a/an ____________.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!