Professional Documents
Culture Documents
Lab Assignment 10
2022 Fall, CMPE 113 Fundamentals of Programming I
Question 1
A complex number is a number of the form 𝑎 + 𝑏𝑖, where a and b are real numbers.
In this exercise, you’re required to define a class Complex. The class has:
The main function is already given, as you define the Complex class, the main should function accordingly.
Sample Run:
1
Computer Engineering Department
Question 2:
The main function is already given, as you define the Box class, the main should function accordingly.
Sample run:
It's a Cuboid
It's a Cube