Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

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++

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

Text exercise 413 gas mileagebulldrivers are concerned with

Text Exercise 4.13 (Gas Mileage) • Drivers are concerned with the mileage obtained by their automobiles. One driver has kept track of several trips by recording miles driven and gallons used for each trip. Develop a C++ ...

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 questonsplease respond to all of the following

Discussion Questons Please respond to all of the following prompts: • How are input and output accomplished in C++? • How do cin and cout relate to ostream and istream? Lab Activity 1. Write a C++ program per the require ...

Question 1you are facing the following problem you are

Question 1 You are facing the following problem: You are given a robot and your task is to "guide" the robot through a 2-dimensional maze such that the robot can reach a desired goal state. Assume that the maze is define ...

Computer programmingobjectives1 opening a file reading from

Computer Programming Objectives: 1. Opening a file, reading from file, writing to a file and closing a file. 2. Sequential access files handling. 3. Practice C++ programming problems. Note: Carefully read the following i ...

Writeacprogramthatwilluseloopstoperformeachofthefollowingtas

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

C program assignmentaccording to C Program Assignment According to

C Program Assignment According to http://en.wikipedia.org/wiki/Great-circle_distance, the great circle distance based on two coordinates in nautical miles is given by: d = r * Δσ where r is the radius of the earth and Δσ ...

Computer scienceprogram-write a c program that willpresent

Computer Science Program- Write a C++ program that will: Present the user with a menu of choices: 1. Random number 2. String 3. Type Casting 4. Integer Math Then, in an if-else if structure (or switch) write the code for ...

1 write a program to find the sum amp average of the given

1) Write a program to find the sum & average of the given numbers using the while loop. 2) Write a program in C to find the sum and average of the given numbers stored in an array of n values.

  • 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