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
tensa zangetsu [6.8K]
4 years ago
11

Write the execution steps if the input is a lion.

Computers and Technology
1 answer:
balandron [24]4 years ago
7 0

Explanation:

Execution step:

1. Starting the program

2. It will get the animal name

3. Check whether the animal eats only plants. Then it prints "Herbivore". If the condition is false, it prints "carnivore".

4. Stop the program

To identify input, output and decision:

Start and Stop (oval): These are neither input nor output

Does it eat only plants?: Decision making statement ("d")

Read the names of the animals(Parallelogram): Input ("i")

Print Herbivore, Print Carnivore: Output "o"

Scenario 1: Input is lion

1. Start

2. Reads the input as "lion"

3. Check if lion eats only plants. So here it is false

4. Print "Carnivore"

5. Stop

Scenario 1: Input is Elephant

1. Start

2. Reads the input as "Elephant"

3. Check if lion eats only plants. So here it is true

4. Print "Herbivore"

5. Stop

You might be interested in
Key differences between software and books include all of the following except
nadya68 [22]

Answer:

D. software products are more easily compared to each other than books

Explanation: Softwares are programs installed in a Computer that enables and enhances the functions of the computer system. Software can be classified as either SYSTEM SOFTWARE OR APPLICATION SOFTWARES.

SYSTEM SOFTWARE is a program that comes with the computer system and enhances the working of the applicant software.

APPLICATION SOFTWARE is a program that is usually installed by the user to enhance the its use or for some specific works which the user intends to do.

SINCE SOFTWARES ARE INTANGIBLE ASSETS IF A COMPUTER THEY ARE NOT EASILY COMPARED TO EACH OTHER.

5 0
3 years ago
Read 2 more answers
What item on a business card is generally the most prominent?
AveGali [126]
The most prominent
Company name that's most important
3 0
4 years ago
Read 2 more answers
Which of the following tabs on the Ribbon contains the command to add a Quick Part to a document? A Design B Insert C View D Hom
drek231 [11]

The tab on the Ribbon which contains the command to add a Quick Part to a document is: B. Insert.

Microsoft office can be defined as a processing software application (program) that is designed and developed by Microsoft Inc.

Basically, Microsoft office comprises three (3) main software applications and these are:

  • Microsoft Word.
  • Microsoft PowerPoint.
  • Microsoft Excel.

The Quick access toolbar is a small, customizable toolbar that is designed to contain a set of commands, which are completely independent of the particular tab appearing on the Ribbon that is being displayed to an end user.  

Generally, the command which is designed to add a Quick Part to a document is the Insert tab on the Ribbon.

Read more: brainly.com/question/19847875

5 0
3 years ago
Define a function OutputValues() that takes two integer parameters and outputs all integers between the first and the second par
iris [78.8K]

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:

8 0
3 years ago
3. Run the C-LOOK algorithm (requests can only be serviced when the head is moving toward higher numbered tracks); the head is c
o-na [289]

Answer:

See explaination.

Explanation:

An algorithm is specifically defined as the step by step method or process of achieving any type of result.

Please kindly see the attached file for the C algorithm that fulfils the answer of the given problem.

3 0
3 years ago
Other questions:
  • write a pseudo code and flow chart that take a number as input and prints multiplication table up to 10
    9·1 answer
  • What is the definition of an extinct species?
    8·2 answers
  • What setting must be enabled to view data in Demographics and Interests Reports? Content Grouping Advertising features User perm
    13·1 answer
  • Which Fairy Tail character is this?
    14·2 answers
  • How does knowing the player type you are impact your game designing?
    6·1 answer
  • Write a single if-test using Boolean operators and relaional operators to determine if a double variable x is between zero (excl
    11·1 answer
  • List the five body functions that monitor homeostasis.
    7·1 answer
  • According to the passage, what are the goals of the<br> program? Check all that apply.
    11·1 answer
  • Need help completing this coding assignment.
    11·1 answer
  • Where does blood travel when it leaves the right ventricle of the heart
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!