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
HELP ME PLEASE !!!!!!!!!!
Snezhnost [94]

Answer:

the last one

Explanation:

8 0
3 years ago
Assume that word is a variable of type String that has been assigned a value. Write an expression whose value is a String consis
DerKrebs [107]

Answer:

Follwing is the python code:-

word=str(input("Enter the string\n"))

new=word[0:3] #expression for first three characters of the string.

print(new)

Output:-

Enter the string

chandelier

cha

Explanation:

The expression word[0:3] is for extracting first three characters form the string.

word[0:3] = It extracts characters from index 0 to index 2 it does not include 3.3 is excluded.

7 0
3 years ago
. Briefly describe an SQL DML statement for changing existing data in a table.
bearhunter [10]

Answer:

The Update statement in the DML is used for changing existing data in a table.

Explanation:

Their are following Sql statement in the DML.

Insert

This SQL statement is used for inserting data into the table.

select

This SQL statement is used for retrieving data from database  

update

This SQL statement is used for updating data in a table.

delete

This SQL statement is used for delete data from database .

The "UPDATE" SQL statement in DML is used for Modify the data in the existing table .

Following are the syntax of Update SQL query

Update tablename

set column1=value1,column2=value2............column N=valueN

Where condition;

Example :Suppose we have student table and (rollno,name,age and add) are the field for that table we have to change the address of rollno 105

Then we use update query like that

UPDATE STUDENT

SET add='kalam nagar'

where rollno=105;

8 0
3 years ago
Is the following a true statement in our world? Why or why not?
posledela

Answer:

The statement would be true

.

Explanation:

let,  L = is a NFL player

      M = teaches in CSU

      N = has tattoos

Given that:

nfl player who teaches in csu = L^ M                 (this is false every time)

Above statement is L ^ M -> N

this would be true because

false -> true                  (true

)

false -> false                  (true

)

Second  exp:

There are no players who teach in Csu therefore if we say they all have tattoos statement would be true.

4 0
3 years ago
Which of the following is used to keep track of website content?
Alja [10]

Complete Question:

Which of the following is used to keep track of website content?

Group of answer choices.

A. Antivirus software.

B. File management system.

C. Disk management.

D. Control panel.

Answer:

B. File management system.

Explanation:

HTML is an acronym for hypertext markup language and it is a standard programming language which is used for designing, developing and creating web pages.

Generally, all HTML documents are divided into two (2) main parts; body and head. The head contains information such as version of HTML, title of a page, metadata, link to custom favicons and CSS etc. The body of the HTML document contains the contents or informations of a web page to be displayed.

When a website has been created, it is important and necessary to manage and monitor the content or resources contained in the web site so as to improve and enhance its performance. In order to achieve this, a file management software or system such as LogicalDoc, Goo-gle drive, DocuWare, Alfresco, etc.

Hence, a file management system which is typically a cloud-based service can be used to keep track of website content.

6 0
3 years ago
Other questions:
  • Social media applications' main purpose is to allow users to watch movies and TV shows, listen to music, and read books online.
    6·1 answer
  • How do I make Dank memes
    13·2 answers
  • Nathan took a picture of his friends while they were on a field trip. He wants upload this picture to a photo-sharing site. He w
    7·1 answer
  • A user calls you and says that when they try to connect to the internal website, they are prompted for authentication. The user
    14·1 answer
  • If you copy a drawing from the Internet and use it in a report, you might be violating the artist's
    8·1 answer
  • My feelings alwayss T-T
    14·2 answers
  • How do professionals address their problems?
    14·2 answers
  • Your company is a small start-up that has leased office space in a building shared by other businesses. All businesses share a c
    6·1 answer
  • Write a program that estimates how many years, months, weeks, days, and hours have gone by since Jan 1 1970 by calculations with
    15·1 answer
  • BRIANLIEST!!!!!!!!!!!!!!!!
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!