Course & Assignment Builder
Professor workspace
Dashboard
Main Landing
settings
Course and Assignment Configuration
Assignment Selector
Assignment Title
Primary Language
Python
R
Associated Course
Secure Software Engineering (SSE-401)
Defensive Programming (DP-102)
Vulnerability Analysis (VA-205)
Assignment Prompt
Write an R workflow that fits a simple linear regression, reports slope and R-squared, and prepares a scatterplot with a regression line. Students may use AI assistance, but must defend the same modeling logic through hotspot, trace, mutation, and repair.
Assignment Due Window
Assignment Summary
Course Term
Enrollment Summary
Hotspot Focus
Explain why the lm() formula and ggplot aesthetic mapping establish the intended predictor, outcome, and fitted line.
Trace Scenario
Trace the workflow on a small data frame with hours_studied and exam_score. Predict the cleaned rows, fitted formula, and what appears on the scatterplot.
Mutation Prompt
Modify the submitted solution so it handles a changed input contract safely without breaking the original reasoning model.
Repair Prompt
Repair a broken variant of the same algorithm by correcting the specific line that now violates the original logic.
Hidden Test Cases
add
Add Case
assignment_tests.R
report <- build_regression_report(df) stopifnot(is.numeric(report$slope)) stopifnot(report$slope > 0) stopifnot(report$r_squared >= 0) stopifnot("GeomSmooth" %in% report$plot_layers || "GeomPoint" %in% report$plot_layers)