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

C projectphase 11- you need to take input from user study

C project Phase 1 1- You need to take input from user study year (proper value check from 1 to 4) 2- Take input semester (proper value check 1 to 8) 3- Calculate GPA (use Loop, calculate GPA for semester 1,2,3...) Exampl ...

Practice with pointers and dynamic memory

Practice with pointers and dynamic memory allocation Problem: Write a C++ program that will implement and test the four functions described below that use pointers and dynamic memory allocation. The Functions: You will w ...

Discussionkeyboard versus file input please respond to the

Discussion "Keyboard versus File Input" Please respond to the following: • Suppose you are designing a C++ application that needs to capture user input specifically via a keyboard or from a file. Determine the method tha ...

1 we know that from ece 109 to calculate the

1. We know that from ECE 109, to calculate the equivalent resistance of a network of resistors in series in parallel are given by: Write a C++ program that asks the user to input values for resistors (as many as they wou ...

Assignmentwhen writing c programs include comments in your

Assignment When writing C++ programs include comments in your code, make the program readable by indenting, use meaningful variable and function names, and produce meaningful output. This assignment will be to write a te ...

Assignmentconsider the following declarationsclass

Assignment Consider the following declarations: class bagType { public: void set(string, double, double, double, double); void print() const; string getStyle() const; double getPrice() const; void get(double, double, dou ...

Write a c program that calculates and prints the average of

Write a C program that calculates and prints the average of two or more salaries entered by the user. The program should first prompt the user to enter the number of salaries to process (make sure: at least 2 salaries mu ...

1 write a c program that allows the user to create a test

1. Write a C++ program that allows the user to create a test bank of questions 2. The program should first ask the user how many questions he or she wishes to create. 3- The user should now be prompted for all informatio ...

Modules in c are called functions c programs are typically

Modules in C are called functions. C programs are typically written by combining user created functions as well as "pre-packaged" functions found in the C Standard Library. For instance, printf() is a function that is fo ...

Programming assignment image processing - pointers class

Programming Assignment: Image Processing - Pointers, Class & Dynamic Data This project is called "Image Processing" which will shrink an input image, convert a color image to gray image , add random noise to an image, ad ...

  • 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

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro