Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Working with Variables Suppose you run a dog training business and you want to keep track of your clients. You teach a beginners class that
Working with Variables
Suppose you run a dog training business and you want to keep track of your clients. You teach a beginners class that has clients and an advanced class that has clients.
Create the variables numBeginner and numAdvanced to keep track of the given numbers.
r
Using numBeginner and numAdvanced, create a new variable, numTotal, to calculate the total number of students.
r
Create a variable vector called attendance to track the attendance of those who enrolled in the advanced class. The students were present for the following percentage of classes: Hint: How do you save multiple values in the same variable?
r
Calculate the average attendance. Hint: Use a function, do not calculate by hand ie
r
Create a variable vector called names for the names of the dogs: Max, Barker, Luna, Rover, Spot. Hint: How does creating a numerical vs categorical variable differ? Refer to Lab or reach out for help!
r
Display the variables you've created so far numBeginner numAdvanced, numTotal, attendance, names
r
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started