Goal: Familiarize yourself with concepts from the pre-work. While many concepts may be similar to those you learned in Intro to Programming, pay special attention to the Java-specific approaches. This course will cover a lot of ground; so take advantage of this time to ensure you're comfortable with the basics before we pick up speed!
Let's start small, by simply reviewing concepts from this weekend's homework. Follow along with the Writing Custom Methods lesson to create the Meal Time application.
Next up, continue your review of the weekend homework by following along with the lessons listed below to create the Car Dealership application!
When you and your pair feel fairly comfortable integrating custom classes into Java applications, create another application that creates and evaluates triangles based on user-provided input.
Triangleobject using these lengths.
Triangleclass that returns whether the lengths form an equilateral, isosceles, or scalene triangle. If you're not familiar with these terms, here are definitions:
Also, keep in mind that not all combinations of three numbers make valid triangles! For example, (2, 2, 8) does not make a triangle. If any one side is longer than the other two combined, the lengths cannot form a triangle.
Create a command line interface application for a music store that sells CDs. The application should use a
while loop to continually run until the user opts to exit. (As seen in this lesson.) Users should be able to:
CDobject by providing an artist name, album name, release year, and price.
CDs currently in the store's inventory.
CDs based on their release year.
Create a basic application that prompts users to provide the dimensions and weight of a package. Then, return the cost to ship the package
Parceland specify the dimensions and weight in the arguments.
volume()method that calculates the volume of a
Parcelusing its dimensions.
costToShip()method that returns how much this
Parcelwill cost to ship somewhere.
Parcelto determine cost (ie: A
Parcelwith a surface area of 36 inches should cost less to add gift wrapping to than one with a surface area of 108 inches) The cost for gift wrapping should be added to the total shipping cost.
Parcels they have shipped, the extra options (like gift wrapping) they've included, and the cost.