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

Write a C++ program to create a new file named "college.txt" to store list of colleges under Punjab university Read names of 3 colleges (consider input given below )from console and store it in "college.txt". Further copy contents of "college.txt" in another file "university.txt". Now open the "university.txt" file and display the following (underlined) characters on console using file.


manipulation functions

Input:


Lovely Professional University


Thapar Institute of Engineering and Technology


Dr BR Ambedkar National Institute of Technology


1. Create a class called Matrix having the following data members


int rows:


int cols:


int mat[ ] [ ].


Write a program to implement the following operations (the ones mentioned in comments) on Matrix. The main function of the above program is as below:


int main() { Matrix m1(3,3);//it will initialize rows and cols


ml.get data(): Accept the data in matrix Matrix m2=ml://copy one matrix contents into another


m2.putdata();// display the contents of matrix


Matrix m3;


m3.putdata();

}


A structure stores details of 5 students (roll number, name, marks in 5 subject ). Write a program to prepare a rank list of students. Also print out a list of students who have failed in more than one subject.


Create a class named as car with 

data members as 

carcompany,cost of car,number 

of airbags. Create a file and write 

the array of objects into file. 

Search the data by carcompany

from the stored file and display

the result .


Param is a course instructor of 

c++ programming and currently 

he is teaching conversions to his 

students. He started with the 

basic programs and now he 

want to introduce some 

complex problems. Before 

starting the complex problems, 

he wants to start with high 

difficulty level problem, such as: 

counting the digits of a number. 

Help Mr. param to write a 

program which will accept one 

integer argument and returns 

count of digits of that argument 

using class to basic conversion.


. Create a class Number with a pointer as a data data member of integer type. Write user defined copy constructor to the class and implement the deep copy for the Number class objects. So when a new object is created from an old object of the Number class, pointer data member can point different memory block.


Default constructors are not mandatory to be written by user, explain the situation when default constructor is mandatory to be written by user.


2. There is a secret organization and they want to create a secret language for the calculation to make the data secure. Now the manager of the organization asked his IT employee to make the program which will function as follows: a) * will subtract the numbers b) - will divide the numbers c) / will add the numbers d) + will multiply the numbers


Raman has some data in his laptop saved in two different files, but now he wants to combine the data in one file from these two files. Write a program to complete this task.


  1. Present an overview of PCIe.
LATEST TUTORIALS
APPROVED BY CLIENTS