Storing the data in random access binary file

Assignment Help C/C++ Programming
Reference no: EM131573282

Assignment: C++ Programming

The purpose of this project is to take your project and implement it using Random Access Binary Files.

As you recall, the project used text files to store the data. Here in the final exam project, you will be storing the data in Random Access Binary File.

Also, in the project you used Arrays to temporarily hold the data in the memory until the user decides to write the data to file. Here you will not be using Arrays and instead writing the data directly to Random Access Binary File. Please read the chapter Advance File and I/O operations before attempting this.

Here is the full description of the Final exam project.

Modify your Exam Project to:

1. Replace Employee and Department classes with Employee and Department Structures.

2. Inside each structure, replace all string variables with array of characters.

3. Make Employee and Department editable. That means, the user should be able to edit a given Employee and Department.

4. Do not allow the user to edit the Employee ID and Department ID.

5. Use Random Access Files to store the data in Binary Form. This means, you should not use an Arrays to store the data in the memory. Instead, when the user wants to create a new Employee/Department, you write it to the file right away. Also when the user says he/she wants to edit an Employee/Department, ask the user to enter EmployeeID/DepartmentID.

Read the data from the file and display it to the user.

Allow the user to enter new data and write it back to the file in the same position inside the file.

Please read the chapter . Advance File/IO operations which has examples on how to do this.

Attachment:- C++ Programming.rar

Reference no: EM131573282

Questions Cloud

Examine the importance of the audit committee : From the e-Activity, examine the importance of the audit committee oversight related to the quality of the internal controls of an organization
What is the probability that the corporation will call bond : What is the probability that the corporation will call this bond?
Marketing department of firm that is producing lawnmower : Assume that you are employed in the marketing department of a firm that is producing a lawnmower.
Compare and contrast between saudi arabia and united states : Compare and contrast between Saudi Arabia and United States
Storing the data in random access binary file : As you recall, the project used text files to store the data. Here in the final exam project, you will be storing the data in Random Access Binary File.
Calculate the amount of operating income : If a flexible budget is prepared at a volume of 7,500, calculate the amount of operating income. The production level is within the relevant range
What is the most he or she should be willing to pay for land : what is the most he or she should be willing to pay for the land?
Write each of given events as a set and find its probability : Suppose that on a true/false exam you have no idea at all about the answers to three questions. You choose answers randomly and therefore have a 50-50 chance.
What is the capitalisation rate : What is the capitalisation rate?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a function which adds the two numbers

In C write a function which adds the two numbers. Test this function by calling from the main. In main, the user should be asked to provide the two numbers.

  Make program using switch statements in visual basic/c++

Enter the year code, course code, number of units and output the year name, course name, tuition fee and the balance tuition fee of the student.

  Define the following pointer and array

Define the following Pointer and Array. Answer the following question and provide an example: What is the difference between a one-dimensional and a two-dimensional array

  Write a program to convert string in upper case

Write a program that asks the user for string and display an all-uppercase version of that same string to the screen. The function should take a string parameter with the users input and return the same string in all-uppercase

  Create a program for a company named retail-mart

Prompt the user to enter an item name (one word only), a quantity and a price. For this step, in addition to functionality, I'll be looking at: location of the variable declarations; appropriateness of data types selected; appropriateness of the va..

  Program to add numbers and display sum

For each of problems write C++ code to do the required task. Receive the number and find out whether it is odd or even.

  How the project teams and coaches master agile methodology

Analyze how the project teams and coaches master the agile methodology to solve business problems. Highlight the one that you believe is the most effective and support your answer.

  Takes n number of element from user

Write a C program which takes n number of element from user (where, n is specified by user) and stores data in an array. Then, this program displays the largest element of that array.

  Write program in c++ for cosx and sinx expansion

Write program in c++ for cosx and sinx expansion( for personal inputs are x,number of terms

  Creating an array of names

Just write the codes and label my variables. Example: (with Python not C++). Creating an array of names

  Write all lines of your pseudocode

Write a program named program61.py that enables the user to enter any number of course names and percent grades and write them to a file named grades.txt.

  Define a class for file that is derived from document

Similarly, define a class for File that is derived from Document and includes a instance variable for the pathname. The textual contents of the file should be stored in the inherited variable text. Redefine the toString method to concatenate all t..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd