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 program using string functions that will accept the name of the country as input value and will display the corresponding capital. Here is the list of the countries and their capitals.


COUNTRY CAPITAL

Canada Ottawa

United States Washington D.C.

U.S.S.R. Moscow

Italy Rome

Philippines Manila



Create a class Employee with following data members, name, id, and salary as private data member. Create array of objects for four employees, compare their salary using operator overloading, and display the records of the student who is getting less salary. 


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 B R Ambedkar National Institute of Technolog


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.




Define a class Employee with data member as name,emp_id,age. Wrie a programm to write the data of three employee's using class object. Read the records of employee and print them to console


Write an efficient C++ program to make a matrices calculator. Your program must be having the

following options.

1) Addition of two matrices

2) Subtraction of two matrices

3) Finding the transpose of a matrix

Elements and size of the matrix will be inputted by the user and there is no limit on the size of matrix.

Use the characters A, S and T for addition, subtraction and transpose respectively. Try to complete

your program in minimum possible lines.

Hints

• Use dynamic memory allocation and passing arrays as argument to functions will reduce the

lines of code significantly.

• Write a function for taking the input in a matrix.

• Write another function for displaying the elements of a matrix.

• If user selects addition or subtraction then your code must ask the user to enter the elements

for 2 matrices, otherwise ask the user to enter the elements for only one matrix.

• If user presses a wrong character, ask him/her to input again.


Suppose that there is only 1kb space is left on stack, but you want to input the marks for 100 students

and calculate their average. Write an efficient C++ program to complete the task.


  program in which each destructor should display different message e.g. for object 1 the message should be like this: “Object 1 is going to destroy”


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 B R Ambedkar National Institute of Technology


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 B R Ambedkar National Institute of Technology


LATEST TUTORIALS
APPROVED BY CLIENTS