In computer programming, what is a conditional?

Answers

Answer 1

Answer:

In computer science, conditional statements, conditional expressions and conditional constructs are features of a programming language, which perform different computations or actions depending on whether a programmer-specified boolean condition evaluates to true or false. Apart from the case of branch predication, this is always achieved by selectively altering the control flow based on some condition.

Explanation:

Conditional (computer programming) In computer science, conditional statements, conditional expressions and conditional constructs are features of a programming language, which perform different computations or actions depending on whether a programmer-specified boolean condition evaluates to true or false.

Answer 2

Conditionals essentially test for true and false.

For instance, in python:

if 1 > 0:

   the code does something.

Since 1 is greater than 0 the conditional is true, but if the if statement is false, for instance:

if 1 < 0:

   the code does something

else:

   the code does something else

The if statement is skipped because 1 is not less than 0 and the else statement runs.


Related Questions

Click cell C6 in the Data worksheet and insert a column. Type Series Name in cell C6. Click cell C7 in the Data worksheet and insert a lookup function that identifies the series code, compares it to the series legend, and then returns the name of the series. Copy the function you entered from cell C7 to the range C8:C22. Change the width of column C to 18.

Answers

Answer:

I was able to obtain an image of the "Data Worksheet" referenced (attached).

First we click on the C6 cell, and click the "Insert column" toolbar button.

Then on the same cell we type the column name "Series Name"

On the cell below (C7) we'll type the VLOOKUP function as follows:

=VLOOKUP(B7;$A$2:$C$4;2)

FIrst argument (B7) is the term to search

Second argument ($A$2:$C$4) is the table containing the terms to search and the results to return.

Notice the use of $ to avoid errors while copying the formula.

The third argument (2) means the function will return the 2nd column from the "Series Legend" cells.

Finally we'll copy the formula in C7 and paste it to the cells below C8 to C22.

To resize the column just drag the right side on top of the column, mouse icon will change to a double-pointed arrow.  

What are the steps for subtotaling data?

Select
.

Click the
tab.

In the Outline group, click Subtotal.

In the Subtotal dialog box, choose when to subtotal and what type of subtotaling to do.

After selecting the settings, click OK.

Answers

Answer:

any cell in the data block

Data

Explanation:

just took it :)

Answer:

A) Any cells in the data block

B) Data

Explanation:

Multiple Choice
What is the missing line of code?
>>> sentence = "Programming is fun!"
>>>
'gra
O sentence[2:5)
0 sentence[2:6)
O sentence[36]
sentence[3.5)

Answers

The missing line of code is: sentence[3:6]

I hope this helps!

Answer:sentance[3:6]

Explanation:

Hope this helps y’all!! <3

What are some real-world situations that involve infinite loops, for loops, and while loops?

Answers

Answer:

We work hard to get paid at the end of each month. Another could be the water cycle.

Explanation:

There aren't many things that can never end. The sun will eventually get chilly and all life on earth will cease to exist since the earth is not limitless.

There is nothing that can measure an infinite thing that extends for countless light years; space and time are the only truly limitless things. Nobody actually knows how long the planet has existed for; time never ends. Long before the alleged huge boom, the cosmos could have been created. God is the limitless thing that existed long before the universes were created. He created the universe and everything inside your head. You would not have ever been born without him.

Time and space are examples of an infinite loop, but I would also include human life. Why? You will be revived and reincarnated once you die, and you will then live forever.

The water cycle is an example of a while loop since it will continue as long as the earth and water do. But the planet Earth probably won't last forever.

For loop: As the previous commenter noted, someone who works hard every month would be regarded as a for loop.

To learn more about infinite loop ,for loops, while loops refer to:

https://brainly.com/question/13148070

#SPJ2

INSTRUCTIONS RUN CODE GRADING HISTORY Write code to take a String input from the user, then print the first and last letters of the string on one line. Sample run: Enter a string: surcharge se

Answers

Answer:

Written in Python

userinput = input("Enter a string: ")

print(userinput[0]+userinput[-1])

Explanation:

The code is straight forward and self explanatory.

The first line prompts user for input

userinput = input("Enter a string: ")

This line gets and prints the first and last character of user input

print(userinput[0]+userinput[-1])

HELP: Although you can build tables in Excel, in Access you can
A. connect the data in tables

B. format the tables with built-in styles
C. build them more quickly
D. create lists, not tables

E. perform calculations that Excel cannot

Answers

it’s A tell me if wrong !!

In a computer instant messaging​ survey, respondents were asked to choose the most fun way to​ flirt, and it found that ​P(D)equals0.660​, where D is directly in person. If someone is randomly​ selected, what does Upper P (Upper D overbar )​represent, and what is its​ value?

Answers

Answer: 0.340

Explanation:

If someone is randomly​ selected, what does Upper P (Upper D overbar )​represent an individual who doesn't flirt directly in person.

Since P(D) = 0.660

Upper P (Upper D overbar )​ will be:

= 1 - 0.660

= 0.340

Hello, Anyone bored and want to finish my edu typing for online school? my teacher says it's
a grade to TYPE on a keyboard?! I just don't have the energy to do that. The website is called edu typing. Let me know if you want to help with my homework, I'll give you my account password and information (it's a school account, not important) Please do it correctly don't get me in trouble xD. you have to finish "Alphabetic keys and symbols" and "Number & Symbols" you'll see them at the bottom left of the screen. I LOVE YOU IF YOU DO THIS FOR ME no cap​

Answers

Answer:

ok

Explanation:

Who is the entity responsible for keeping a record of employee injuries and illnesses?
a. The federal government
b. The employer
c. The employee
d. The state government

Answers

Answer:

B. the employer

Explanation:

Hope this helped. Hav an amazing day/night!!

Answer:

B.The employer

Explanation:

I got it right on edgen

MOST ACCURATE ANSWER GETS BRAINLIEST, FIVE STAR, FOLLOW, AND THX

What Boolean operator can you use to broaden your search results?

Group of answer choices

a. ALL

b. AND

c. NOT

d. OR

Answers

A, D are the correct answers enjoy

Binary number 10101001

Answers

The number would be 169!

How can you drop two eggs the fewest amount of times, without them breaking?

Answers

Answer:Both eggs are identical. The aim is to find out the highest floor from which an egg will not break when dropped out of a window from that floor. If an egg is dropped and does not break, it is undamaged and can be dropped again. However, once an egg is broken, that's it for that egg.

Explanation:

Answer:

the first person is right

Explanation:

it is a logical answer

In which field of Information Technology do IT professionals work directly with other employees to solve their general technology related issues? Information Services and Support Network System Administration Programming and Software Development Interactive Media

Answers

Answer:

Information Services and Support

Explanation:

Information service and support is a field of information technology.

What is Information Technology?

Using computer systems or other electronic devices to retrieve information is known as information technology (IT). Information technology underpins so many aspects of our everyday lives, including our workforce, company processes, and personal access to information.

Everyone, from large corporations to small solo operations and local businesses, uses information technology. It's used by multinational corporations to manage data and innovate their procedures.

Even flea market vendors use credit card readers on their smartphones to take payments, while street entertainers advertise their Venmo name to solicit donations.

Therefore, Information service and support is a field of information technology.

To learn more about Technology, refer to the link:

https://brainly.com/question/13629038?

#SPJ2

Do you think more devices connect to the internet wirelessly or wired? Why?

Answers

Answer:

yes morr devices connect to the internet wirelessly b cos no wire in BTW dat can cos destruction like if d wire has been peeled

Explanation:

plz give me brainiest

Write a question that prompts the user to input a sequence of numbers the algorithm should display the highest number entered. Data terminates when 000 is entered for. A number

Answers

Answer:

Explanation:

The following code is written in Java and asks the user to input a sequence of numbers separated by pressing the "ENTER" key and typing 000 to terminate the sequence. It saves all those numbers in an ArrayList and then goes through the Array to find and print the max number.

public static void MaxNumber () {

           Scanner in = new Scanner(System.in);

           System.out.println("Enter a as many numbers as you want seperated by the Enter Key... type 000 when done. ");

           ArrayList<Integer> numbers = new ArrayList<>();

           int exit = 1;

           while (exit != 000) {

               exit = in.nextInt();

               numbers.add(exit);

           }

           int max = 0;

           for (int x = 0; x < numbers.size(); x++) {

               if (numbers.get(x) > max) {

                   max = numbers.get(x);

               }

           }

           System.out.println(max);

       }

Pleaseee Help!!!!

What industry holds a significant place in the commercial phere of economies all over the world due to factors such as the growing variety of game hardware and peripheral devices, emerging markets, and increasingly diversified demographics?

A)The Medical software industry

B)The video game industry

C)The graphic artistry industry

D)The international travel industry

Answers

Answer: B
Hope this helps!!
And do you want an explanation?

What the function of a css page

Answers

Answer:

Css is used to define styles for your Web pages including the design layout and variations in display for different devices in screen sizes

Lavanya is shopping for her first house. At an open house, a real estate agent calls the house a "smart home" and explains that all of the home appliances are also computing devices that are connected together in a computer network. What is the benefit of networking the devices together?

Answers

Answer:

Networking devises are advanced devices and are smart appliances.

Explanation:

Networking the home devices or appliances has many advantages. In the context, Lavanya who is shopping for her first house meets a real estate agent who explains that all the home appliances are computing device sand are connect to a computer network.

The benefits of networking the devices are :

1. They can be easily accessible or manage from an outside source.

2. They are smart devices and can operate at minimum power consumption and better efficiency with proper inputs from the user.

3. They can create a simplified method of the network management. These devices are malware scanners. They can keep the devices safe from damage and malware.

A chatbot is a computer program designed to emulate human conversation. For this program, you will use if statements, user input, and random numbers to create a basic chatbot.

The Scenario
You have decided to start a website and are creating a chatbot prototype to show investors so you can raise money and launch your website.

Your chatbot should ask the user the following (minimum requirements for the grader) and then give answers depending on the answers the user inputs:

at least 5 questions
at least 2 if-elif-else statements
the use of the random module and randomly generated numbers
Based on these criteria, some responses will be based on what the user types and some will be based on random numbers.

For example, if the chatbot asks how the user is doing, your chatbot might respond I’m sorry to hear that. in response to a user input of sad, or That's great! in response to a user input of happy.

Additionally, you could also have a random number generated between, say, 1 and 3 and have a corresponding response depending on the number to randomly answer with That is great to hear. or So interesting., and so on.

Sample Run
Please note that due to the infinite possibility of questions that can be asked, your program will be different—this is only one example.

What is your first name?

Pascal

What is your last name?

Smith

Hi there, Pascal Smith, nice to meet you!


How old are you?

17

17 is a good age.

You are old enough to drive.


So, Pascal, how are you today?

Happy

You are happy.

That is good to hear.

Tell me more.


I am just happy.

That's good to hear.


Well, Pascal, it has been nice chatting with you.

Answers

In python:

import random

good_responses = (["That's cool!", "Wow!", "That's great to hear!", "Tell me more"])

bad_responses = (["I'm sorry", "That sucks!"])

first_name = input("What's your first name? ")

last_name = input("What's your last name? ")

print(f"Hello {first_name} {last_name}, nice to meet you!")

age = int(input(f"How old are you, {first_name}? "))

if age > 17:

   print("Wow, you're old enough to vote!")

else:

   print("Quite young, aren't you.")

color = input("What's your favorite color? ")

print(good_responses[random.randint(0,3)])

feeling = input("How are you feeling? (sad/happy) ")

if feeling == 'sad':

   print(bad_responses[random.randint(0,1)])

else:

   print(good_responses[random.randint(0,3)])

print(f"It's been nice chatting with you, {first_name}!")

I hope this helps!

In this exercise we have to use the knowledge of computational language in python to write the code.

This code can be found in the attached image.

To make it simpler the code is described as:

import random

good_responses = (["That's cool!", "Wow!", "That's great to hear!", "Tell me more"])

bad_responses = (["I'm sorry", "That sad"])

first_name = input("What's your first name? ")

last_name = input("What's your last name? ")

print("Hello {first_name} {last_name}, nice to meet you!")

age = int(input(f"How old are you, {first_name}? "))

if age > 17:

  print("Wow, you're old enough to vote!")

else:

  print("Quite young, aren't you.")

See more about python at brainly.com/question/22841107

what human-readable data

Answers

Explanation:

what?? there is no question

Answer: A human-readable medium or human-readable format is any encoding of data or information that can be naturally read by humans.

Prior to ____ contribution, all programs were hardwired into the computer. His architecture is used in almost all computers today.

.William Shockley
. Bill Gate
. Steve Job
. John Neman

Answers

Answer:

John von Neumann (Last option)

Explanation:

Which function is used to add a range of cells?
A) =SUM
B) =AVERAGE
C) =MAX
D) =ADD

Answers

Answer:

Sum

Sum a range of cells -- SUM Function

The quickest way to sum a range of cells is to use the AutoSum button. It automatically enters a SUM function in the selected cell. The SUM function totals one or more numbers in a range of cells.

Explanation:

The answer is "Option A" because it is used for adding the range of the cell, and the further explanation can be defined as follows:

The AutoSum button was its fastest way to add up a range of cells in Excel. It automatically inserts a SUM function into the specified cell. The SUM function sums up one or more numbers inside a range of cells. SUM function combines numbers together. Numbers can be added individually, as well as numerical values and ranges.

The wrong solution can be defined as follows:

In option B, it is used to calculate the average of the value.In option C, it is used to calculate the maximum number in the among values.In option D, it is used to calculate the Autosum.

Therefore "Option A" is the correct choice.

Learn more:

Excel function: brainly.com/question/10307135

Was a first to invent rule applied to patents filed before March 16th, 2013?

Answers

Answer:

No read # 1

Explanation:

the three major changes in the New Law which have heightened the importance of early filing are 1) the first party to file an application on an invention is entitled to a patent that issues on the invention, regardless of who is first to invent; 2) the important date for most prior art activities and documents becomes the filing date of an application as opposed to the date of invention as under the pre-March 16, 2013 law (Current Law); and 3) the general one-year grace period that currently allows an inventor to file a patent application within one year of a public disclosure, sale or offer for sale of an invention is eliminated. These three changes are explained in more detail below.

Match each career with the education that the job requires.
pipe fitter
food scientist
electrician
jeweler and metal worker
training and a test on electrical codes to become licensed
arrowRight
training and an apprenticeship
arrowRight
trade school that the Gemological Institute of America accredits
arrowRight
a doctorate-level (Ph.D.) degree

Answers

Pipe fitter requires training and an apprenticeship.
Food scientist requires a doctorate-level (Ph.D) degree.
Electrician requires training and a test on electrical codes to become licensed.
Jeweler and metal worker requires trade school that the Gemological Institute of America accredits.

Answer:

training and a test on electrical codes to become licensed - electrician

training and an apprenticeship - pipe fitter

trade school that the Gemological Institute of America accredits - jeweler and metal worker

a doctorate-level (Ph.D.) degree - food scientist

WILL MARK BRAINLIEST PLZ ANSWER WITH EXPLANATION.

Answers

The best possible search option will be integrated development environment.

In the software world, we shorten integrated development environment with the acronym, IDE. We use IDE's to develop software.

I WILL MARK BRAINLIEST PLZ ANSWER

Answers

A string is used to hold words and phrases, therefore, Maria should use a string variable.

Which application software would a teacher use to compute a student's course percentage?

a. presentation software

b. word processors

c. spreadsheets

d. database

Answers

Answer:

spreedsheet

Explanation:

This would help them easily average grades

The system tray contains

the operating system

the computer's hard drive

the battery life

Quick Launch


Please answer quickly, will give brainliest when I can.

Answers

Answer:

Quick Launch

Explanation:

The system tray contains Quick

Launch

I hope you will give brainliest

Answer:

Quick Launch

Explanation:

answer is A and D if not try something else

Answers

did you mean to answer someone's question

Spend some time exploring the components inside of a computer by performing online research into the topic. You can begin with this link, What does the inside of a computer look like?, and then continue to explore other websites of your own finding to answer the questions below, if needed.
How do you think the computer components would change if you were looking at a tablet computer or a smartphone?
What is one major component that would not be found in a tablet or phone, and how has modern computing made that component less important?
What component is in a tablet or phone that wouldn’t have been in a desktop (remember, you can search online for ideas)?

Answers

Answer:

1.         Chassis (case)

Data cable: (IDE, SATA)

Disc drive: CD-ROM, CD-RW, DVD-ROM, or Blu-ray.

Expansion card (ISA, PCI, AGP, and PCI Express).

Fan (Heat sink)

Floppy drive

Hard drive: HDD, SSD

Memory (RAM)

Motherboard

Power cable (Molex)

Power supply (PSU)

Processor (CPU)

The expansion cards are often devices such as your video card, sound card, network card, etc.

It is common for a computer today to have these components built into the motherboard, also referred to as integrated components.

Network card

Sound card

Video card

What parts are needed for a computer to work?

CPU (processor)

Memory (RAM)

Motherboard

Storage device (e.g., hard drive)

2.         Smartphones and tablets have less storage capacity than a computer, and their components cannot be modified like a desktop computer's can. Desktop and laptop computers can run more powerful software than a smartphone or tablet due to their size, components, and less restrictive power requirements.

3. A hard drive

Since tablets and phones are compact, they are better off not having a big, giant, bulky storage device like hard drives. Modern computing made hard drives less important by developing Solid-State Drives (SSDs) and extremely dense (512 bit) storage that can provide the same if not more storage than a traditional hard drive at the fraction of the size.

4.  Since tablets and phones are mobile devices, they would be outfitted with a GPS (Global Positioning System) so that location services would work with them. Desktops do not usually have GPS components.

Explanation:                            / \

I already explained up above. |

The parts that are needed for a computer to work are:

CPU (processor)Memory (RAM)MotherboardStorage device (e.g., hard drive)

What is a computer?

A computer is an electronic device for storing and processing data according to instructions given to it in a variable program.

It is common for a computer today to have these components built into the motherboard, also referred to as integrated components.

Desktop and laptops can run more powerful software than a smartphone due to their size, components, and less restrictive power requirements.

Learn more about computer on:

https://brainly.com/question/24540334

#SPJ2

Other Questions
Can ya'll pls write a fable without copying it from somewhere?25 POINTS, I WILL MARK THE BETTER ONE AS BRAINLIEST Which of the following indicates the most basic solution?A. [H+] = 1 10-10 MB. pOH = 6.7C. [OH-] = 7 10-5 MD. pH = 4.2 African's Role in age of exploration I give brainliest Can someone please help me... mi madre el peridico a) leb) leyc) lested) leyeron Why is forward blood flow important for the circulation process? Check all that apply.It ensures that the circulation process is successful.It ensures that oxygen-rich blood is delivered to the body.It ensures that oxygen-depleted blood is returned to the lungs.It prevents the closure of arteries. 2x(9+4). Plz help!! Im not good at math What is the definition of imperialism?a strong belief in the superiority of one's culture over othersa nation's rule by a monarch, emperor, or other powerful leadera country's political, economic, and social domination over anotheran intense sense of devotion to one's own country or people Drag each tile to the correct box. Not all tiles will be usedThe owner of a small sandwich shop is adding sauces to the list of choices for his customers because he believes the variety will bring in morecustomers. He is training his staff. After the bread is selected, what order should the sandwiches be assembled to avoid cross-contamination?1. Vegetables2. Meats and cheeses 3. Special sauces Paragraph 1: Describe the basic personalities of both characters. Explain similarities between the two works, and between the two authors. Use clear transitions between ideas! Dracula is the most famous vampire in history. Voldemort is the villain in J.K. Rowlings Harry Potter series. The two have quite a bit in common. Both characters the greater the variety of species the _ the ecosystem? what is (-2)(-5) equal? Brian and Clara paid $4,350 in foreign income taxes to Mexico. Their total income was $105,000, which included $16,000 of foreign income. Their U.S. tax liability is $22,750. How much can Brian and Clara claim as foreign tax credit The strength of the temperance movement came from . BUILDING CODE A city has a building code that limits the height of buildings around the central park . The code says that all buildings must be less than 0.1x in height where x is the distance of the building from the center of the park and y is height in feet. Assume that the par center is located at 0. Write an inequality that represents the building code (1 pt) The narrator states that Dr. Taylor's work seems like it's from the "realms of science fiction." What did she mean by this statement? Describe a sequence of rigid transformations that will take zigzag ABCD ontozigzag EFGHplease help me Which word does not belong?quizsqucualquin What is the number 98.907 called? *1 point43cTechnetium98.907atomic numberatomic masselement symbolelement name Prices of zero-coupon bonds reveal the following pattern of forward rates: Year Forward Rate 1 6 % 2 8 3 9 In addition to the zero-coupon bond, investors also may purchase a 3-year bond making annual payments of $50 with par value $1,000. a. What is the price of the coupon bond?