Ask Question, Ask an Expert


Ask C/C++ Expert

Home >> C/C++

problem 1) prepare a program that merges two input files ”Data1” and “Data2” giving the third output file“Dataf”. The 2 input files contain records in ascending order of their roll numbers and resultant file should also be in ascending order. prepare this program using

• Without using structures / classes

• structures

• classes

problem 2) A binary file “Employee.dat” containing Empno, Wrate( hourly wage rate), Noh(number of hours worked / week) fields. prepare a C++ function to read each record, compute weekly wage as prepare * Noh and display Empno, Wrate, Noh, Wrate*Noh.

problem 3) prepare a program to check a C++ program for matching characters ({ }, ( ), /* */) and display whether they are well formed or not.

problem 4) prepare a program to read a binary file “Emp.dat” using classes and display only those records whose salary is between 10000 and 20000 and job is “Manager”

problem 5) prepare a program which reads one line at a time from the disk file “TRY.TXT” and display it on the monitor. The maximum length of the line is 80 characters.

problem 6) prepare a program to prepare the contents of a string variable one character at a time to the disk file OUT.TXT.

problem 7) Overload unary minus(-) operator to make data members inside the structure /class negative.

• Using structure

• Using class (member functions)

• Using class (friend function)

problem 8) Overload “++” and “- -“ operator.

• Using structure

• Using classes (member functions)

• Using classes (friend functions)

problem 9) Overload ‘+’ operator to add two complex numbers.

• Using structure

• Using class (member function)

• Using class (friend function)

problem 10) Overload ‘+’ and ‘*’ operator to add and multiply two matrices.

• Using structure

• Using class (member function)

• Using class (friend function)

C/C++, Programming

  • Category:- C/C++
  • Reference No.:- M94925

Have any Question? 

Related Questions in C/C++

Descriptionnbspin this assignment you will write a c

Description:  In this assignment you will write a C++ program that finds the kth largest number among a set of N numbers. It will implement the solution using two different algorithms and measure the time elapsed during ...

Programming assignment-1 program specification1 your

Programming Assignment- 1. Program Specification 1. Your program must read 8-bit ASCII strings from standard input -- for instance, using the cin object in C++, or stdin in C. You must consume all input from standard inp ...

Problem 1 you are tasked to write a program that outputs

PROBLEM 1 You are tasked to write a program that outputs the following amplifier system specifications: Voltage amplification: 25 Input voltage: 50 mV Power output: 2.5 W Bandwidth: 15 kHz Type: Class A a. For this progr ...

Discussion questionsplease respond to all of the following

Discussion Questions Please respond to all of the following prompts: • What is a friend function and how is it declared? • Which operators cannot be overloaded and why? • What is a macro in C++ programming and what are s ...

Objectives- gain experience with if if else and switch

Objectives - Gain experience with if, if else, and switch statements in C programs. - Experience using % operator and true false logic. Hints This program will be MUCH easier if you design how to do the logic in your own ...

Computer programming assignment-q1 using for loop write a c

Computer Programming Assignment- Q1. Using for loop, write a C++ program that prints out the multiples of 3 up through 75, separated by a blank space.  3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 51 54 57 60 63 66 69 72 ...

Programming assignment- in this assignment you are

Programming Assignment- In this assignment you are requested to write a C++ program that displays the following colored pyramid on the screen: - The pyramid is 71 characters wide and 21 characters high. - To draw it, you ...

Problem 1overview for problem 1a of this assignment you

Problem #1 Overview: For problem 1(a) of this assignment, you will need a C++ compiler. In order to receive credit, your program must compile and run; and you must provide the actual source code file so that I can compil ...


Write a C++ program that will use loops to perform each of the following tasks: 1. Ask the user for two characters from the keyboard and read them into char variables. Determine which input is larger and which is smaller ...

Write an application that allows the user to enter two

Write an application that allows the user to enter two variables: number (real) and code (character). Calculate the value indicated by the table below: If code is Result A symbol the whole part of the number everything e ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate