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
natta225 [31]
3 years ago
15

Define a function OutputValues() that takes two integer parameters and outputs all integers between the first and the second par

ameter, inclusive (each followed by a newline). The function should not return any value.
Ex: OutputValues(2, 4) outputs

2
3
4

#include
#include
using namespace std;

//Type function OutputValues here

int main() {
int num1;
int num2;

cin >> num1 >> num2;
OutputValues(num1, num2);

return 0;
}
Computers and Technology
1 answer:
iris [78.8K]3 years ago
8 0

Answer:

#include <iostream>

using namespace std;

void OutputValues(int n1, int n2) {

 for (int i = n1; i <= n2; i++) {

   cout << i << endl;

 }

}

int main() {

 int num1;

 int num2;

 cin >> num1 >> num2;

 OutputValues(num1, num2);

 return 0;

}

Explanation:

You might be interested in
Different project management steps are initiating, planning, executing, monitoring and controlling, and closing a project. Which
ser-zykov [4K]

Answer:

All steps of project management until the closure of the project are very critical and important for the success of the project.

Explanation:

The steps that are very critical and important for the success of the project.

Initiation:

This is a very beginning step of any project in the project management practices. In this step, mainly, project feasibility is carried out and drafted. at this step, management takes decisions that this project would be profitable or not for the organization. If proper measure and future prediction do not measure properly then this stage would affect the project success criteria. Because, if the base of any project is built on the wrong steps and measures, will lead to failure. At this stage, management takes the decision based on a feasibility document and business case document to ensure if it feasible or profitable to the organization.

Planning:

This is a very crucial step of project planning, and mistakes in this stage will lead the project toward failure. after receiving the green signal at the initiation stage, the proper project plan is carried out in a documented form. This project plan will guide the project manager and all stakeholders of the project in making the project successful. So, a well-written project plan is very critical and important for project success than any other phase of project management. Because the project plan gives the direction to the team to carried out the project execution process smoothly, it helps in handling risk and mitigation strategies to solve the risk, finance management, task management and in achieving timely deliverables.

Execution:

The planning phase and execution phase are most commonly associated with project management. This phase of project management is all about building deliverables and ensure timely delivery to customers for their satisfaction.  Team leader and/or project manager make this happen by allocating the required resources to develop the deliverables and keeping team members focus on their assigned tasks. This phase relies on the project  planning phase.

Monitoring and Controlling:

Monitoring and controlling are sometimes combined with the execution phase of the project because they often occur at the same time and carried out parallel to each other. At this stage, team performance, progress, and other project-related matrices are carried out to track their own progress. In this stage, key performance indicators are calculated, track variation from allocated resources such as cost and time, etc. This stage is important for project success, because if you don't deliver the quality and timely work then you may linger the project that directly affects the project cost and time.

Closure:

The team closes the project as they finished the project and customers/stakeholders approve the project output i.e product and then release the resources. This step is not crucial for project success as other all of the previous stages. but at this stage, effective communication, document finalization, and lesson learned document are required.

6 0
4 years ago
Write a program with a loop that lets the user enter a series of positive integers. The user should enter −1 to signal the end o
Fiesta28 [93]

Answer:

import java.util.Scanner;

public class num2 {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       int count =0;

       int total = 0;

       System.out.println("Enter the numbers");

       int num = in.nextInt();

       while(num!=-1){

           total = total+num;

           count++;

           System.out.println("Enter the next number");

           num = in.nextInt();

       }

//Compute the average

       double average = (double) total/count;

//Outputs

       System.out.println("Total count of numbers entered "+(count));

       System.out.println("Sum of the numbers "+total);

       System.out.printf("Average is %.2f ",average);

   }

}

Explanation:

  • Using java programming language
  • Import scanner class to receive user input
  • declare variables count and total and initialize to zero
  • Prompt user to enter numbers
  • Use a while statement with the condition while(num!=-1)
  • Within the while body keep prompting user to enter a number, increase count and update total
  • when -1 is entered the loop breaks and average is calculated
  • Use printf() method to print average to 2 decimal places.
5 0
3 years ago
Which of the following is a definition of a conventions
laiz [17]
Need more information
6 0
4 years ago
Read 2 more answers
Kerning is the adjustment of space between ___ characters.
IrinaK [193]
Answer: printed

Explanation: The definition of kerning is; the spacing between letters or characters in a piece of text to be printed.

4 0
4 years ago
How can you use the Address Book to address an email message? Use the drop-down menus to complete the sentences. 1. Type an emai
Delvig [45]

Answer:

1. AutoCorrect

2. Address book

Explanation:

stan bts ?

5 0
3 years ago
Read 2 more answers
Other questions:
  • On the CallCenterReport worksheet, add formulas that will summarize the issues for the department entered in cell B3. In cell B6
    13·1 answer
  • Rachelle is an office manager for an active real estate agency. She’s overseeing a transition to a more complete reliance on ele
    9·1 answer
  • Which parts of the forebrain are sometimes described as the “executive center” and can be likened to the central processing unit
    9·1 answer
  • Time Conversion C++: Given a time in -hour AM/PM format, convert it to military (24-hour) time.
    9·1 answer
  • Construct pseudocode for a program that prints ‘Hello World’ on the screen.
    7·2 answers
  • 1. Write the syntax of the following HTML commands by using any one attribute
    6·2 answers
  • What are some ways you can work with templates? Check all that apply.
    9·2 answers
  • Compute the average of a list of user-entered integers representing rolls of two dice. The list ends when 0 is entered. Integers
    12·1 answer
  • Anyone tell my answer.
    15·1 answer
  • What method does a gsm network use to separate data on a channel?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!