Write a program - customer records

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

Assignment

Write a program that uses a file named COS230BANK.dat. The contents of the file are recordType (char), customerNumber (int), flrstName (string), lastName (string) - firstTransaction (int) and IastTransaction (int). Store this information is a list of customer records.

When the program opens. read in the list of customer records. When the program ends, write the list back to the file COS230BANK.dat. The user will be given a menu with the following options. 1. Add a customer record. 2. Edit a customer record. 3. Remove a customer record 4. List the customers.

recordType will always be 'C'. customerNumber will start at 1000, firstTransaction and lastTransaction will always be 0. The customer list must be sorted before displaying and before saving. Pick the best sort algorithm for this program. Be prepared to explain why you picked that particular algorithm_ Records must he sorted by lastName then flrstName. Use an endl to separate your records when writing your file.

Use the following files to build your project

CustomerRecord.h & CustomerRecord.cpp for customer record class.

SortedListh & SortedList.cpp to declare and define your list class.

Bank.h and Bank.cpp for bank functions (menu. add, edit, remove, display and other functions main.cpp for the main program.

Reference no: EM132809802

Questions Cloud

Analyze the techniques for using confrontation : -Identify how you can use integration devices to unite representatives from conflicting departments.
Describe the financial shenanigans used by krispy kreme : Describe the financial shenanigans used by Krispy Kreme. In this regard, is earnings management always a sign of failed leadership?
Reflect on a facilitated training session : Reflect on a facilitated training session you experienced that affected you either positively or negatively.
Develop a series of actions : You are asked to develop a series of actions to improve employee engagement. What might you consider and why?
Write a program - customer records : Write a program that uses a file named COS230BANK.dat. The contents of the file are recordType (char), customerNumber
Current economic and political environment : How realistic are the unions demands in the current economic and political environment? Please add the reference
Senior management in a community hospital : Assume you are a member of senior management in a community hospital. A patient has already spent thirty days in the hospital without
Identify example of someone you think of as good leader : Identify an example of someone you think of as a good leader (currently or in the past). What traits did they have? How did these traits differ from those
Calculate and interpret the financial ratios : Would you recommend investment in this company? Similar companies pay 12% return. Calculate any other ratio you think appropriate. make an report.

Reviews

len2809802

2/26/2021 10:57:50 PM

I have a c++ project due in couple of days. Details are attached and for sorting you could use shell sorting or quick sorting.

Write a Review

C/C++ Programming Questions & Answers

  Application shows a user friendly message

The software fails to respond to user inputs, if there is a connectivity problem with the database. Add the code snippet that the development team should use to ensure that the application shows a user- friendly message, if such a situation arises..

  Conditional statementsquestion 1 write a program that

conditional statementsquestion 1 write a program that computes the cost of a long distance call. the cost of the call

  Write a c program that will calculate the gross pay of a

write a c program that will calculate the gross pay of a set of employees.for each employee the program should prompt

  Explain the chess moves with the help of the program

A user by pressing "v" gives for example Kb9 which is not valid move he will get a notation on screen "not valid move" . iF HE gives Kb2 then gets on screen "Valid move. Ok"

  Write a program that gets an input from the user

Write a program that gets an input from the user and places it in a character array. The program should print the input backwards.

  Write a function template named display

Write a function template named display() that displays the value of the single argument passed to it when the function is called.

  Why can not the this pointer be used in nonmember functions

Why can't the this pointer be used in nonmember functions? Why should the overloaded assignment operator return *this? What does *this always refer to? How is the operator keyword used?

  Compute the sum of the integers

Write a short code fragment that would compute the sum of the integers from 1 to 100 and leave this sum in $6. No input or output is necessary.

  Write a program that grades the written portion

The local driver's license office has asked you to write a program that grades the written portion of the driver's license exam. The exam has 20 multiple choice questions.

  How to write simple programs that get input from the user

Write a program that simulates playing a simplified version of the game "Candy Land." Demonstrate how to write simple programs that get input from the user

  Computes the final price for a sales transaction

Create a C program that contains a function that computes the final price for a sales transaction and return that value to a calling method.

  Develop a c++ program to solve the problem

If an attempted debit transaction cannot be completed successfully (because there is not enough cash available), an error message should be displayed instead.

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