For this assignment, you will generate a UML class diagram for a class and implement it. In addition, you will learn how to use GitHub classroom to start a new project and submit your solution using git version control.
Pre-Lab (DUE BEFORE LAB - see due date in Canvas)
As part of the pre-lab activity you will see how to use GitHub Classroom to start your lab assignment and submit it when you are finished.
- How to start a new project from your GitHub repository
- How to commit changes to your local repo
- How to push changes from your local repo to GitHub
- How to add a file to your project that is not under version control
- How to add a file to your project that is under version control
- How to update your local repo with changes from the GitHub repo (e.g., after your assignment has been graded)
- How to see the differences between the most recent verion in your repo and the current files in your project
- Watch [11:50] [link]
The project is cloned from the GitHub repo to your local machine at the three minute mark in the video. You will likely need to authorize IntelliJ to access your GitHub account. Hopefully the process is simple enough, but you can see screenshots of what to do in Figures 13-16 of this page.
What Must Be Done by the Pre-lab Due Date?
- Accept your instructor's invitation to the lab 6 assignment in Canvas
- Associate your GitHub account (create one if you don't have one) with your name in GitHub Classroom
- Clone the project, openning it in IntelliJ
- Rename the
usernamepackage to your username
- Commit the changes
House and BuildingCostEstimator classes
House class in the project defines a program that makes use
BuildingCostEstimator class. You will need to implement the
BuildingCostEstimator class so that the program functions properly.
The cost of the home should be based on the following calculation:
- Base cost per square foot of the house: $185
- Add $30,000 for each full bathroom
- Add $12,000 for each half bathroom
- Add $5,000 for each bedroom
- Add $1,300 for each window
- Add $12,000 for each garage stall
You must generate a UML class diagram for the
This laboratory assignment was developed by Dr. Chris Taylor.