Digital mobile wallet apps enables quick, secure and easy payments through your smartphone. A file, named Transactions.txt contains history of transactions made by a user (maximum no. of transactions allowed is 120). Each line in the file consist of beneficiary mobile number (integer), transaction amount (float), balance (float) and transaction date (string) respectively. Write a C++ program that reads the data from the file into 4 parallel arrays. Your program will also perform the following (see sample file and screen output below): 1. Display the balance of last transaction. 2. Ask the user to enter a mobile number, and then display all transactions information (transaction date and amount) for the entered mobile number. Also, display the total amount of transactions for the entered mobile number. 3. Display, the highest transaction amount with the beneficiary mobile number and date. Transactions.txt (Input file) Sample Screen Output Your Balance: 41.5 20/12 20/12 21/12 21/12 23/12 25/12 28/12 3944439 96 3666636 6. 90 Enter Mobile Number to search: 3944439 3355558 82 3944439 10 72 Date Amount 20 52 20/12 21/12 23/12 Total: 3944439 4 3355558 3.5 48.5 10 20 34 3666636 7 41.5 Top Transaction is 20 BD to 3944439 on 23/12

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%
C++
Digital mobile wallet apps enables quick, secure and easy payments through your smartphone. A Tile,
named Transactions.txt contains history of transactions made by a user (maximum no. of
transactions allowed is 120). Each line in the file consist of beneficiary mobile number (integer),
transaction amount (float), balance (float) and transaction date (string) respectively. Write
a C++ program that reads the data from the file into 4 parallel arrays. Your program will also perform
the following (see sample file and screen output below):
1. Display the balance of last transaction.
2. Ask the user to enter a mobile number, and then display all transactions information
(transaction date and amount) for the entered mobile number. Also, display the total
amount of transactions for the entered mobile number.
3. Display, the highest transaction amount with the beneficiary mobile number and date.
Transactions.txt (Input file)
Sample Screen Output
Your Balance: 41.5
20/12
20/12
21/12
21/12
23/12
25/12
28/12
3944439
96
3666636
6
90
Enter Mobile Number to search:
3944439
3355558
8.
82
3944439
10
72
Date
Amount
20
52
20/12
21/12
3944439
3355558
3.5
48.5
10
20
23/12
Total:
3666636
7
41.5
34
Top Transaction is 20 BD to 3944439 on 23/12
Transcribed Image Text:Digital mobile wallet apps enables quick, secure and easy payments through your smartphone. A Tile, named Transactions.txt contains history of transactions made by a user (maximum no. of transactions allowed is 120). Each line in the file consist of beneficiary mobile number (integer), transaction amount (float), balance (float) and transaction date (string) respectively. Write a C++ program that reads the data from the file into 4 parallel arrays. Your program will also perform the following (see sample file and screen output below): 1. Display the balance of last transaction. 2. Ask the user to enter a mobile number, and then display all transactions information (transaction date and amount) for the entered mobile number. Also, display the total amount of transactions for the entered mobile number. 3. Display, the highest transaction amount with the beneficiary mobile number and date. Transactions.txt (Input file) Sample Screen Output Your Balance: 41.5 20/12 20/12 21/12 21/12 23/12 25/12 28/12 3944439 96 3666636 6 90 Enter Mobile Number to search: 3944439 3355558 8. 82 3944439 10 72 Date Amount 20 52 20/12 21/12 3944439 3355558 3.5 48.5 10 20 23/12 Total: 3666636 7 41.5 34 Top Transaction is 20 BD to 3944439 on 23/12
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY