Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need this in Rstudio with urgent help. Question: You have been tasked by the government of the imaginary country Rnaeoepsgi to make a script that

image text in transcribed

Need this in Rstudio with urgent help. Question: You have been tasked by the government of the imaginary country Rnaeoepsgi to make a script that they will use to determine whether somebody should wear a mask given the values of key input variables. You come up with the flowchart below, which involves the following input variables: age (numeric) is a positive integer; outdoors (logical) is true if the person is outdoors and false if indoors; activity (character) describes what the person is currently doing. To summarise the flowchart, a person five years in age or older must wear a mask if he or she is inside and engaging in an activity other than "eating", "drinking", or "exercising". Your answer should be stored to the variable output 3 (logical).

image text in transcribed
age no yes is the person mask years old? is the no no yes person person is mask outside inside yes no no is the person is the mask drinking person eating? no yes is the no yes person no mask exerci- sing? mask mask re

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Geometry

Authors: David A Brannan, Matthew F Esplen, Jeremy J Gray

2nd Edition

1139200658, 9781139200653

More Books

Students also viewed these Mathematics questions

Question

What is an asset iiiipainiieni '.' How is it accounted for? LO1.

Answered: 1 week ago