Describe a situation when you would use a conditional statement in a program. Describe the action that would occur when the conditional statement is true and when it is false.

Answers

Answer 1

Answer:  Conditional statements are just true false statements

Explanation:

Let's say there's a kpop band burglarizing my house and I have a super AI that detects if a kpop band is my house through cameras. What it would do is change a variable "kpopBandInHouse = False" to True. I would then have an if statement next with a custom function:

if kpopBandInHouse == True:

   nukeHouse()

So if the conditional statement is true, it nukes my house. It is false, it does not nuke my house.

Answer 2

Conditional statements let you make a choice depending on certain conditions. These results are defined by one set of conditional statements which contain boolean expressions which are evaluated to a correct or incorrect boolean value, and the further calculation can be defined as follows:

Program Explanation:

Defining a header file.Defining the main method.Defining an integer variable "n" that initializes the value that is "1".Defining a conditional statement that checks "n equal to 1", when it's true it will print the message.  

Program:

#include <iostream>//header file

using namespace std;

int main()//main method

{

   int n=1;//defining integer variable n that initlize the value 1

   if(n==1)//defining if block that checks n value equal to 1

   {

   cout<<"Hello World";//print message

   }

   return 0;

}

Output:

Please find the attached file.

Learn more:

brainly.com/question/10714086

Describe A Situation When You Would Use A Conditional Statement In A Program. Describe The Action That

Related Questions

Pls help me computer science discoveries

Answers

Answer:

jdinwoahdjsioadjsakodsiaohdeioajfnsohfujkdshksyfneowjdfikdjiadjsadhnsuidghaiudbnha

Explanation:

What are the different data types that a variable can be in computer programming?

Answers

Answer:String (or str or text)

Character (or char)

Integer (or int)

Float (or Real)

Boolean (or bool)

Explanation:

(in PYTHON) Write a function in REPL.it that uses three parameters, and squares the first, calculates mod 5 of the second parameter, and quadruples the third parameter. The function should be called, and that value stored in a variable, and then outputted using the print( ) function.

Answers

Answer:

I wrote this myself, it should be working. I think this is what the instructions were looking for.

The code below should return

Squared: 1296  

Mod: 0        

Quadrupled: 16

Explanation:

def threeParams(squared, mod, quadruples):

   array = [squared, mod, quadruples]

   array[0] = squared ** 2

   array[1] = mod % 5

   array[2] = quadruples * 4

   return array

valueArr = threeParams(36, 15, 4)

print(f"Squared: {valueArr[0]}\nMod: {valueArr[1]}\nQuadrupled: {valueArr[2]}")

Which of the following describes how modern operating systems function?: A
They use punch cards to store and retrieve data.

B
They manage hardware and resources.

C
They handle one task at a time.

Answers

Answer:

Try B

Explanation:

Ill give 100 points to whoever gives me the CORRECT answer. I keep getting syntax errors when I do the "add:" part. Can someone walk me through this code?
Part A One of the biggest benefits of writing code inside functions is that we can reuse the code. We simply call it whenever we need it! Let’s take a look at a calculator program that could be rewritten in a more reusable way with functions. Notice that two floats (decimal numbers, but they can also include integers) are inputted by the user, as an operation that the user would like to do. A series of if statements are used to determine what operation the user has chosen, and then, the answer is printed inside a formatted print statement. num1 = float(input("Enter your first number: ")) num2 = float(input("Enter your second number: ")) operation = input("What operation would you like to do? Type add, subtract, multiply, or divide.") if operation == "add": print(num1, "+", num2,"=", num1 + num2) elif operation == "subtract": print(num1, "-", num2,"=", num1 - num2) elif operation == "multiply": print(num1, "*", num2,"=", num1 * num2) elif operation == "divide": print(num1, "/", num2,"=", num1 / num2) else: print("Not a valid operation.") Your job is to rewrite the program using functions. We have already looked at a function that adds two numbers. Using that as a starting point, we could call the add function from within our program in this way: if operation == “add”: result = add(num1, num2) print(num1, "+", num2,"=",result) Now it’s your turn to do the following: Type all of the original code into a new file in REPL.it. Copy the add function from the unit and paste it at the top of your program. Write 3 additional functions: subtract, multiply, and divide. Pay careful attention to the parameters and return statement. Remember to put the three functions at the top of your Python program before your main code. Rewrite the main code so that your functions are called. Part B There are many different ways that a user could tell us that he or she would like to add two numbers in our calculator program. The user could type “add”, “Add”, “ADD”, or “+”, to name a few possibilities. Of cour

Answers

Answer:

sorry but there is not enough information to complete this

Explanation:

working on rewriting my code so i can paste it here! itll be done in a sec

You develop an app, and you don’t want anyone to resell it or modify it. This is an example of: A
an operating system.

B
open source software.

C
proprietary software.

Answers

Answer:

C, proprietary software

Explanation:

Proprietary software, also known as non-free software, is computer software for which the software's publisher or another person reserves some rights from licensees to use, modify, share modifications, or share the software. It sometimes includes patent rights.

8.7 Code Practice: Question 2 edhesive

Answers

In this exercise we have to have knowledge of computational language in python, so we find the code.

How to define list in Python?

In Python, a list is represented as a sequence of objects separated by commas and enclosed in square brackets [], so an empty list, for example, can be represented by square brackets without any content.

So, to make it simpler, the code can be found below as:

w = ["Algorithm", "Logic", "Filter", "Software", "Network", "Parameters", "Analyze", "Algorithm", "Functionality", "Viruses"]

for x in w:

if(x[0]=='A'):

print(x)

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

Answer:

w = ["Algorithm", "Logic", "Filter", "Software", "Network", "Parameters", "Analyze", "Algorithm", "Functionality", "Viruses"]

for i in range(len(w)):

     if w[i][0] == "A":

               print (w[i])

Explanation:

A constructor must have a return statement.

True

False

Answers

Answer:

False

Explanation:

this is false not true

Personal digital assistants are: Group of answer choices artificial intelligence systems that leverage rules or examples to perform a task in a way that mimics applied human expertise. handheld computing devices meant largely for mobile use outside an office setting. systems that provide rewards and usage incentives, typically in exchange for a method that provides a more detailed tracking and recording of customer activity. small chip-based tags that wirelessly emit a unique identifying code for the item that they are attached to. transaction processing systems that capture customer purchases.

Answers

Answer:

its about digital science

Explanation:

List the two page orientations in Microsoft word​

Answers

Answer:

Portrait and landscape

Explanation:

please rate brainiest for my progression

You want to use the sleep function in your program and only the sleep function. The following line of code will allow you to do so.
time import sleep

Answers

Answer:

from time import sleep

Explanation:

Not sure what the question is, but assuming the question is "How would you import only sleep from time?" and the language is python, this is the answer.

Describe how you will lunch a web browser using the start menu​

Answers

Answer:

The steps are described as follows:

Click on the start menu button on your keyboardPlace the mouse pointer in the search areaType in the name of the browser (eg. Microsoft Edge or Internet Explorer etc.)Press enter on the keyboard or you click open/startWait, while the browser opens

Explanation:

The steps are self-explanatory

Answer:

Kindly check explanation

Explanation:

To launch a web browser using the start menu:

Click on the windows icon or start menu to open a search option, then type the name of your preferred browser, maybe Chrome, Firefox, safari, explorer or any other. Once the appropriate searched item pops up, place the cursor on the appropriate or preferred browser icon. Once the cursor is on the browser icon, you can either left click on the muse to display the available options, the right click on launch or start on the menu displayed. OR you can double click the the right side of the mouse to launch directly.

Which property do you use to align an element horizontally with the left or right edge of its parent element?
A.) position
B.) z-index
C.) float
D.) clear

Answers

A thank me later:) give me hearts

Which types of computer hardware are internal?

Answers

Answer:

Here are some :) (sorry if there are too many)

Explanation:

RAM (Random Access Memory): It's a fast-access memory that is cleared when the computer is powered-down. RAM attaches directly to the motherboard, and is used to store programs that are currently running.

Video Card/GPU (Graphics Processing Unit): It's a specialized processor originally designed to accelerate graphics rendering.

Sound Card: USB sound "cards" are external devices that plug into the computer via USB.

Storage: SSD (Solid State Drive): It is a data storage device that uses solid-state memory to store persistent data.

HDD (Hard Disk Drive): It is a non-volatile storage device which stores digitally encoded data on rapidly rotating platters with magnetic surfaces. Just about every new computer comes with a hard disk these days unless it comes with a new solid-state drive.

CPU (Central Processing Unit/ sometimes just called a processor) It's a machine that can execute computer programs, and sometimes called the brain of the computer.

Motherboard: The motherboard is the body or mainframe of the computer, through which all other components interface. It is the central circuit board making up a complex electronic system.

Firmware: Firmware is loaded from the Read only memory (ROM) run from the Basic Input-Output System (BIOS). It is a computer program that is embedded in a hardware device, for example a microcontroller.

Power Supply: The power supply as its name might suggest is the device that supplies power to all the components in the computer.

CD-ROM Drive: There are two types of devices in a computer that use CDs: CD-ROM drive and a CD writer. The CD-ROM drive used for reading a CD. The CD writer drive can read and write a CD.

Floppy Disk: A floppy disk is a type of data storage that is composed of a disk of thin, flexible(“floppy”) magnetic storage medium encased in a square or rectangular plastic shell.

Internal Storage: Internal storage is hardware that keeps data inside the computer for later use and remains persistent even when the computer has no power.

Disk Array Controller: A disk array controller is a device which manage the physical disk drives and presents them to the computer as logical units.

On some computers the speakers are internal as well. :)


1. Using a microphone to create an audio file to accompany a message is an example of how data is processed and sent to an output device. true/false?

Answers

Answer:

I would say true.

Based on what you know about the Sort and Find functions, return to the database file to determine the answers to the following questions.

In which year did most people update their contact information?

1988

2010

2011

2012

Answers

Answer:

2010

Explanation:

Most of the people updated their information in the database in the year 2010. The database files have different functions which enable the sorting of data according to the contact information with year wise filter.

Answer:

It’s 2012

Explanation:

Using complete sentences post a detailed response to the following.

Why do you think coding languages generally include the ability to create comments? What would those comments be used for? Include both how they can help a single developer and how they would help multiple developers working together on a single project.

Answers

Answer:

java or python

Explanation:

Jessie will make and sell the trending Baked California Maki. Her Peso mark up is 5.00. Selling price PHP 15.000. How much will be the Paercentage mark up?Use the formula Percentage mark up= Peso markup/selling price. *

Answers

Answer:

50%

Explanation:

The markup is the difference between the selling price and the cost price. If the mark up is greater than zero, it means there is a profit, if the markup is less than 0, it means there is a loss and if the markup is equal to 0, it means there is breakeven.

Percentage markup = (markup/cost price) * 100%

Selling price - cost price = markup

15 - cost price = 5

cost price = 10

Percentage markup = (markup/cost price) * 100% = (5/10) * 100% = 50%

(Java)
The extends keyword is used to:

a. to copy a parent class

b. to get access to methods and constructors of a parent class

c. make an int longer

Answers

The answer is c your welcome
ASMWER is 2
Because u wouldn’t want to copy a parent class for sure so that’s out of the option!

what is computer give definition ​

Answers

Answer:

computer is

an electronic device for storing and processing data, typically in binary form, according to instructions given to it in a variable program.

an electronic device for storing and processing data, typically in binary form, according to instructions given to it in a variable program.

how do hand tools,Farm implements and farm equipment differ from one another

Answers

Farm equipment helps the workers with the work they are already doing and farm implements do the work in there own

Elige una metodología presentada en la lectura para aplicar la prospectiva (Método Delphi o Construcción de escenarios) y de manera gráfica represente cada metodología y sus fases.

Answers

Answer:

Método Delphi

Explanation:

El método Delphi es un método experto que se ha utilizado ampliamente en la investigación de futuros. En la actualidad, el método Delphi involucra típicamente de 15 a 40 expertos en dos o tres rondas.  

La selección de un panel de expertos que represente de manera integral a las partes interesadas relevantes es un paso crucial en el estudio. La primera ronda, a menudo realizada a través de entrevistas, busca preguntas relevantes y motiva al panel a seguir trabajando. En la siguiente ronda, los panelistas evalúan las declaraciones prospectivas y justifican sus respuestas con diferentes perspectivas. Una característica clave del método es dar respuestas sin nombre, es decir, de forma anónima.

El método Delphi es especialmente adecuado para tratar un tema complejo o que cambia rápidamente, para el cual se pueden identificar expertos o partes interesadas (como ciertos grupos de población) u organizaciones (desarrollo tecnológico, problema social) que estén particularmente familiarizados con él.

El proceso Delphi produce una variedad de perspectivas, hipótesis y argumentos que se someten a pruebas y argumentaciones de expertos abiertos. El proceso busca filtrar las opiniones en opiniones de la comunidad compartidas o disidentes. Ambos resultados son valiosos. Puede haber desacuerdo no solo sobre los argumentos sino también sobre los objetivos, la probabilidad y la conveniencia de las alternativas.

Program with variables upload instructions

Answers

Answer:

Here, I made sure to incorporate variables just in case. You could change it to whatever you need.

Explanation:

v1 = "Hello world!"

v2 = "Spam"

v3 = "Eggs"

v4 = "SpamEggs"

v5 = "Spam Eggs"

v6 = "Spam Eggs"

v7 = 7.9

v8 = 20

v9 = 13

v10 = 5

v11 = 13

v12 = 10.8

v13 = 2.7

print(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13)

if you don't want it all on one line you could just print each variable individually :)

Answer:

Print(“Hello World!”)

Print(“Spam”)

Print(“Spam+Eggs”)

Print(“Spam Eggs”)

Print(“Spam Eggs”)

Print(“7_9”)

Print(“2”+”0”)

Print(“1”+”3”)

Print(“5”)

Print(“1”+”3”)

Print(“1”+”0”+”.”+”8”)

Print(“2”+”.”+”7”)

Explanation:

I think i did it lol, not sure

9. Draw a flowchart to find the area of rectangle. (A = /B* H)
1 Add File​

Answers

Answer:

See Photo

Explanation:

Area of rectangle = length * width

---- According to problem: A = /B*H

---------Note: Dropped the "/", if needed just change what happens in the diamond

ways to be your best digital self?

Answers

To be your best digital self just remember that everything you do on the internet STAYS on the internet. There’s no way around it. Be mindful of what you post, say, and do online. Don’t let that, however, stop you from showing something you love to do or talking about something you’re interested in. Being your best digital self requires restraint and knowledge. Think to yourself, do I really want to send this message? this picture? this threatening message? Be safe rather than sorry. Don’t let that stop you from being you. Have fun :) !

You are the administrator for a small network. You have approximately 50 users who are served by a single Windows server. You are providing Active Directory, DNS, and DHCP with this server. Your clients all use Windows workstations. Last week, an employee quit. A replacement has been hired and will be starting next Monday. The new user will need to have access to everything the previous user had, including document files held in the Home folder. You need to set up an account for the new user that all the access required. What should you do?

Answers

Answer:

Rename the existing account, and change the name fields to match the new employee.

Explanation:

As you appoint new employer that need all the access to everything that the previous user had, including the documents files held in the Home Folder.

So, As an administrative of the network, you should Rename the existing account, and change the name fields to match the new employee.

Need help with the last one or if I got the others wrong

Answers

i think the answer would be c? if im wrong my apologies.

After reading his e-mail messages, Orlando became very frustrated. Many of the messages he received did not conform to netiquette guidelines. He knew his productivity was being decreased because he wasted time reading these messages. Out of the four messages Orlando read, only one followed the rules. The text of the messages appears below. Which is an appropriate message for the workplace?

Answers

Answer:

We need to talk about the project, please call me.

Explaination:

edge 2021

Son los inventarios en proceso que hacen parte de la operación en curso y que se deben tener en cuenta antes de empezar a transformar el material directo.

Answers

Answer:

When an inventory is purchased the goods are accounted in the raw material but when this raw material is to be converted in finished goods it is transferred from raw material to processing of raw material into finished goods and when the process is completed when the raw material turns into finished goods the goods are then accounted for as finished goods.

Explanation:

When an inventory is purchased the goods are accounted in the raw material but when this raw material is to be converted in finished goods it is transferred from raw material to processing of raw material into finished goods and when the process is completed when the raw material turns into finished goods the goods are then accounted for as finished goods.

Use the drop-down menus
to complete the steps for reducing the mailbox server storage,
1. To access Mailbox Cleanup tools, navigate to_____the tab, and click Cleanup Tools.
2. Once in the Mailbox Cleanup dialog box, there are different options to choose from, such as_____________
or Empty Deleted Items,
3. The____________
function moves items off the server to an online Office 365 folder.

Answers

1. enter back stage view

Answer:

1. File

2. AutoArchive

3. Online Archive

Explanation:

Other Questions
Jason wants to mow his rectangular lawn. If his lawn is 15 feet by 25 feet howmany square feet does he have to mow? How do the senate districts of Louisiana differ from thehouse districts?There are more senate districts than house districts,There are fewer senate districts than house districts,Senate districts are smaller in size than housedistricts.Senate districts have fewer residents than housedistricts. Reading a poem out loud allows the listener to do which of the following 6(s-9) simplify the expression Find the length of CA to the nearest tenth of a foot What three adjectives would you use to describe the human race? If you help I'll mark as brilliant!!! help please !!What did the North and South disagree on?1. the power of county law2. the power of city law3. the power of federal law List four broad goals of healthy people 2020 The Four Freedoms . What is the main point of this address? What is the correct article for these words An increase in food and a decrease in predators would most likelygenetic variation in a population.whats the answer to put in the blank Jim was thinking of a number. Jim divides by 8, then adds 9 to get an answer of 6. What was the original number? What is this!! Thank you to whoever will help me HELP ME ASAP PLEASE PLEASE HELP ME #2 A truck is being filled with cube-shaped packages that have side lengths of \frac{1}{4} 41 foot. The part of the truck that is being filled is in the shape of a rectangular prism with dimensions of 8\ \mathrm{ft}\times 6\frac{1}{4}\ \mathrm{ft}\times 7\frac{1}{2}\ \mathrm{ft}8 ft6 41 ft7 21 ft. find the missing side length Select two correct answers.What are two methods for beginning the constitutional amendment process?A. An amendment is proposed by a vote of two-thirds of all registered voters in a general federal election.B. An amendment is proposed by two-thirds of the states through a national constitutional convention.C. An amendment is proposed by two-thirds of the state legislatures and state convention attendees.D. An amendment is proposed by a vote of two-thirds of the members of both houses of Congress. An igloo has a circular floor with a diameter of 4 yards. What is the floor's area? Use 3.14 for Caught up in their game, they didn't keep an eye on where they were going or how farthey had gotten from the group.What kind of figurative language does this excerpt use?Please answer for the crown :)