Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A detailed financial transaction log is provided as a single string. Each transaction in the log includes the transaction type ( Deposit D ( d

A detailed financial transaction log is provided as a single string. Each transaction in
the log includes the transaction type (Deposit D(d) or Withdrawal W(w)), the
account number (a five-digit code), the amount in USD, and the transaction date, all
separated by commas. Transactions are separated from each other by a semicolon
(;).
log =" D,12345,300,2023-02-15;w,12345,200,2023-02-16;d,67890,400,2023-02-
17;W,67890,150,2023-02-18"
Your tasks are: (1) to extract specific information from this log to answer several
questions without using loops, functions or package. (Note: solutions using loops,
function, comprehension, package will receive a score of zero!)(2) to use string
formatting to report your answers
What is the total amount deposited for account 12345?
log =" D,12345,300,2023-02-15;w,12345,200,2023-02-
16;d,67890,400,2023-02-17;W,67890,150,2023-02-18"

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

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

Students also viewed these Databases questions

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago