Docsity

Programming Exercises: Tire, Engine, Cargo, and Car Classes - Prof. Sơn, Lab Reports of Computer Science

Partial preview of the text

Download Programming Exercises: Tire, Engine, Cargo, and Car Classes - Prof. Sơn and more Lab Reports Computer Science in PDF only on Docsity!

Exercise 1: Source Code: Class Tire Class Engine Class Cargo

Class Car Class Program

Result: Exercise 2: Class Car1:

Class Engine 1:

Result: The program was failed Exercise 3: Source Code:

Result: