Question 1

Which one of the following is NOT a factor of 180?

A. 6

B. 8

C. 12

D. 18

# install.packages("tidyverse")
library(tidyverse)
## Warning: package 'lubridate' was built under R version 4.5.2
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr     1.1.4     ✔ readr     2.1.5
## ✔ forcats   1.0.1     ✔ stringr   1.5.2
## ✔ ggplot2   4.0.0     ✔ tibble    3.3.0
## ✔ lubridate 1.9.4     ✔ tidyr     1.3.1
## ✔ purrr     1.1.0     
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag()    masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
q1_data <- data.frame(Choice = LETTERS[1:4],
                      Number = c(6,8,12,18))
correct_answer <- q1_data %>%
  mutate(Factor = 180 %% Number == 0) %>%
  filter(Factor == FALSE) %>%
  pull(Choice)
cat("Correct answer:",correct_answer,"\n")
## Correct answer: B

Question 2

Graph the corresponding polygon with the data below.

# install.packages("tidyverse")
library(tidyverse)
q2_data <- data.frame(X = c(6,1,-4,1),
                      Y = c(1,3,1,-9))
ggplot(q2_data,aes(x = X,y = Y)) +
  geom_polygon(col = "black",lwd = 1.25,fill = "yellow") +
  geom_point(size = 3) +
  coord_equal() +
  theme_dark()