Showing posts with label Practical Exam cpp. Show all posts
Showing posts with label Practical Exam cpp. Show all posts
Create two classes DM and DB which store the value of distances.      DM stores distances in metres and centimetres and DB in feet and inches.      Write a program that can read values for the class objects and      add one object of DM with another object of DB.

Create two classes DM and DB which store the value of distances. DM stores distances in metres and centimetres and DB in feet and inches. Write a program that can read values for the class objects and add one object of DM with another object of DB.

/*     Create two classes DM and DB which store the value of distances.     DM stores distances in metres and centimetres and DB in feet ...
Read More
Write a program which define a class “Item” having data members as code and price. Accept data for  five object and display data (Using array of object). Also display the total price of all items by passing array of object as parameter to function

Write a program which define a class “Item” having data members as code and price. Accept data for five object and display data (Using array of object). Also display the total price of all items by passing array of object as parameter to function

/*     Write a program which define a class “Item” having data members as code and price. Accept data for  five object and display data (U...
Read More