Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask C/C++ Expert


Home >> C/C++

problem 1) prepare a program to read and prepare student records from text file “Student.txt”.

problem 2) prepare a program to read and prepare employee records from binary file “emp.dat”.

• using structures

• using classes

problem 3) prepare a program that opens a file “message.txt” and displays its contents.

problem 4) prepare a program to copy the contents of the file “abc.dat” to “xyz.dat”.

problem 5) A binary file “stu.dat” contains student records.

prepare a program to create a binary file “stusort.dat”, which contains all the records of “stu.dat” in the sorted order of roll number.

problem 6) prepare a program to count number of employee records in a binary file “emp.dat” whose department number is 10.

• using structures

• using classes

problem 7) prepare a program to search a given employee record by employee number or name in a binary file using structures / classes.

problem 8) There are 100 records present in a file with the following structure:

Sturct item
{

int itemcode, qty;

char itemname[20];

};

prepare a program to read these records and arrange them in ascending order of item code and prepare them in target file separately.

problem 9) prepare a program to modify a given employee record in a binary file using structures / classes.

problem 10) prepare a program to delete a given employee record in a binary file using structures / classes.

problem 11) prepare a program to count the number of characters, alphabets, vowels and consonants in a file “poem.txt”.

problem 12) prepare a program to count the number of words and lines in a file “poem.txt”.

problem 13) prepare a program to count number of spaces, tabs and newline characters in a file“Notes.txt”.

problem 14) Suppose that a text file named TEXT1.TXT already contains some text written into it, prepare a program that reads file TEXT1.TXT and create a new file named TEXT2.TXT,which shall contain only those words from the file TEXT1.TXT which don’t start with an uppercase vowel ( i.e. with ‘A’, ‘E’, ‘I’ , ‘O’, ‘U’).

problem 15) prepare a program which takes “story.txt” as input file and creates a new file “story1.txt” by replacing all the spaces with “-“, tabs by “%” and newlines by “$”.

C/C++, Programming

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

Have any Question? 


Related Questions in C/C++

You need to program a microprocessor that would have a

You need to program a microprocessor that would have a temperature, gas, humidity and PIR sensor connected to it. It would send the data to a PC via a Zigbee and receive commands from the PC via the Zigbee to control mot ...

Cs492 programming assignment-the program must be written in

CS492 Programming Assignment- The program must be written in C or C++, and run on a linux machine. ALL source code you submit must be well documented (documentation is an indicator of understanding!) Programs that cannot ...

More often than not entrepreneurs will fail several times

"More often than not, entrepreneurs will fail several times before they make it and will usually learn a lot in the process. To help these entrepreneurs to succeed will require a cultural shift. We need to encourage Aust ...

Here are two examplesifcounter7continueifcounter7break1

Here are two examples: if(counter==7) continue; if(counter==7) break; 1. Write a for loop that counts only the odd numbers out of the first five numbers entered from the keyboard, but does not count (skips) the number 7. ...

C program codeoverviewfor this assignment write a program

C++ program code Overview For this assignment, write a program that will simulate a single game of Craps. Craps is a game of chance where a player (the shooter) will roll 2 six-sided dice. The sum of the die will determi ...

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

Assignment simple 5-card poker gamein this assignment you

Assignment: Simple 5-Card Poker Game In this assignment, you will develop a simple poker game, complete with basic AI, using the object oriented programming principles discussed in class. Flow of Play Your poker game's p ...

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

Programwriteacprogramthatwillasktheuserforthenameofaninputfi

Program Write a C++ program that will: Ask the user for the name of an input file. Read in this name and open that text file for input. Ask the user which of two options they want to do: Read in student data Count lines ...

  • 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