Skip to content

A main method creates a new MatchBox object, calls the getVolume method and reports the results by printing the following items to the screen

License

Notifications You must be signed in to change notification settings

g7skim/UoPeople-CS-1102-MatchBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

UoPeople-CS-1102-MatchBox

A main method creates a new MatchBox object, calls the getVolume method and reports the results by printing the following items to the screen A new class must include a main method that creates a new MatchBox object, calls the getVolume method and reports the results by printing the following items to the screen (where the X is replaced by the calculated value) For your assignment, assume that the value of width is 5, height is 10, and the depth is 3. The output should look like the following with X replaced with the appropriate calculated value.

width of MatchBox is X height of MatchBox is X depth of MatchBox is X weight of MatchBox is X Volume is: X

About

A main method creates a new MatchBox object, calls the getVolume method and reports the results by printing the following items to the screen

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages