Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a3data.txt: XYZ123456 20 Jul 17 ARZ540361 100 Jul 19 FPT290541 50 Jul 19 PAF530274 20 May 3 NLX859034 20 Jun 13 OPT534859 50 Jul 19

image text in transcribed

image text in transcribed

image text in transcribed

a3data.txt:

XYZ123456 20 Jul 17

ARZ540361 100 Jul 19

FPT290541 50 Jul 19

PAF530274 20 May 3

NLX859034 20 Jun 13

OPT534859 50 Jul 19

NOV570394 20 Dec 14

IRE125403 20 Jan 22

KLG194058 20 Mar 7

APO670256 50 Apr 28

FJS953276 100 Jun 13

KLJ069373 50 Jun 17

BLK248638 50 Aug 30

KNV860347 50 Sep 7

NJH537203 20 Dec 14

MLH906364 20 May 4

NKJ905436 20 Jul 17

FAH857394 50 Aug 30

NOV905753 50 Sep 5

NKB637964 50 Jul 17

HFT679654 20 Aug 15

A gentle introduction to linked lists Counterfeit money is a problem for any government that prints its own currency, and Canada is no exception. For this assignment, we are going to write a program to assist the RCMP in keeping track of counterfeit bills. Banks keep bills, which they suspect to be counterfeit, and pass them along to the RCMP at the earliest possible opportunity. Because a group of counterfeit bills may come in at one time, they are packed together, marked with the date they were deposited, and sent to the RCMP. The RCMP receives bills from different banks at different times, meaning there is initially little ordered in which the bills are processed. Data entry technicians enter the serial number, denomination, and date found for each counterfeit bill. Your task is to write a program which will read in a list of this data and perform some operations on it. We are going to sort the bills in the order of the date on which they were received, then provide the ability to search for serial numbers in case new counterfeit bills are found, to determine if they came from the same source. Our program will use a list of bills from many different banks, allowing the RCMP to cross-reference serial numbers (so that if a set of counterfeit bills is turned in on the same day but split up between several different banks, our program will be able to tell). Since we are going to have an unknown number of elements in our list, we will use a linked list. Also, our list should be object-oriented; the list itself should be by an object of a class in which all the data members are private (only accessible through member functions), and each node in the list (representing a single counterfeit bill) should be represented using a class with private data members. represented For each bill, we need to know: Its serial number Its denomination (S5, $10, S20, $50, etc); .The month that it was turned in (assume all bills were turned in the same year); . The day of the month on which it was turned into the bank The serial number will be represented by a string xyz123456 might be a serial number. The denomination is an integer, as is the day of the month it was turned in. The name of the month it was turned in will be a string in the input file: Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec of letters and number, for example, A gentle introduction to linked lists Counterfeit money is a problem for any government that prints its own currency, and Canada is no exception. For this assignment, we are going to write a program to assist the RCMP in keeping track of counterfeit bills. Banks keep bills, which they suspect to be counterfeit, and pass them along to the RCMP at the earliest possible opportunity. Because a group of counterfeit bills may come in at one time, they are packed together, marked with the date they were deposited, and sent to the RCMP. The RCMP receives bills from different banks at different times, meaning there is initially little ordered in which the bills are processed. Data entry technicians enter the serial number, denomination, and date found for each counterfeit bill. Your task is to write a program which will read in a list of this data and perform some operations on it. We are going to sort the bills in the order of the date on which they were received, then provide the ability to search for serial numbers in case new counterfeit bills are found, to determine if they came from the same source. Our program will use a list of bills from many different banks, allowing the RCMP to cross-reference serial numbers (so that if a set of counterfeit bills is turned in on the same day but split up between several different banks, our program will be able to tell). Since we are going to have an unknown number of elements in our list, we will use a linked list. Also, our list should be object-oriented; the list itself should be by an object of a class in which all the data members are private (only accessible through member functions), and each node in the list (representing a single counterfeit bill) should be represented using a class with private data members. represented For each bill, we need to know: Its serial number Its denomination (S5, $10, S20, $50, etc); .The month that it was turned in (assume all bills were turned in the same year); . The day of the month on which it was turned into the bank The serial number will be represented by a string xyz123456 might be a serial number. The denomination is an integer, as is the day of the month it was turned in. The name of the month it was turned in will be a string in the input file: Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec of letters and number, for example

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions