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
Vaselesa [24]
3 years ago
15

draw a flowchart to accept 2 numbers.If the first number is smaller than the second number,print their square else print their c

ube.

Computers and Technology
1 answer:
melomori [17]3 years ago
5 0

Answer:

To do this, you will need some sets of symbols:

an oval to represent start and stop, parallelogram for input, a diamond for decision, and an arrow for direction of flow. a rectangle for process.

Explanation:

Start by drawing the oval  you write "start inside it"

Give some space and draw two parallelogram with space between them also.

Draw a diamond below the parallelogram, with space between them also

Draw a rectangle on the far left of the diamond and just below the rectangle, give some space and draw a parallelogram.

Draw a rectangle on the far right of the diamond and just below the rectangle, given some space and draw a parallelogram.

Draw an arrow with its tail end starting from oval and pointing to the  first parallelogram. Then another arrow pointing from the first parallelogram to the second. draw another arrow from the second parallelogram to the diamond, with the arrow pointing to the diamond. Draw another arrow with the tail end starting from the left of the diamond and all the way pointing to the rectangle on the far left. draw and arrow to connect from this rectangle to the parallelogram below it, with the tail end starting from the rectangle.

repeat the process also to the rectangle and parallelogram on the far right. With the tail end of the arrow also starting on the right of the diamond and connecting to the rectangle and another arrow starting at the rectangle and terminating on the parallelogram.

Give some space and then draw another oval below the diamond symbol.

Then draw arrow starting from the parallelogram on the right and terminating at the oval below them. Repeat same process for the parallelogram on the left, with the tail end of the arrow starting at the parallelogram then terminating at the oval below it.

inside the first oval, we write "start"

inside the first parallelogram you write "read a or input a" (this is to accept the first number)

inside the second  parallelogram you write "read b or input b" (this is to accept the second number)

inside the diamond you write "if a < b" (this means we are comparing our two input to find the lesser one.

On the arrow pointing to the right of the diamond, you write "Yes" and on the one pointing left you write "No". the yes and no are used to compare a statement if its true or not.

inside the far right rectangle, you write "Asq = a * a" and below it you can write the statement fro the second letter "Bsq = b *b". both of this statements are used to find the square of both numbers

inside the parallelogram on the far right, you write "Print Asq, Bsq". This is to print the square of a and b.

inside the far left rectangle you write " Acube = a*a*a" below it we can do for b also which is "Bcube = b*b*b". this statements is for processing the cube of a and b respectively.

the inside the parallelogram on the far left you write "print Acube, Bcube". This statement prints out the cube of a and b.

Note: separate rectangle as well as parallelogram can be used for the processing and the printing of each number.

Inside the last oval you write "stop"

You might be interested in
In many cases, a ribbon organizes buttons and options in Select one: a. menus. b. sections. c. toolbars. d. groups.
katrin2010 [14]

Answer:

The answer is Groups

Explanation:

A ribbon organizes buttons and a program’s options into a series of groups or tabs at the top of the window. Typical ribbon tabs are composed of groups that are labeled as closely related commands. Dividing commands into groups in most Microsoft Office application helps users structure users structure the commands into related sets.

5 0
4 years ago
Read 2 more answers
Write a program that: Takes the list lotsOfNumbers and uses a loop to find the sum of all of the odd numbers in the list (hint:
Alika [10]

Answer:

Following are the code to this question:

#include <iostream>//defining header file

using namespace std;

int main()//defining main method

{

int x[]={2,3,4,6,7,8,9,1,11,12};//defining 1-D array and assign value

int i,sum=0;//defining integer variable

for(i=0;i<10;i++)//defining loop for count value

{

   if(x[i]%2==1)//defining if block to check odd value

   {

       sum=sum+x[i];//add value in sum variable

   }

}

cout<<sum;//print sum

return 0;

}

Output:

31

Explanation:

In the above-given program, an integer array "x" is declared that holds some integer values, and in the next line two integer variable "i and sum" is defined which is used to calculate the value.

In the next line, a for loop is declared, that counts all array value, and it uses the if block to check the odd value and add all the value into the sum variable.

5 0
3 years ago
What are some ways to manage stress? Check all that apply.
Romashka-Z-Leto [24]
Exercise Breathe deeply Take breaks Study at night
7 0
3 years ago
Read 3 more answers
A technician is working at a client's office after hours and needs two cables to finish the work but does not have immediate acc
svetlana [45]

Answer:

The following are the answers of the given scenario.

  • Crimper
  • Cable tester
  • Cable stri.pper

Explanation:

After hours, the specialist operates at that same customer's workplace as well as wants several wires to complete the job, although it would not provide direct links for pre-built wires. The wire required seems to be a dial-up link from the dial-up network to an original analog POTS port on a wall. Another wire would be to attach an Ethernet from the device to that of the current keystone port on that same wall.

Thus, Crimper, Cable Tester and Cable Stri.pper are the same equipment that the specialist needs to use to create the wires as well as then check whether these all operate correctly.

3 0
3 years ago
The number of pixels that can be displayed on the screen at one time is known as what? screen resolution. viewing angle. color d
nevsk [136]

Answer:

screen resolution

Explanation:

The screen resolution indicates the number of pixels that can be displayed at one time on a given screen. For example, it could be numbers like 1920x1080, 1600x900 and so on.

Viewing angle has nothing with the pixel count, although viewing port would.  Color depth concerns the number of colors you can display at one time.  Pixel density is the concentration of pixels, like in Apple's retina display, that increases the number of pixels in the screen, but that doesn't give you the information on how many there are.

6 0
3 years ago
Other questions:
  • Create a class in JobApplicant.java that holds data about a job applicant. Include a name, a phone number, and four Boolean fiel
    13·1 answer
  • Many people object to increased cybersecurity because _____.
    12·2 answers
  • The term median means
    9·2 answers
  • The geographic coordinate system is used to represent any location on Earth as a combination of latitude and longitude values. T
    5·1 answer
  • What is the best prediction she could make about this
    15·2 answers
  • What is the processing speed for the second generation of computers​
    7·1 answer
  • Why is my Brainly scanner not work​
    5·2 answers
  • Questlon 5 of 25
    5·1 answer
  • What are the answers to these Python programs
    11·1 answer
  • what is the worst-case big o running time for finding the maximum value in an array of size n by scanning from left to right and
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!