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
Kipish [7]
4 years ago
8

Our goal here is to predict whether an accident just reported will involve an injury (MAX_SEV_IR = 1 or 2) or will not (MAX_SEV_

IR = 0). For this purpose, create a dummy variable called INJURY that takes the value "yes" if MAX_SEV_IR = 1 or 2, and otherwise "no."
Computers and Technology
2 answers:
gulaghasi [49]4 years ago
6 0

Explanation:

The outlines given in question statement can be written in many programming languages. The below program would be written in C language, which is one of the basic computer languages

Program code

String main (int MAX_SEV_IR)

{

string INJURY

if (MAX_SEV_IR = =1 or MAX_SEV_IR == 2)

INJURY = "yes"

elseif (MAX_SEV_IR = =0)

INJURY = "No"

else

INJURY = "Invalid data"

return INJURY

}

NemiM [27]4 years ago
3 0

Answer:

# main function is defined

def main():

# the value of MAX_SEV_IR is gotten

# from the user via keyboard input

MAX_SEV_IR = int(input ("Enter MAX_SEV_IR: ")

# if statement to check for prediction

# if MAX_SEV_IR == 1 or 2

# then there is injury and it is displayed

if (MAX_SEV_IR == 1 or MAX_SEV_IR == 2):

print("INJURY = ", injury)

print("PREDICTION: Accident just reported will involve an injury")

# else if MAX_SEV_IR == 0 then no

# injury and it is displayed

elif (MAX_SEV_IR == 0):

injury = "NO"

print("INJURY = ", injury)

print("PREDICTION: Accident just reported will not involve an injury")

# the call main function to execute

if __name__ = '__main__':

main()

Explanation:

The code is written in Python and well commented.

You might be interested in
I WILL MARK IT BRAINLIEST FOR SURE ☺️❤️
Katyanochek1 [597]

Answer:

Virtually all foods are derived from living cells from animals and plant origin and in some cases from some microorganisms by biotechnology.

Explanation:

I actualy dont know how to explain you this ahmm go to your teacher and hit her/he with your module.

5 0
3 years ago
What is an audit trial
Nastasia [14]

Hi there!

A audit trial is a report of changes that have been obtained to a file or some kind of database.

Hope this helped!~

7 0
3 years ago
An employee is working on building a new computer application for a friend. For this purpose, he uses the software that is regis
andrezito [222]

Answer: USed software

Explanation:

5 0
3 years ago
g write a recursive function that prints out all the even numbers between x and y inclusive if x is odd then the print out will
Reil [10]

Answer:

The function written in python is as follows:

def EvenNumbers(x, y):

    if (y < x):

         return

    if (y % 2 == 0):

         EvenNumbers(x, y - 2)

    else:

         EvenNumbers(x, y - 1)

    if (y % 2 == 0):

         print(y)

Explanation:

x represents the lower limit while y represents the upper limit.

So, the recursion will be repeated as long as x <= y

This defines the function

def EvenNumbers(x, y):

This checks if y < x. If yes, the recursion stops execution and return to the main

<em>     if (y < x): </em>

<em>          return </em>

The following if and else condition checks determines the appropriate range of the recursion.

<em>     if (y % 2 == 0): </em>

<em>          EvenNumbers(x, y - 2) </em>

<em>     else: </em>

<em>          EvenNumbers(x, y - 1) </em>

The above takes care of printing starting at x + 1 if x is odd

This checks and prints the even numbers in the range

<em>     if (y % 2 == 0): </em>

<em>          print(y)</em>

<em />

To call the function from main, make use of

EvenNumbers(x, y)

Where x and y are integers

e.g EvenNumbers(2,10), EvenNumbers(1,17), EvenNumbers(3,21)

<em>See attachment</em>

3 0
3 years ago
In order to use Slicers to filter some data, what must you first do to that data?
Vinil7 [7]

Answer:

Select Insert > Slicer. Select the fields you'd like to filter. Select OK and adjust your slicer preferences, such as Columns, under Options. To select more than one item, hold Ctrl, and then select the items that you want to show.

Explanation: Convert the data into a table

4 0
4 years ago
Read 2 more answers
Other questions:
  • When you need to cut new external threads on a bolt, what tool should you use?
    7·2 answers
  • If you want to copy a file from one folder to another , what would you do?
    15·1 answer
  • Using Word, Maureen is writing an outline of a presentation she plans to give to her company. She will be showing a video during
    12·2 answers
  • What information should you avoid sharing when updating your status?
    14·2 answers
  • 1. Why is it important for IT technicians to keep documentation on computers for which they are
    13·1 answer
  • In most cases, it is possible to prevent an exception from terminating a program by using the try and except statements. Select
    13·1 answer
  • if you are trying to reduce the cost of college, which of the following strategies is likely to save you the most money?
    9·1 answer
  • What makes a recipe for a meal an example of an algorithm?
    6·1 answer
  • To use Aggregate functions on subgroups within the total result set, place the Aggregate function in the Select clause and add t
    7·1 answer
  • All mortgage companies are willing to loan anyone money regardless of credit scores. True or false?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!