You want to check whether a condition has been met, and if it has, perform one action. Otherwise, you want your program to perform a second action. What sort of programming operation would help achieve this

Answers

Answer 1

The  sort of programming operation that would help achieve the above work is Conditional Branch.

What is conditional branching?

A conditional branch is known to be an instruction in a computer. Note that this is a branch instruction that can or cannot give or make a transmission of control that depends on the value of stored bits in the PSR.

It is known to help in decision-making duties in the control unit and it is a kind of programming operation that would help achieve the above work.

Learn more about programming  from

https://brainly.com/question/22654163


Related Questions

_____ is the process of setting up a program or app to work with your computer, mobile device, and other hardware

Answers

Answer:

Installation

Explanation:

whenever you download a program like firefox you have to install it to use it first

Select the correct answer.
John recently worked on a project about various programming languages, He learned that though procedural language programs are useful,
they have disadvantages too. What is a disadvantage of programs written in procedural languages?
OA. Programs do not represent data complexity.
OB. Programs take more time to execute.
OC. Programs are prone to security threats.
OD. Programs do not interface with multiple platforms,

Answers

OA. programs do not represent data-rate to xomolemrixjf complexity

unit 9 assignment edhesive

Answers

The program is an illustration of functions, that involves a group of code segments that are executed when called or evoked

The calendar program

The calendar program in Python, where comments are used to explain each line is as follows:

#This checks for leap year

def leap_year(y):

  if y % 4 == 0:

      return 1

  else:

      return 0

#This returns the number of days in the month

def number_of_days(m,y):

  if m == 2:

      return 28 + leap_year(y)

  elif m == 1 or m == 3 or m == 5 or m == 7 or m == 8 or m ==10 or m == 12:

      return 31

  elif m == 4 or m == 6 or m == 9 or m == 11:

      return 30

#This returns the number of days left in the month

def days(m,d):

  dayList = [0,31,59,90,120,151,181,212,243,273,304,334]

  return dayList[m-1] + d

#This returns the number of days left in the year

def days_left(d,m,y):

  if days(m,d) <= 60:

      return 365 - days(m,d) + leap_year(y)

  else:

      return 365 - days(m,d)

#The main begins here

#This next three lines gets input for date

day=int(input("Day: "))

month=int(input("Month: "))

year=int(input("Year: "))

#This gets the choice from the user

menu=int(input("Press 1 to calculate the number of days in the given month.\nPress 2 to calculate the number of days left in the given year.\nChoice: "))

#This prints the number of days in the month

if menu == 1:

  print(number_of_days(month, year))

#This prints the number of days left in the year

elif menu == 2:

  print(days_left(day,month,year))

Read more about Python functions at:

brainly.com/question/14284563

a computer can function in the absence of software true or false​

Answers

Answer:false

Explanation:

it’s false, but it doesn’t have to be a complete operating system.

What is an example of static we page?

A. the About Us page
B. the current affairs page
C. the ads in a website
D. the weather ticker

Answers

I’m pretty sure it’s B I hope this help you and I’m sorry if I got it wrong

Which type of document would be best created in Word? HELLP!!!!


Spreadsheet

Resume

Presentation

Animation

Answers

Answer: The answer is Resume

Explanation: I had this question on a quiz of mine and got the question right! Trust me it’s the right answer

It should be noted that the type of document would be best created in Word is B:Resume.

Documents serves as piece of written or electronic matter which gives information, one of this document is a resume.

A resume can be regarded as formal document which is been presented by job applicant to the employers, it itemize qualifications of the applicants for a position.

We can conclude that Microsoft word which is computer program can be used to create this resume.

Learn more about resume at:

https://brainly.com/question/800048

why are wiki's not secure​

Answers

Wikipedia is not a reliable source for citations elsewhere on Wikipedia. Because, as a user-generated source, it can be edited by anyone at any time, any information it contains at a particular time could be vandalism

Creating a single Scanner object in main() and passing the object to other methods is considered good practice because _____

Answers

Creating a single Scanner object in main() and passing the object to other methods is considered good practice because to it help to make subsequent reads faster and when a method needs to read user input.

Why do we pass system in Scanner?

Scanner class is known to be one that allows the user to take input from console. It helps one to know the java compiler that system input will be given via console(keyboard).

When a method is said to needs to read user input, a good thing to do is to form a single Scanner object in main() and then one has to move that Scanner object to the method.

Learn more about Scanner from

https://brainly.com/question/24937533

Indonesia is planning to move its capital from Jakarta to the island of Borneo in the hope that the burden of congestion, regular flooding and sinking will be reduced.

Discuss the issues that need to be considered in terms of Ethical; Environmental; Legal and Cultural for both the inhabitants of Jakarta and the Island of Borneo.

This is an essay question I have very little time to complete. First decent answer gets crown.

Answers

Answer:

Indonesia's capital has just been relocated from Jakarta to a site within the jungle of Kalimantan on Borneo island after parliament approved the bill. It will strengthen supply chains and place Indonesia "in a more strategic position in world trade routes, investment flows, and technological innovation."

Explanation:

mark as brainiest

Answer:

President Joko Widodo first announced the plan to move Indonesia's capital in 2019, in an effort to relieve the huge environmental challenges facing Jakarta, and to redistribute wealth. Indonesia's legislature on Tuesday passed a bill that creates the legal framework for moving the country's capital from Jakarta — a sinking, congested, polluted and flood-prone megacity with more than 10 million residents — to the jungles of Kalimantan, on Indonesia's portion of the island of Borneo.

Explanation:

hope you like it, brainliest is an option :)

What are merge fields?


Answer is "What are merge fields?"

Answers

Answer:

A merge field is a field you can put in an email template, mail merge template, custom link, or formula to incorporate values from a record. For example, you can place a merge field in an email template so that the greeting includes the recipient's name rather than a generic “Hello!”.

Please help me with this nowwwww!!!!!
In your opinion, what is one BENEFIT of artificial intelligence and should we be scared of the future with super-intelligent artificial intelligence?

Answers

Answer:

Benefit: Artificial Intelligence is taking us to ground breaking levels in medicine and science

Negative: As Artificial inTelligence slowly becomes smarter it can take over jobs, which could lead to increased unemployment

Explanation:

Which type of protocol provides a way to transfer files from one computer to another over any tcp/ip network, such as a lan or the internet?.

Answers

Answer:

FTP (File Transfer Protocol) is a network protocol for transmitting files between computers over Transmission Control Protocol/Internet Protocol (TCP/IP) connections. Within the TCP/IP suite, FTP is considered an application layer protocol.

Explanation:

hope it helps you mark me as brainlist and follow me

why is the pc showing the same display on two monitors

Answers

[tex]Answer:[/tex]

Your computer is set to that by default. If you want the display to be separated, see what you can find in your settings[tex].[/tex]

If that doesn't work, try to find some reliable help on a browser search.

how to prepare balance sheet and distributor of capital=175000, land=125000, investment = 80000, accrued income =10000, bank overdraft =30000, debtor=35000, net profit =40000, wages payable =5000​

Answers

Answer:

add them all

Explanation:

A good first step to understanding any kind of text is to :
A. take careful notes
B. create meaning
C. focus on the details
D. find the main idea

Answers

Answer:

find the main idea

Explanation:

A CPU's job is to execute programs, which are made up of a series of individual operations called _________.

Answers

Answer: Instructions

Explanation: Common knowledge, plus i got it right on a test

Create a program that ask the user to enter the number of switches and calculates the

possible outcomes that can come from those many number of switches (on / off).

Follow the steps given below to achieve the desired result:

● Step 1​: Get the number of ​switches​ from the user and store it in a variable (lets

say ​switches).

● Step 2​: Initialize 3 variables ​max_poss = 2, ​i = 1 and ​power = 1, where,

○ max_poss = 2 denotes the maximum possibile outcome of 1 switch (i.e. ​on

and ​off​),

○ i is used to set the condition in ​while loop and it will keep incrementing

unless all the switches are over.

○ power variable is further used to store the result.

● Step 3​: Define a ​while loop with a condition to execute till the value of ​i is less

than or equal to ​switches.

● Step 4​: Inside the ​while loop,

○ Multiply the value stored in ​max_poss with ​power and store the result in

power.

○ Increment the value of ​i by ​1.

For eg: When ​switches = 2, In the

1st ​iteration, ​power = 2 and in the ​2nd​ iteration, ​power = 2 * 2 i.e. ​4. This indicates that, the

number of possible outcomes = ​2switches​, where ​switches denotes the number of

switches.

● Step 5​: Print the total number of possible outcomes stored in variable ​power.
plss help me with this​

Answers

In python:

switches = int(input("How many switches? "))

max_pos = 2

power = 1

i = 1

while i < switches:

power = max_pos * power

i += 1

print(f"The total number of outcomes is {power}")

I hope this helps!

Which action is taken by a layer 2 switch when it receives a layer 2 broadcast frame?.

Answers

Answer:

When a Layer 2 switch receives a frame with a broadcast destination address, it floods the frame to all ports except the port on which it received the frame.

Explanation:

Identify the part of the information processing cycle described by each of the items below. A student types text into a word processing program. The computer checks and compares all words entered to find misspellings. > The computer shows possible misspellings on the screen. You save the revised document to the hard disk. < CDs and DVDs are examples of DONE 4 of 7​

Answers

the answers are:

- input

- processing

- output

- storage

- storage

Answer:

- input

- processing

- output

- storage

- storage

Explanation:



What is a project?

Answers

Simply put, a project is a series of tasks that need to be completed in order to reach a specific outcome. A project can also be defined as a set of inputs and outputs required to achieve a particular goal. Projects can range from simple to complex and can be managed by one person or a hundred.

Are you a computer science student. And why?​

Answers

Answer:

Kind of, I like coding and helping people with python, etc.

Planning to learn C# soon.

I need sudo code! so that I can solve this question in PYTHON.

Answers

Coding:

   import java.util.ArrayList;

   import java.util.Comparator;

   import java.util.List;

   import java.util.Scanner;

   

   public class StuckInARutSilver {

   

       public static void main(String[] args) {

           Scanner in = new Scanner(System.in);

           List<Integer> eastCows = new ArrayList<>();

           List<Integer> northCows = new ArrayList<>();

           int n = in.nextInt();

           int[] xs = new int[n];

           int[] ys = new int[n];

           for (int j = 0; j < n; j++) {

               if (in.next().charAt(0) == 'E') {

                   eastCows.add(j);

               } else {

                   northCows.add(j);

               }

               xs[j] = in.nextInt();

               ys[j] = in.nextInt();

           }

           eastCows.sort(Comparator.comparingInt(j -> ys[j]));

           northCows.sort(Comparator.comparingInt(j -> xs[j]));

           boolean[] isStopped = new boolean[n];

           int[] amtStopped = new int[n];

           for (int j : eastCows) {

               for (int k : northCows) {

                   if (!isStopped[j] && !isStopped[k] && xs[k] > xs[j] && ys[j] > ys[k]) {

                       if (xs[k] - xs[j] > ys[j] - ys[k]) {

                           isStopped[j] = true;

                           amtStopped[k] += 1 + amtStopped[j];

                       } else if (ys[j] - ys[k] > xs[k] - xs[j]) {

                           isStopped[k] = true;

                           amtStopped[j] += 1 + amtStopped[k];

                       }

                   }

               }

           }

           for (int j = 0; j < n; j++) {

               System.out.println(amtStopped[j]);

           }

       }

   }

Explaination:

We can solve this problem by considering all pairs of a cow going east and a cow going north in order to determine which cow directly stops which other cow. Let's say the cow going east starts from (x,y) and the cow going north starts from (u,v). Their theoretical paths intersect if x<u and v<y, in which case they must intersect at (u,y). This means that, assuming both cows reach (u,y) (instead of being stopped earlier), the cow that reaches (u,y) first will stop the other cow (if they both reach at the same time, as per the problem statement neither one is stopped).

Therefore, in order to determine the stopping relations, you might naively loop through all pairs of eastward cows and northward cows and see which cows reach the intersection point first. However, this doesn't account for the fact that either one may have been stopped earlier.

A clean way to deal with this is to sort all eastward cows by their y and all northward cows by their x, then loop through all pairs of eastward and northward cows in this order. We then keep track for each cow of whether we know it is stopped and the amount of cows that we know it has stopped (directly or indirectly).

The sorting guarantees that each northward cow will be checked against the eastward cows in increasing order of when the northward cow would reach their intersection point, and similarly for the eastward cows. Because of this, when we check a pair of cows neither of which we know has stopped yet, we can be sure that both will reach the intersection point and thus the earlier one must have stopped the later one. We also know that this means that the later cow can't now reach any more intersections than it already has, so the amount of cows it has stopped is final and we can add it, plus 1 for that cow itself, to the count for the earlier cow. Note that with other approaches, it may be necessary to run a second pass of essentially a recursive depth-first search to identify and count sizes of "connected components" of stopped cows, in order to assign blame counts appropriately.

The complexity of sorting is O(NlogN), and looping through all pairs of northward and eastward cows is O(N2), so the overall complexity is O(N2). Solutions in O(N2logN) would also be fast enough.

Imagine that you had to pick a new song for the opening credits for spider man no way home. What song or piece of music would you choose and why?

Answers

Answer:

I would choose "Home" by Bebe Rexha, X Ambassadors, and more.

Explanation:

I think this because it talks about your place where you feel safe, a place you can take off the unbearable weight of stress, and more.

Have an amazing day!!

PLEASE RATE AND MARK BRAINLIEST!!!

Okay so I am using the OBS video recording software to record gaming videos but for some reason, it won't record sound. Do you know how to fix this?

I know this isn't exactly computer science or anything but still related to computers.

Answers

Answer:

It could be broken, your browser does not support it, or something in your settings may be blocking it.

According to my knowledge, "The simplest solution is to reboot. Close it down and open it again. If the problem persists, try restarting your computer. Try restarting and see if your camera works."

Hope this helps!

Which of the following can be used to enter or display one complete row of information in a range or table without scrolling horizontally? Question 2 options: Create Home External Data Database Tools.

Answers

The one which is used to enter or display one complete row of information in a range or table without scrolling horizontally is database tool.

What is Microsoft Excel?

Microsoft Excel is the electronic sheet in which the data can be arranged and saved for the future use. This data in a Microsoft excels arranged in the rows and the column of the Microsoft Excel.

The options given in the problem are,

Create-With the help of create tool the, the user can create and control the content.Home-Home menu has many tools to perform different calculations effectively.External Data-The data, which is outside of the sheet, is called the external data. Database Tools-The database tools has the different tools associated with it, to perform the task related to administration. With tool help to enter or display one complete row of information in a range or table without scrolling horizontally is database tool.

The one which is used to enter or display one complete row of information in a range or table without scrolling horizontally is database tool.

Learn more about the Microsoft excel here;

https://brainly.com/question/1538272

Answer:

Correct answer is 'Create'

Explanation:

Took the test.

Does anyone know what to do when your PC is having internet connection issues and shuts down when you didn't even press the power button? This is happening to me and I don't know what to do! My PC is new too.

Answers

Answer: I think you need to reset your pc

Explanation: or get it fixed at a shop

We're sorry, but an error has occurred.
Please contact your uPortal administrator and provide the following information:
Your name and user id
What content were you trying to view when this error occurred?
Any other useful information to help reproduce the error

Answers

Answer:

this looks pretty good

Explanation:

I would write with it

And we will contact you as soon as possible

all of the following are types of education that you can receive at a two year college except
A. transfer
B. apprenticeship
C. developmental
D. career

Answers

Answer:

Apprenticeship

Explanation:

Apex, Just took the test

All of the given are types of education that you can receive at a two year college except apprenticeship. The correct option is B.

What is apprenticeship?

A new generation of practitioners of a trade or profession can be trained through an apprenticeship program, which combines classroom instruction with on-the-job training.

Apprenticeships can also help professionals get a license to work in a regulated field. A compensated work that allows the employee to learn and develop experience is called an apprenticeship.

Apprentices complete classroom-based learning with a college, university, or training provider for at least 20% of their working hours in addition to their on-the-job training, which results in a nationally recognized qualification.

With the exception of apprenticeship, all of the aforementioned educational options are available at two-year colleges.

Thus, the correct option is B.

For more details regarding apprenticeship, visit:

https://brainly.com/question/779411

#SPJ2

You can increase the range of a projectile by _____ the launch height.


decreasing

increasing

stabilizing

ignoring

Answers

You can increase the range of a projectile by increasing the launch height.

How do you increase the scope of a projectile?

The range of a projectile can be  increased so as to be able  to cover a long distance.

For one to be able to so this, one must increase the range of the velocity of the projectile as the The launch angle is the one that helps to know the range and maximum height of that object.

Learn more about projectile from

https://brainly.com/question/24216590

Question #3
Multiple Choice
Often screen readers do not convey all of the necessary information to programmers about the programming environment or their code.
One solution for communicating indentations and the distinction between code and text is the use of
O audio cues
O text-to-speech
O screen readers
O a tree structure

Answers

Answer: audio cues

Explanation: "Specific sounds, or audio cues, can be used to convey visual information, like indentations."

Answer:

audio cues

Explanation:

i just took it hope im not too late :D

Other Questions
Use the Pyruvate Concentration Table to answer the question.The researcher adds a chemical to the cytosol at the one-hour mark. The full effect of the chemical can be observed at the two-hour mark. Which of the following hypotheses regarding the effect of the chemical is MOST reasonable? A. The chemical inhibits the carrier protein for pyruvate in the mitochondrial inner membrane. B. The chemical inhibits the carrier protein for glucose in the plasma membrane. C. The chemical inhibits the carrier protein for glucose in the mitochondrial inner membrane. D. The chemical inhibits the protein channels in the mitochondrial outer membrane. (HELP) What is the length of xy in xyz? You want to go to Disneyland, but your budget is $425. The fee to enter the park is $105 and each meal (breakfast lunch and dinner) is $20. How many meals can you buy? acid rain is created when chemicals in _____ react with ____.A. Smog and water vaporB. Fertilizers and waterC. Fertilizers and sunlightD. Smog and sunlight Why alcohol is weaker acid than water How did the Northern blockade affect the Confederate's war effort and economy? If y(x) = 4x, what is x when y(x) = 4? How do poets create new words to communicate their ideas help with. question pls I will mark Braileist mr. Walters drove to happy town from smile City in about 6 hours the distance from smile city to happy town is 315 km, what is the average speed A certain spring stretches 15 cm when a load of 50.0 N is suspended from it. How much will the spring stretch if 78N is suspended from it Compare the shape of a normal red blood cell to that of a red blood cell insomeone with sickle cell anemia. 02Molten Nacl conducts electricity due to the presence ofa) free eletrons b) free ionsc) free molecules d) atomssodium and chloride. 2115X = ?A. 6 unitsB. 3V74 unitsC. 3V35 unitsD. 616 units For the parts in a system to work correctly, the parts must be arranged or built upon in a particular order. What is the correct order of the parts of a human body system from simplest to most complex?organcellorgan systemtissueummm... this is middle school science btw 20 - (+7) + - (6) = whats the answer A body builder consumed 4,400 calories yesterday. Today, he consumed 3,600 calories.What is the percent decrease in number of calories consumed? Round to the nearest percent. Consider a 35-L evacuated rigid bottle that is surrounded by the atmosphere at 100 kPa and 22 . A valve at the neck of the bottle is now opened and the atmospheric air is allowed to flow into the bottle. The air trapped in the bottle eventually reaches thermal equilibrium with the atmosphere as a result of heat transfer through the wall of the bottle. The valve remains open during the process so that the trapped air also reaches mechanical equilibrium with the atmosphere. Determine the net heat transfer through the wall of the bottle during this filling process. -pinterest\.\* simplify the expression. The expression (2-d)6 is the same as find the area of a triangle if do math problem 5 stars and brainly points