Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search


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.


  1. Write a class definition for a Dog. Private data fields include name, breed, and age, and a constant static field for the license fee, which is $13.45. Create public member functions to set and display the data. Write a main() function that demonstrates the class operates correctly.
  1. Create a class named Time that contains integer fields for hours and minutes. Store the hour in military time that is, 0 to 23. Add a function that displays the fields, using a colon to separate hours and minutes. (Make sure the minutes displays as two digits. For example, 3 o’clock should display at 3:00, not 3:0). Add another function that takes an argument that represents minutes to add to the time. The function updates the time based on the number of minutes added. For example, 12:30 plus 15 is 12:45, 14:50 plus 20 is 15:10, and 23:59 plus 2 is 0:01. The Time constructor ensures that the hour field is not greater than 23 and that the minutes field is not greater than 59; default to these maximum values if the arguments to the constructor are out of range. Create a main() function that instantiates an array of at least four Time objects and demonstrates that they display correctly both before and after varying amounts of time have been added to them.

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.

 


LATEST TUTORIALS
APPROVED BY CLIENTS