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


John has some data in his laptop saved in two different files, but now he wants to add the data in one file to another file. Write a program to complete John's task.


Smartdata pvt. ltd company is storing the information of their employees( Name, Department DOB,Gender, address, email and Mob) in different entity according to department of employee. Now, one employee will be shifted from programing team to testing team. Write a code to copy all the details of that employee from one object to another object. Note: Display the above concept with the help of classes and copy constructors. 


2. 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.


Write a program using two dimensional arrays that determines the highest and lowest of the n numbers inputted.


Write a program that will sort a list of strings (names of person) enter by the user given the value of names.



Write a program that takes data, a word at a time and reverses the words of the line. Sample input/output dialogue: Input string value: birds and bees Reversed: bees and birds


Write a program that takes nouns and forms their plurals on the basis of these rules:

a. If a noun ends in “y”, remove the ”y” and add “ies”

b. If a noun ends in “s”, “ch” or “sh”, add “es”

c. In all other cases, just add “s” 


Write a program that will accept the currency value and the name of the country and will display the equivalent in U.S. dollar, based on the given list:


COUNTRY CURRENCY U.S. DOLLAR EQUIVALENT

British Pound 0.6 U.S. dollar

Canadian Dollar 1.3 U.S. dollar

Japanese Yen 140 U.S. dollar

German Mark 1.7 U.S. dollar

Philippines Peso 53 U.S. dollar


[10]

Write a program that asks the user to input one number at a time and then the program should add the number to previous sum. If the user enters -1, then no more addition is to be done. All these numbers along with the sum value are to be stored in the file.

Once this is done, user will enter value of n, the program should be able to display which was the nth number entered and what was the sum at that time?


LATEST TUTORIALS
APPROVED BY CLIENTS