Q. write a program in c++ that display entered string into reverse order.
Q. write a program in c++ that display entered string into reverse order.
Q.write a program to swapp variables value. Note you cannot take third variable and implement it by making a class.
Q1.make a class of fabnacci series. This series is 1 1 2 3 5 8 13 21 and so on.
Q1. write 4 classess like, body of car, engine of car, tyres of car etc and call these classes in main metod. Note all classess must return some funtionality.
Design a network Scenario by yourself (Do not use the scenarios presented in the textbook or in
the lecture) where longest mask matching can be used to reduce the size of Routing table. Draw
the network scenario with proper IP addresses and subnet masks. And explain how longest mask
matching is helping here to reduce the routing table size and what would happen if we were not
following longest mask matching technique.
We want to store the information of different vehicles. Create a class named Vehicle with two data member named mileage and price. Create its two subclasses *Car with data members to store ownership cost, warranty (by years), seating capacity and fuel type (diesel or petrol). *Bike with data members to store the number of cylinders, number of gears, cooling type (air, liquid or oil)
You have to take two strings input from user and compare then in such a way that first index of string 1 should be compared second index of string 2 and second index of string 1 should be compared with first index of string 1, third index of string 1 should be compared with the fourth index of string 2 and fourth index of string 1 should be compared with the third index of string 2 and so on……..
a b c d f g
a j c j c n
If comparison is successful then swap the consecutive two elements of string 2 and compared the swapped string 2 with string 1 using built-in strcmp() and print the swapped string otherwise print not equal.