Join Peggy Fisher for an in-depth discussion in this video Challenge: College cost app, part of Java Essential Training for Students.
- It's time for your next Challenge.…In this Challenge, I want you to write a program…that computes and displays the total yearly expenses…for a student in college.…The student might be living on campus…or in a nearby apartment, or commuting.…If the student is living on campus,…we need to ask for the number of weeks…they'll be living on campus,…the duration of stay.…The estimated weekly living expenses,…not including room and board,…and the cost of room and board.…For all students we need to also ask for…their name, what year are they entering,…freshman, sophomore, junior, senior?…The estimated cost of textbooks, pencils, paper…all the supplies that they'll need for the year.…
The number of credit hours they're taking,…and the cost for each credit hour.…Use that information to calculate…the total cost for attending college for one year,…and print the final total.…Write separate methods for each request,…and only use the mean method to call the other methods.…This challenge should probably take…about 20 minutes.…It's a little more challenging than the first one,…
- Getting started with parsing
- Reviewing data types
- Using decisions
- Creating user-defined methods
- Command-line debugging
- Exploring the Java API
- Creating and instantiating classes
- Working with interfaces
- Storing items with arrays
Skill Level Intermediate
1. Command Level Programming
2. Basics Review
4. Java API
5. Simulations and Algorithm Analysis
6. Classes and Objects
7. More on Classes
8. Data Structures
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.