Question: data structures Q 4- Write a simple code snippet to create a house class with information about house type, number of rooms and house number.

data structures

Q 4- Write a simple code snippet to create a house class with information about house type, number of rooms and house number. Also create method to display house info. Create an array of object of type house with size 5 and assign the data for all objects. No need to include import statements.

--------------------------------------------------------------------------------------------------------------

Q5-Explain what is Big Oh notation used for. Sort O(1), O(n), O(log n), O(n2) based on there performance from best to worst. Give example code snippet for each one of the O() values. No need for complete code just the structure is enough.

For the toolbar,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!